Government Security
Network Security Resources

Jump to content

Photo

Having Trouble Compiling Exploit Code? Look Here!


  • Please log in to reply
39 replies to this topic

#16 shaun2k2

shaun2k2

    Staff Sergeant

  • Sergeant Major
  • 348 posts

Posted 29 February 2004 - 12:36 AM

good info, though not quite sure why people would need this info. shouldn't be compiling exploits if you don't know how to compile in the first place.

Yes, I agree, but it still *doesn't* stop people. Have you not noticed?

  I installed linux ... (debian)
compiled my exploit ... (servu2.c)
got no errors .. have a resulting file called 'Servu2' but when i type Servu2 it says unrecognised command ?!?!?

The resulting binary is not in your path, so you must prepend './' to inform the shell that the program is in the current dir.
./Servu [arguments]

-Shaun.

#17 technoboy

technoboy

    Specialist

  • Members
  • 120 posts

Posted 29 February 2004 - 03:32 PM

i really hope this will lower the amout of 'can you send me a compiled version of xxx' in my privmsg box ....

#18 shaun2k2

shaun2k2

    Staff Sergeant

  • Sergeant Major
  • 348 posts

Posted 01 March 2004 - 08:43 AM

Haha, yeah, that was the aim ;)


-Shaun.

#19 arn0ld

arn0ld

    Private First Class

  • Members
  • 98 posts

Posted 01 March 2004 - 11:13 AM

gee thx for that very usefull :)

#20 Erra

Erra

    Staff Sergeant

  • Members
  • 263 posts

Posted 02 March 2004 - 09:16 PM

Yeah nice thread :)

I cant beleive that people are sending you PM's though asking for stuff to be compiled, thats just rude if you ask me.....

Its bad enough that people ask in the thread can this be compiled, gimme the compiled one etc....

Thanks for the info though :)

#21 cross

cross

    Corporal

  • Members
  • 157 posts

Posted 05 March 2004 - 01:10 PM

I agree that if you dont know how to compile something you shouldn't be playing with exploits. However, this is a nice little starter example for people not familliar. Thanks for the post!
Google the Ron Paul Revolution

#22 tianzhen

tianzhen

    Private First Class

  • Members
  • 92 posts

Posted 08 March 2004 - 02:32 AM

if miss some .h files in cygwin , where should i get it? may i ask here?

#23 morning_wood

morning_wood

    Private First Class

  • Members
  • 38 posts

Posted 09 March 2004 - 08:11 PM

although i am not a "programmer", I have been quite successfull at porting many "RUN ON *NIX" exploits. I hope to post some examples soon on this dark ( and clueless to me ) subject of "porting". OH BTW, this is not cygwin for dummies, most are easily accomplished using MSDS. First example will be "xsniff.c".
I also port python, perl, gtk and other things generally meant for *nix'y ppl
with some degree of success.

note: since I am not a programmer this will be a very basic porting project / tutiorial series. check http://exploitlabs.com for more info soon.

#24 Guest_tstngry_*

Guest_tstngry_*
  • Guests

Posted 09 March 2004 - 10:22 PM

WOW! Thank you so much. I have had this question but no one has taken the time to answer it. Thank you very much. This will boost my learning to a new level. ;)

#25 aapje

aapje

    Staff Sergeant

  • Members
  • 289 posts

Posted 19 March 2004 - 02:13 PM

i try to compile with cygwin a c program, but i miss includes , #include <linux/tcp.h> , how to fix this. Nvm, i installed linux now works fine :)

#26 Planquadrat

Planquadrat

    Private First Class

  • Members
  • 48 posts

Posted 27 March 2004 - 02:24 PM

upzzz,sorry wrong thread plz. delete this post.


Spamming for post-count, eh? I'm not sure how you can post in the wrong thread :)

Edited by shaun2k2, 28 March 2004 - 01:24 AM.


#27 ladykidtwist

ladykidtwist

    Private First Class

  • Members
  • 87 posts

Posted 13 April 2004 - 10:46 PM

re: i try to compile with cygwin a c program, but i miss includes , #include <linux/tcp.h>

just do it in linux to have no problem. it is a library header appended to the code

#28 COM

COM

    Private First Class

  • Members
  • 78 posts

Posted 15 April 2004 - 09:34 AM

Funny for practice, thx for the info :rolleyes:

#29 what

what

    Corporal

  • Members
  • 166 posts

Posted 22 July 2004 - 05:57 PM

some other things i've noticed, way too much. Concerns mainly new "programmers". If you are compiling a file that is for windows, make sure you check to see whether or not it is a C or C++ file, and add the appropriate ending (.c or .cpp). Also, make sure you have the correct include files, and they are in the right directory, blah blah blah.
I've always wanted a witty, thought provoking signature for myself that I thought others would find interesting. And then I just thought "f**k it" I'll just write this.

#30 morning_wood

morning_wood

    Private First Class

  • Members
  • 38 posts

Posted 26 November 2004 - 12:17 PM

I installed linux ... (debian)
compiled my exploit ... (servu2.c)
got no errors .. have a resulting file called 'Servu2' but when i type Servu2 it says unrecognised command ?!?!?

<{POST_SNAPBACK}>


try bitch$./Servu2




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users