View Full Version : From file addres to Memory address??
lemoniscool
January 5th, 2010, 07:37
Hey there! Im facing a problem that i cant seem to solve by myself ...
Im searching for an IP adress in an executable with a Hex Editor and i get the adress "0x005826E8". But in olly in the CPU window when i go to that adress there is nothing. I then tried to find what i was looking for by opening the File window and go there to the adress "0x005826E8" and there it is ...
my question is now, how do i get from that adress in the File Window to the adress in the CPU window??
thanks in advance
greetz
LemoniscooL
aqrit
January 5th, 2010, 15:20
you should read up about the PE format
( if you're working with an *.exe? )
many tools (other than olly?) have a feature that will convert between the two addresses
try:
CFF Explorer - www.ntcore.com
IDA Pro 4.9 Freeware - www.hex-rays.com/idapro/idadownfreeware.htm
lemoniscool
January 5th, 2010, 15:42
yeah thx but i already solved it i just forgot to post ^^"
i had to add the base offset to the adress i got .. the base adress can be found with StudPE. thats really easy xD
squidge
January 6th, 2010, 02:55
You can do that using OllyDbg too, heck, you could even throw away your hex editor and search for the IP in Olly too, so then you wouldn't even have to convert the address as it'll be the proper format already.
lemoniscool
January 6th, 2010, 02:58
hehe .. like i didnt try to search the ip in olly xD
i searched but it was in there like:
xxxxxxxx DB "1"
xxxxxxxx DB "2"
xxxxxxxx DB "3"
xxxxxxxx DB "."
xxxxxxxx DB "4"
xxxxxxxx DB "5"
xxxxxxxx DB "6"
xxxxxxxx DB "."
etc
Silkut
January 6th, 2010, 04:11
Because it is pushing it one at a time, it's not always a string you can match with a simple search function.

lemoniscool
January 6th, 2010, 04:15
thats why i searched it in a hex editor ^^
squidge
January 6th, 2010, 07:54
Quote:
[Originally Posted by lemoniscool;84542]hehe .. like i didnt try to search the ip in olly xD
i searched but it was in there like:
xxxxxxxx DB "1"
|
Then your searching for it wrong. ALT+M CTRL+B. It will show you where in memory the string is, rather than a file offset. No need for hex editor.
Powered by vBulletin® Version 4.2.2 Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.