UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Our Sponsors

Latest Postings
any way I can get mac os x leopard?
by Gizmo
09/03/08 01:45 PM
WGA - removing windows genuine authentication notice
by Gizmo
09/02/08 04:14 AM
Owning Servers
by Gizmo
08/30/08 07:20 AM
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
Topic Options
#17205 - 05/01/04 01:31 AM A simple buffer overflow
newblet Offline
Junior Member

Registered: 04/30/04
Posts: 2
Loc: USA
Hey,
I'm not sure if this should go in this forum or somewhere else, but here goes. I need some help writing a buffer overflow for a setuid binary. It basically allocates 256 bytes for a buffer and calls scanf(%s,buffer). I know that this function is exploitable, but I can't figure out how to send my shellcode+ret into the program.
Someone want to help me out? How do I get the program to read my overflow code?

Thanks

Top
Our Sponsors
Sponsor Our Sponsors

Top  
#17206 - 05/04/04 03:25 AM Re: A simple buffer overflow
UndeadBob Offline
Junior Member

Registered: 06/11/02
Posts: 62
Loc: UK
understand assembly and how the code works the cpu. then you shall have your answer...
_________________________
"Mrs. Jones, I'm sorry to inform you, but we've run the tests, and it appears that you have XP. Now don't cry - it's bad, but it's not a death sentence. Modern science has advanced in recent years, and it's now possible to live a reasonably happy life with XP. And there's a survivor's group that you'll want to meet as well."

Top
#17207 - 05/13/04 04:03 AM Re: A simple buffer overflow
newblet Offline
Junior Member

Registered: 04/30/04
Posts: 2
Loc: USA
Ummm...sorry, but that wasn't very helpful; I already know how everything about the overflows works. I already have the program that creates an environment variable containing the string that will spawn my shell. I can use it to spawn a shell from a program that uses strcpy() and receives the string from a parameter. I just don't know how to make a program that uses stdin instead of parameters. I've already tried sending my string into a file and dumping the file in. I've also tried echoing the variable and using | to send it into the program. Could the return address be different because of the scanf()?

Edit: spelling

Top
#17208 - 05/18/04 05:17 PM Re: A simple buffer overflow
sinetific Offline
nobody

Registered: 03/02/02
Posts: 815
Loc: Ann Arbor
You can use a debugger to find the return address

Top



Forum Stats
6868 Members
44 Forums
10498 Topics
45243 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6933
UGN Security 3472
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
heeheehaahaa, ssploo7, red queen, byopc, cybermox
6868 Registered Users
Who's Online
1 Registered (Gizmo), 8 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 03, 2008
by Gizmo
Yesterday at 09:37 AM
Update Humpday - Aug 27, 2008
by Gizmo
08/28/08 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!