Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > World of Warcraft > Bots and Programs > WoW Memory Editing

WoW Memory Editing WoW Memory Editing for learning purposes only.
This section is more advanced than others on MMOwned Read the section specific rules, infractions will be given out if u break them!That is including the expectations! - If you don't meet them then don't post

Reply
 
LinkBack Thread Tools
  #1  
Old 09-27-2009
nopz is offline.
Site Donator
  
 
Join Date: Aug 2009
Posts: 32
Nominated 2 Times in 1 Post
Reputation: 18
Points: 362, Level: 1
Points: 362, Level: 1 Points: 362, Level: 1 Points: 362, Level: 1
Level up: 91%, 38 Points needed
Level up: 91% Level up: 91% Level up: 91%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Nominated Star [Tutorial] How to find simple stuff

Hello,

I'm here for some time now and I have decided to start learning things instead of asking for offsets or stuff.
I have found a very good topic on GD forums "How to find stuff" [Only registered and activated users can see links. ] by bobbysing.

Today I have decided to take the time to make a short tutorial with my level of knowledge speaking about how to find something with IDA.
For those who knows IDA this thread will talk about the String window and how to read subs.

Most of you already know the things I'm going to explain but this thread is mostly for all of the users that are/was like me, searching for things here and not doing by there own.

It is my contribution to 'wraithZX' alert about peoples here.

Quote from wraithZX ([Only registered and activated users can see links. ])
Quote:
what I'd like to see in the forum is more questions about how to find them yourself, not just what the actual values are. Those sorts of questions do a lot more for the community as a whole, in the sense that they end up spreading knowledge, compared to threads continually asking for stuff that changes patch after patch.


So here we go, what you need is :

- Ida Pro ([Only registered and activated users can see links. ])
- Hex-Rays ([Only registered and activated users can see links. ]) <- facultative
- wow.exe .. 3.2.2 here


Step 1 - Opening "wow.exe" with IDA.
First thing is to open 'ida pro', do not forget to run as administrator if you're using windows vista or seven.
We'll have to open wow with IDA to tell ida that we want to disassemble the file to start searching for stuff.
Here you just have to click "File..Open.." select the binary 'wow.exe' and Open.

If you've got a popup after clicking Open, select Portable Executable File (PE).
It takes a certain time for ida to disassemble the binary, so go take a cup of coffee and wait.

Click the image to open in full size.


Step 2 - The strings window.
So at this point you should have an IDA pro opened with an analyzed wow.exe. What we want is search for something, at this point the easiest way to find something with our poor knowledge is looking at the 'Strings Window'.

- Hit "Shift + F12", wait a moment. This will generate what we call strings.
We will use that window to search for something.

So what you'll do is locate the string "GetMinimapZoneText"

- Hit "Alt + T" type "GetMinimapZoneText".
- Ctrl + T if you want to move to the next occurrence.

You should obtain something like this.

Click the image to open in full size.


Step 3 - Where is dA c0d3 ?.
Well double click the "GetMinimapZoneText" line, this will bring you to the ida "View-A" of the code.
To access the sub view of the code you will have to click on the .data address.

Click the image to open in full size.


Step 4 - Show me dA c0d3 !!.
So know you have your IDA pointing on "GetMinimapZoneText" the .data:address.
To view the asm code and start working by your own you will have to click on the "sub_ADDRESS".

Click the image to open in full size.


Step 5 - What now ?!?.
Well in the View-A of IDA you have the ASM code representing our function.
You have to start reversing by your own now. In this example with have our "GetMinimapZoneText" function located at 0x113D778. I have the "Hex-Rays" plug-in so hitting "F5" show me the pseudocode C.

Click the image to open in full size.

And finally in C# :

Code:
string minimapZoneText = SMemory.ReadASCIIString(mp.WindowHandle, SMemory.ReadUInt(mp.WindowHandle,0x113D778), 30);
Console.WriteLine("GetMinimapZoneText : " + minimapZoneText);
Credits goes to all of you who want to learn things like me the other are not smart enough to understand things...
I'm pretty sure this thread is not perfect, feel free to edit / discuss / comment.

