![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
undefined reference
Hi, I'm trying to compile something and I think it is in C.
There are 3 files t3wmbof.c, rwbits.h, and winerr.h. I'm am using mingw but I get errors like: E:\DOCUME~1\Jim\LOCALS~1\Temp/ccqY5aaa.o(.text+0x8a1):t3wmbof.c: undefined reference to `inet_ntoa@4' E:\DOCUME~1\Jim\LOCALS~1\Temp/ccqY5aaa.o(.text+0x8f2):t3wmbof.c: undefined reference to `socket@12' E:\DOCUME~1\Jim\LOCALS~1\Temp/ccqY5aaa.o(.text+0x954):t3wmbof.c: undefined reference to `closesocket@4' E:\DOCUME~1\Jim\LOCALS~1\Temp/ccqY5aaa.o(.text+0x9ad):t3wmbof.c: undefined reference to `socket@12' E:\DOCUME~1\Jim\LOCALS~1\Temp/ccqY5aaa.o(.text+0xc76):t3wmbof.c: undefined reference to `closesocket@4' Any ideas how I can turn this into an exe file to be used in cmd? The souce files seems quit basic and are less than 15Kb in size. Thanks for your time. Jimbo |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Sep 2005
Posts: 50
Rep Power: 4
![]() |
can you post the t3wmbof.c source? It seems like the program can't find inet_ntoa, which means you're missing headerfiles or it was called incorrectly and thus interpreted as a variable (hence the undefined reference).
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
t3wmbof.c file
Ok, the source file is attached. Thanks for your reply.
Jimbo |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Sep 2005
Posts: 50
Rep Power: 4
![]() |
Several things:
1. Next time attach the .c file; 2. I don't think anyone here wants to show a script kiddie how to compile an exploit; 3. concepts and proofs of concepts are purposefully smudged so that script kiddies can't just use them; |
|
|
|
|
|
#5 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
The fact that it's an exploit is not really relevant. Enclosed, is the complete package incl the excutable. What I'm trying to do is compile it from its source, I already use this POC hundreds of times every day.
It was the first program I can across that I couldn't compile - I've only ever done really simple examples. |
|
|
|
|
|
#6 |
|
Expert Programmer
|
The fact that it's an exploit is relevant. Looks to me like you are hacking a game. These topics are not aloud. Check the rules.
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
Right.... Would it help it a attached a different example? I'll go and have a look and come back with something more 'appropriate'.
|
|
|
|
|
|
#8 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
Sleepy
Well. 'Sleepy' should be okay. Its waits a custom amount of time (secs, mins, hours,days) then excutes a specific program. I had a problem compiling this in mingw. Maybe I am doing something wrong. I did gcc -c sleepy.c then gcc -o sleepy.c but still theres a problem.
|
|
|
|
|
|
#9 |
|
Expert Programmer
|
Does the compiled EXE work for you or not. Works fine for me. The files obviously use winsocks. Consider installing them if you haven't yet. Try the Microstft C runtime library or something. Maybe it'l have it.
[EDIT] The sleepy app works for me too. I can compile it, and run it fine. Your missing required windows files( or so it would seem). Like I said, perhaps try the runtime libraries. I could be wrong, but it's a start. |
|
|
|
|
|
#10 |
|
Newbie
Join Date: May 2006
Posts: 12
Rep Power: 0
![]() |
Sleepy
Yes, the exe works for me. I just want to be able to make the exe for myself from the .c file. How would I know if I already have it? I have a winsock.dll in system32, and some winsock.h in the mingw folders.
How are you going about compiling it? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|