Results 1 to 3 of 3

Thread: how do i do this in olly?

  1. #1
    jaked
    Guest

    how do i do this in olly?

    hi.
    just say i have a bunch of code like so:

    #1: mov edx,dword ptr[65525]
    #2: push edx
    #3: call 407714
    #4: mov dword ptr[65525],eax
    #5: ret

    if the call at line #3 returns value 1 into eax and i want it to return value 0 into eax everytime how do i do this?

    note i can do this by breakpoint at #4 and changing eax to 0 manually in olly, but this call it called like 60 times a second, so can olly automaticly change eax to 0 between lines #3 and #4 for me?
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2

    how do i do this in olly?

    put in tis line of the call, right click FOLLOW and enter in the call, and all a inject before the RET of INC EAX.

    Ricardo

  3. #3
    Super Moderator
    Join Date
    Dec 2004
    Posts
    1,513
    Blog Entries
    15

    how do i do this in olly?

    yes you can automatically change eax to 0 every time if that is what you prefer
    use conditional breakpoint

    select line 3
    dont enter any thing on condition or expression box
    choose pause always radio button
    in the pause these commands to plugin box

    type
    .set eax = 0 (dot set eax = 0)
    .run (dot run)

    hit ok

    now when ever this break is hit the commandline plugin will trap the break set eax == 0 and issue a run command

Similar Threads

  1. help with olly
    By scotty in forum OllyDbg Support Forums
    Replies: 5
    Last Post: September 7th, 2006, 00:25
  2. olly 1.10B?
    By kittmaster in forum OllyDbg Support Forums
    Replies: 2
    Last Post: October 6th, 2004, 14:44
  3. help with olly
    By lake82 in forum OllyDbg Support Forums
    Replies: 5
    Last Post: June 30th, 2004, 16:33
  4. bug in olly 1.9d,
    By loveboom in forum Bugs
    Replies: 2
    Last Post: January 13th, 2004, 08:30
  5. bug (olly 1.9)
    By HackeR MaN in forum Bugs
    Replies: 5
    Last Post: March 11th, 2003, 00:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •