Skip to content

fix callPreceded filtering (#213)#216

Merged
SweetVishnya merged 1 commit intoJonathanSalwan:masterfrom
captainGeech42:issues/213
Jul 12, 2025
Merged

fix callPreceded filtering (#213)#216
SweetVishnya merged 1 commit intoJonathanSalwan:masterfrom
captainGeech42:issues/213

Conversation

@captainGeech42
Copy link
Contributor

$ python ROPgadget.py --binary ntdll.dll --callPreceded | head -10
Options().removeNonCallPreceded(): Filtered out 70230 gadgets.
Gadgets information
============================================================
0x00000001800c2bcc : adc ah, al ; std ; call qword ptr [rax - 0x5268d17]
0x0000000180018016 : adc al, 0 ; add al, byte ptr [rax] ; add byte ptr [rax], al ; jmp 0x180017ffb
0x000000018001802e : adc al, 0 ; jmp 0x180017ff6
0x00000001801071d8 : adc al, 0x1a ; add byte ptr [rax], al ; jmp 0x1801072e6
0x000000018000d82e : adc al, 0x24 ; xor r12d, r12d ; jmp 0x18000cfbf
0x000000018005a648 : adc al, 0x41 ; add al, 0 ; jmp 0x18005a607
0x00000001800c9b94 : adc al, 0x42 ; jne 0x1800c9b8e ; lea r11d, [rax + 1] ; jmp 0x1800827bb

@captainGeech42
Copy link
Contributor Author

@SweetVishnya PTAL

@SweetVishnya SweetVishnya linked an issue Jul 12, 2025 that may be closed by this pull request
Copy link
Collaborator

@SweetVishnya SweetVishnya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@SweetVishnya SweetVishnya merged commit 4feba4c into JonathanSalwan:master Jul 12, 2025
1 check passed
@captainGeech42 captainGeech42 deleted the issues/213 branch July 12, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--callPreceded is broken

2 participants