Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a cyclic -d --detect flag to find cyclic pattern offset in registers and stack memory #2011

Closed
nthdeg opened this issue Feb 3, 2024 · 3 comments

Comments

@nthdeg
Copy link

nthdeg commented Feb 3, 2024

EDIT by @disconnect3d: The purpose of this issue is to track a new feature: adding a -d --detect flag to cyclic command so that it looks up the pattern offsets in registers and memory and prints this info to the user.

An offset finding function to auto detect the cyclic input in order to return the offset value.

gdb-peda has this feature (pattern_offset 0xdeadbeef) and would like to request this be implemented if possible.

ref:

          @nthdeg Added the `[filename]` argument to `cyclic` command in #2009.

So you can now do:

cyclic 100 input
run < input
cyclic -l 0xdeadbeef

(replace 0xdeadbeef with some cyclic pattern value)

We still need some kind of cyclic -d|--detect to auto detect the cyclic pattern values in registers and/or stack though.

Originally posted by @disconnect3d in #2007 (comment)

@disconnect3d disconnect3d changed the title pattern_offset 0xdeadbeef Add a cyclic -d --detect flag to find cyclic pattern offset in registers and stack memory Feb 3, 2024
@disconnect3d
Copy link
Member

Hi, I changed the title and added a first line to this issue to make it clear what we want to track here with this issue :).

@disconnect3d disconnect3d added enhancement For enhancements to existing features help wanted feature For new features good first issue labels Feb 3, 2024
@peace-maker
Copy link
Contributor

Seems like a duplicate of #1965

@disconnect3d
Copy link
Member

Oh, thanks for pointing out. Closing since its a duplicate.

@disconnect3d disconnect3d added duplicate and removed enhancement For enhancements to existing features help wanted feature For new features good first issue labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants