hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Problems With Cygwin
t0s
when I tried to compile th upnp exploit it gave me this

$ gcc upnp_udp.c -o upnp
upnp_udp.c:16: netdb.h: No such file or directory
upnp_udp.c:18: netinet\in.h: No such file or directory
upnp_udp.c:19: sys\socket.h: No such file or directory
upnp_udp.c:20: sys\wait.h: No such file or directory

can some one make any sence out of this for me and maybe help me

thanks

t0s

p.s i think it might have to do with a library
GAN_GR33N
anytime you see "exploit.c:16: somefile.h: No such file or directory"

it means that the compiler cannot locate the "xxxxx.h" header file that is needed to compile to a binary file
w00dy
instead of gcc upnp_udp.c -o unpnp try making sure the headers are there. if they are there try,
gcc -c upnp_udp.c
gcc upnp_udp.o -o unpnp


or go here to where i compiled this yesterday
domination
Heys all
I have a question when i compile a xploit em cyqwin give a mensage errors
any one can explain why ?
gcc : command not found

w00dy
QUOTE
I have a question when i compile a xploit em cyqwin give a mensage errors
any one can explain why ?
gcc : command not found

gcc isnt installed. Run the cygwin setup again and make sure u install gcc. You dont have to install from scratch, it just installs the new components that you select.
domination
thanks i would do that
rolleyes.gif
shaun2k2
t0s, the reason that the exploit program cannot be compiled is because netdb.h, netinet\in.h, sys\socket.h and sys\wait.h are all UNIX (or more specifically, POSIX) header files, hence not availiable with Windows compilers. To use sockets in Windows, you just need to "#include <winsock.h>" into the program, link with w32_lib.dll (or something? I haven't used Windows is a long while, so...), and change a few statements, and add a few windows specific calls.

To get into on porting the application to Windows (don't worry, it's pretty easy, only a few things need changing), read this.

Domination: You are getting this message because the shell cannot find the gcc program. Are you sure you have installed Cygwin?


Thank you for your time.
Shaun.
domination
yes i would read that
tongue.gif i have here the redhat but .... i dont have time to install it so... i'm using the wind*
thks
shaun2k2
What do you mean you don't have time to install it? It takes the best part of an hour, at the most.

Newbies *ALWAYS* associate installing Linux with pain and loss. They presume that installing Linux is hard. Absolute BS.

www.linuxiso.org

Redhat and Mandrake are *easy* to install. If I can do it, anyone can!


Thank you for your time.
Shaun.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.