Special thanks :
Apoc (because it's an awesome guy)
kynox (his blog / work is also awesome)
Cypher (love the blog)
wraithZX
unkn0wn0x (because i'm sure the Aion bot is going to be good)

Last edited by nopz; 09-27-2009 at 03:33 PM.
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 09-27-2009
-Jebus Fist-'s Avatar
-Jebus Fist- is offline.
Contributor
  
 
Join Date: Mar 2008
Location: On uranus
Posts: 812
Reputation: 247
Points: 5,512, Level: 8
Points: 5,512, Level: 8 Points: 5,512, Level: 8 Points: 5,512, Level: 8
Level up: 11%, 988 Points needed
Level up: 11% Level up: 11% Level up: 11%
Activity: 22.2%
Activity: 22.2% Activity: 22.2% Activity: 22.2%

Looking good. +rep x3
__________________
Reply With Quote
  #3  
Old 09-27-2009
Viano's Avatar
Viano is offline.
Master Sergeant
  
 
Join Date: May 2008
Posts: 88
Reputation: 17
Points: 1,058, Level: 2
Points: 1,058, Level: 2 Points: 1,058, Level: 2 Points: 1,058, Level: 2
Level up: 32%, 342 Points needed
Level up: 32% Level up: 32% Level up: 32%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Quote:
Originally Posted by Cypher View Post
Please don't encourage people to pirate IDA and Hex-rays.
Please use your powers to produce tutorials like that. Thank you.

@nopz:

Awesome. Thank you very much .
__________________
Viano
http://www.mmowned.com/forums/bots-programs/171327-wow-toons-name-generator.html
Reply With Quote
  #4  
Old 09-27-2009
lanman92 is offline.
Site Donator
  
 
Join Date: Mar 2007
Posts: 769
Reputation: 20
Points: 3,876, Level: 6
Points: 3,876, Level: 6 Points: 3,876, Level: 6 Points: 3,876, Level: 6
Level up: 31%, 624 Points needed
Level up: 31% Level up: 31% Level up: 31%
Activity: 6.7%
Activity: 6.7% Activity: 6.7% Activity: 6.7%

A quick way to find lua_DoString:

Go to the lua function "RunScript". The last call made by this function is DoString(basically...).
Reply With Quote
  #5  
Old 09-27-2009
Ohsnap is offline.
New User
  
 
Join Date: Feb 2008
Posts: 6
Reputation: 1
Points: 349, Level: 1
Points: 349, Level: 1 Points: 349, Level: 1 Points: 349, Level: 1
Level up: 88%, 51 Points needed
Level up: 88% Level up: 88% Level up: 88%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Easy to understand language;
Listed commands with step by step instructions;
Descriptive pictures regarding topic.

Two words Nopz, "High Five".

Last edited by Ohsnap; 09-27-2009 at 05:01 PM.
Reply With Quote
  #6  
Old 09-27-2009
grosfilsdepute is offline.
New User
  
 
Join Date: Mar 2008
Posts: 26
Reputation: 1
Points: 478, Level: 1
Points: 478, Level: 1 Points: 478, Level: 1 Points: 478, Level: 1
Level up: 16%, 422 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

Thanks man,
Reply With Quote
  #7  
Old 09-28-2009
GordonGekko's Avatar
GordonGekko is offline.
Site Donator
  
 
Join Date: Oct 2008
Posts: 169
Reputation: 13
Points: 932, Level: 2
Points: 932, Level: 2 Points: 932, Level: 2 Points: 932, Level: 2
Level up: 7%, 468 Points needed
Level up: 7% Level up: 7% Level up: 7%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

Hi,
first of all thx a lot. This is a very helpful for me as a beginner. I hope it is fine if i ask for one more example in addition.

Well what I try to do is to find the memory location where the string of the "ingame group chsat" is stores. So finally my target is to read the last line of the group chat and write it into a .txt file. Unfortunately I am not really sure where i have to start. So yould somebody be so kind and explain to me how i can achieve that with IDA?

Sorry for those basic question but I am just starting with IDA.

Thanks a lot
Gordon
Reply With Quote
  #8  
Old 09-28-2009
blackmagic45 is offline.
New User
  
 
Join Date: May 2009
Posts: 1
Reputation: 1
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Level up: 21%, 318 Points needed
Level up: 21% Level up: 21% Level up: 21%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Great work nopz, people might actually learn something.
Reply With Quote
  #9  
Old 3 Weeks Ago
lon3vman is offline.
Site Donator
  
 
Join Date: May 2008
Location: Australia
Posts: 2
Reputation: 1
Points: 280, Level: 1
Points: 280, Level: 1 Points: 280, Level: 1 Points: 280, Level: 1
Level up: 70%, 120 Points needed
Level up: 70% Level up: 70% Level up: 70%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

This is one of the best posts I've come across for IDA so far. Much appreciated. Simple, clear, concise.
Reply With Quote
  #10  
Old 3 Weeks Ago
Tanaris4 is offline.
Sergeant Major
  
 
Join Date: Oct 2008
Posts: 147
Reputation: 12
Points: 1,169, Level: 2
Points: 1,169, Level: 2 Points: 1,169, Level: 2 Points: 1,169, Level: 2
Level up: 54%, 231 Points needed
Level up: 54% Level up: 54% Level up: 54%
Activity: 6.2%
Activity: 6.2% Activity: 6.2% Activity: 6.2%

@nopz great post - any idea why on the mac binary I get nothing in the strings list? [Only registered and activated users can see links. ]

Edit: Where can I purchase the Hex-rays IDA plugin that shows pseudocode?

Edit 2: Found it, yea can't afford that lol, but looks nice

Last edited by Tanaris4; 3 Weeks Ago at 11:20 AM.
Reply With Quote
  #11  
Old 3 Weeks Ago
b0t001 is offline.
New User
  
 
Join Date: Oct 2009
Posts: 2
Reputation: 1
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Level up: 3%, 388 Points needed
Level up: 3% Level up: 3% Level up: 3%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%
great post, easy to follow and explains everything well. thanks!
Reply With Quote
  #12  
Old 3 Weeks Ago
hestas is offline.
Banned
  
 
Join Date: Oct 2007
Posts: 16
Reputation: 1
Points: 387, Level: 1
Points: 387, Level: 1 Points: 387, Level: 1 Points: 387, Level: 1
Level up: 97%, 13 Points needed
Level up: 97% Level up: 97% Level up: 97%
Activity: 4.9%
Activity: 4.9% Activity: 4.9% Activity: 4.9%

Thank you! Helped me tons ^^
Reply With Quote
  #13  
Old 2 Weeks Ago
zutto's Avatar
zutto is online.
Site Donator
  
 
Join Date: Aug 2007
Posts: 152
Reputation: 17
Points: 1,066, Level: 2
Points: 1,066, Level: 2 Points: 1,066, Level: 2 Points: 1,066, Level: 2
Level up: 34%, 334 Points needed
Level up: 34% Level up: 34% Level up: 34%
Activity: 2.6%
Activity: 2.6% Activity: 2.6% Activity: 2.6%

not bad at all
__________________

Last edited by zutto; 2 Weeks Ago at 05:32 AM.
Reply With Quote
  #14  
Old 2 Weeks Ago
Flowerew is offline.
New User
  
 
Join Date: Oct 2009
Posts: 3
Reputation: 1
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Level up: 4%, 385 Points needed
Level up: 4% Level up: 4% Level up: 4%
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
This tutorial helped me alot to figure out stuff on my own (i guess). Now I'm trying to dig a little deeper and looked for GetPlayerMapPosition. I tried to find the function that actually returns the position values. The following pictures show about everything i've "discovered" during my investigation:

[Only registered and activated users can see links. ]

So my question now is: Am I going in the right direction or is that complete bs. If I'm totally wrong please tell me. Best regards.

edit: Further testing
[Only registered and activated users can see links. ]

Last edited by Flowerew; 2 Weeks Ago at 08:14 AM.
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 01:18 AM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493