Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2004, 14:02
Kyrios Kyrios is offline
Friend
 
Join Date: Feb 2003
Posts: 48
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Kyrios Reputation: 0
Tiny question

Hi,

There's something OPs which is still bothering me.
1. What's the difference between Pushad and Pushfd?
2. What eip stands for?
3. I wanna copy some string to another location. Original loc is [ebp-8] which is holding string like wedfreertety3453465dgf==
What i want is copy it to another loc like [00500000] be4 the string is erased. And for RVA 00500000h i write 00500010 for instance. So the new loc for string is now at RVA 00500010.
So what's code injection can i have? Can we use repz stosb command?
Any variant of code injection are welcome.


TIA,
kyrios
Reply With Quote
  #2  
Old 09-20-2004, 20:41
pikachu
 
Posts: n/a
1. Pushad Push all registers on the stack (general registers)
Pushfd Push flags on the stack (EFLAGS Register)
2. EIP is the Instruction Pointer, look at the Intel Reference Manual's

http://developer.intel.com/design/pentium4/manuals/index_new.htm

3. I don"t know
Reply With Quote
  #3  
Old 09-20-2004, 23:13
Belisarious
 
Posts: n/a
For No (3) I would have done something like that..
.
push ecx
mov ecx, (number of bytes in string)
cld
rep movsb dest_Address,source_Address
pop ecx
..

Just an idea


Reply With Quote
  #4  
Old 09-20-2004, 23:32
Kyrios Kyrios is offline
Friend
 
Join Date: Feb 2003
Posts: 48
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Kyrios Reputation: 0
Thx u belisarious,

Anyway what cld mean?
Others: any other variant is still welcome.

kyrios
Reply With Quote
  #5  
Old 09-20-2004, 23:44
kp_
 
Posts: n/a
Hi,

CLD clears the direction flag (CLear Direction). That flag controls the behaviour of REP. You can set it to increase or decrease cx after each operation.

kp
Reply With Quote
  #6  
Old 09-20-2004, 23:53
Belisarious
 
Posts: n/a
According to my favorite "Intel Opcodes and mnemonics" cld stands for:
CLD - Clear Direction Flag
Usage: CLD
Modifies flags: DF
Clears the Direction Flag causing string instructions to increment
the SI and DI index registers.
I think you will find it usefull so I 'm attaching it.
Attached Files
File Type: zip Opcodes2.zip (65.5 KB, 13 views)
Reply With Quote
  #7  
Old 09-21-2004, 00:00
Kyrios Kyrios is offline
Friend
 
Join Date: Feb 2003
Posts: 48
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Kyrios Reputation: 0
Thx

Thx 4 the opcodes. I realize it's a must have one.

kyrios
Reply With Quote
Reply

Thread Tools
Display Modes

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
Tiny Obfuscate [C++] CarrotStickCam Community Tools 5 11-12-2022 04:17
TOOLS: tiny BAT file enhancers dosprog Community Tools 1 01-26-2021 07:28


All times are GMT +8. The time now is 00:26.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )