Kompilace exploitu

HackForum

Kompilace exploitu#
Dobry den, zajimalo by me, jakym zpusobem mohu zkompilovat tento zdrojovy kod:

[link]

gcc v Linuxu ani Dev-Cpp ve Windows mi ho prelozit nechteji.

Pak me napadlo vymenit

#include <windows.h>

za

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#include <netinet/in.h>
#include <curses.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>

a gcc mi haze uz jenom tyto chyby:

winXP.c:294: warning: initialization makes integer from pointer without a cast
winXP.c: In function ‘main’:
winXP.c:350: error: ‘WSADATA’ undeclared (first use in this function)
winXP.c:350: error: (Each undeclared identifier is reported only once
winXP.c:350: error: for each function it appears in.)
winXP.c:350: error: expected ‘;’ before ‘wsa’
winXP.c:383: error: ‘USHORT’ undeclared (first use in this function)
winXP.c:383: error: expected ‘;’ before numeric constant
winXP.c:384: error: ‘ULONG’ undeclared (first use in this function)
winXP.c:384: error: expected ‘;’ before numeric constant
winXP.c:389: error: expected ‘;’ before numeric constant
winXP.c:427: error: ‘wsa’ undeclared (first use in this function)

Nevite prosim, co mam jeste udelat, abych mohl tento zdrojovy kod zkomplilovat?
(odpovědět)
Martin Malik | 94.112.67.*24.12.2008 14:40
re: Kompilace exploitu#
devcpp\bin\gcc.exe lsa.c -lws2_32 -oomg.exe

(odpovědět)
prc | 213.211.51.*25.12.2008 10:13
re: Kompilace exploitu#
Mockrat dekuji, jedine co bylo potreba bylo tedy prilinkovat knihovnu ws2_32, rozumim tomu dobre?
(odpovědět)
Martin Malik | 94.112.67.*25.12.2008 11:54
re: Kompilace exploitu#
Ano
(odpovědět)
prc | 213.211.51.*26.12.2008 2:40
re: Kompilace exploitu#
Super az na to ze dev-cpp nie je kompilator
(odpovědět)
SC | 78.98.105.*25.12.2008 16:16
re: Kompilace exploitu#
Ehm no je to prostredi obsahujici kompilator, debug. atp.

Tak snad si nebudete hrat se slovicky ne?
(odpovědět)
sLa | 89.102.104.*25.12.2008 17:13
re: Kompilace exploitu#
Pochybuju, ze ten sploit bude jeste funkcni
(odpovědět)
__( | )__ | 213.151.78.*25.12.2008 20:22
re: Kompilace exploitu#
Proc by nemohl byt funkcni? :>
pouzitelny ale uz asi nebude :>
(odpovědět)
asket-nelognut | 85.70.220.*27.12.2008 12:49

Zpět
Svou ideální brigádu na léto najdete na webu Ideální brigáda
 
 
 

 
BBCode