LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 08-24-2009, 11:39 PM   #1
1mela
Member
 
Registered: Apr 2009
Posts: 38

Rep: Reputation: 15
Question addres inject


Does anybody know how to inject in EBP and EIP addres properly ?
I treid many posiblities ,but it is stil 4bits earlier .

injecting.c

main(){
int i=0;
char stuffing[40];

for (i=0;i<=44;i+=4)
*(long *) &stuffing[i] = 0x080483f5;
puts(stuffing);
}


then

sh#: (./injecting;cat)|./recieving

core dumped

sh#:gdb recieving core dump

(gdb) info registers
eax 0x36 54
ecx 0x36 54
edx 0xb7f470f0 -1208717072
ebx 0xb7f45ff4 -1208721420
esp 0xbfe794b8 0xbfe794b8
ebp 0x83f50804 0x83f50804
esi 0x8048420 134513696
edi 0x8048320 134513440
eip 0x83f50804 0x83f50804
eflags 0x10246 [ PF ZF IF RF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) q
 
Old 08-24-2009, 11:55 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Code injection falls into a pretty shady category, with the potential to be in violation of LQ Rules. Hacking/cracking/exploiting are not welcome topics of discussion here.

It may make no difference what your response is, but for a few minutes, I'll give you the benefit of the doubt: what is the purpose/intent of what you are attempting to do here?

Sasha

EDIT: OK, time's up. This thread is scheduled for closure.

Last edited by GrapefruiTgirl; 08-25-2009 at 12:11 AM.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help programming inject tcp/ip packet in C darkangel29 Programming 5 05-29-2009 05:53 AM
How do I inject drivers into a Linux image? genghiskhano Linux - Software 3 03-21-2009 08:26 PM
Loopback addres not available grezly Linux - Networking 2 07-18-2006 07:40 AM
i can not get the constant ip addres..please. bruse Linux - Networking 13 04-16-2005 08:10 AM
qmail-inject problems iamnotherbert Linux - Networking 8 10-15-2004 11:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration