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, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#7672 - 11/27/02 01:31 PM help?
sleepigrl Offline
Junior Member

Registered: 11/27/02
Posts: 1
As part of a class project I need to write an exploit for the read below:

unsigned char data[200];
int i,j,n;
n=open(filename, O_RDONLY);
I have the binary code for NOP/open a shell/etc, but I can't figure out how to store it correctly in data since I have to read from a file - It ends up stored as ascii characters, having different values from what I need.

Any help would be appreciated.

Sponsored Links
#7673 - 11/27/02 05:34 PM Re: help?
CyberNerd Offline

Registered: 05/17/02
Posts: 189
Loc: Here
isnt this what they would call cheating...
(i couldnt help you anyway)
Just because I dont care doesn't mean that I don't understand.
-Homer Simpson

#7674 - 11/28/02 07:22 AM Re: help?
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Are you trying to get a buffer overflow with that? seems you're reading characters from a file one at a time into the data buffer. If you read over 200 bytes, then possibly the data in the file after 200 bytes could be shell code and somehow get it executed. But anyway, that seems awefully vague.
Domain Registration, Hosting, Management


Moderator:  Infinite 
Featured Member
Registered: 08/22/14
Posts: 1
Forum Stats
2153 Members
46 Forums
38538 Topics
73708 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 31700
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
boa, claralobo, cdefgh368568, HushHush, Tim050
2152 Registered Users
Who's Online
0 registered (), 257 Guests and 351 Spiders online.
Key: Admin, Global Mod, Mod
Latest News

  Get Firefox!
Get FireFox!