Skip to content

using "9eA8" in pattern_offset.rb does not work #16

@bellascalzi1

Description

@bellascalzi1

Firstly I'd like to say I just went through your tutorial and I thought it was great! Thanks so much for creating it :)

I just want to point out a small issue that I found when running pattern_offset.rb to find the offset that overwrites the saved return pointer. If I use pattern_offset.rb with the raw address, ie

./pattern_offset.rb -q 39654138

Then I get the expected value of 146, but if I use the hexadecimal value that is mentioned in the tutorial (9eA8) ie:

./pattern_offset.rb -q 9eA8

I get this output:

[*] No exact matches, looking for likely candidates...

Interestingly if I reverse the order of the bytes, ie:

./pattern_offset.rb -q 8Ae9

I get the correct offset.

I assume this happens due to endian-ness shenanigans, (or possibly the way pattern_create.rb works has been changed since the tutorial was written) but it would be cool if the tutorial was updated with the correct value :) I am happy to create a PR to fix this if you would like

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions