Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 29th, 2006, 12:11 AM   #1
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
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
J_I_M_B_O is offline   Reply With Quote
Old May 29th, 2006, 12:22 AM   #2
Serinth
Programmer
 
Serinth's Avatar
 
Join Date: Sep 2005
Posts: 50
Rep Power: 4 Serinth is on a distinguished road
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).
__________________
A girl talked to me once.

http://www.latestanime.com
Serinth is offline   Reply With Quote
Old May 29th, 2006, 12:30 AM   #3
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
t3wmbof.c file

Ok, the source file is attached. Thanks for your reply.


Jimbo
Attached Files
File Type: doc t3wmbof.doc (8.0 KB, 31 views)
J_I_M_B_O is offline   Reply With Quote
Old May 29th, 2006, 12:44 AM   #4
Serinth
Programmer
 
Serinth's Avatar
 
Join Date: Sep 2005
Posts: 50
Rep Power: 4 Serinth is on a distinguished road
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;
__________________
A girl talked to me once.

http://www.latestanime.com
Serinth is offline   Reply With Quote
Old May 29th, 2006, 1:01 AM   #5
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
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.
Attached Files
File Type: zip t3wmbof.zip (11.0 KB, 18 views)
J_I_M_B_O is offline   Reply With Quote
Old May 29th, 2006, 1:20 AM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Old May 29th, 2006, 1:24 AM   #7
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
Right.... Would it help it a attached a different example? I'll go and have a look and come back with something more 'appropriate'.
J_I_M_B_O is offline   Reply With Quote
Old May 29th, 2006, 1:39 AM   #8
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
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.
Attached Files
File Type: zip sleepy.zip (3.2 KB, 22 views)
J_I_M_B_O is offline   Reply With Quote
Old May 29th, 2006, 1:43 AM   #9
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Old May 29th, 2006, 1:56 AM   #10
J_I_M_B_O
Newbie
 
Join Date: May 2006
Posts: 12
Rep Power: 0 J_I_M_B_O is an unknown quantity at this point
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?
J_I_M_B_O is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC