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
July
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 31
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#7672 - 11/27/02 09: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:

Code:
unsigned char data[200];
int i,j,n;
 
n=open(filename, O_RDONLY);
 
i=-1;
do{
i++;
j=read(n,data+i,1);
}while(j>0);
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.

Top
Sponsored Links
      
#7673 - 11/28/02 01:34 AM Re: help?
CyberNerd Offline
Member

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

Top
#7674 - 11/28/02 03:22 PM 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
http://www.dollardns.net

Top

Moderator:  Infinite 
Featured Member
Registered: 03/05/02
Posts: 9
Forum Stats
2145 Members
46 Forums
33548 Topics
68715 Posts

Max Online: 1567 @ 04/25/10 10:20 AM
Top Posters
UGN Security 26711
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Jimmie Menon, fghijk435948, Devo60, ali, lavos
2147 Registered Users
Who's Online
0 registered (), 671 Guests and 366 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!