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 error handling to ARM linux reverse tcp stager #8543
Conversation
It's possible I'm doing something stupid but this isn't opening a valid session for me anymore (with the handler started):
It might also be worth also updating the original assembly here: |
It's my misstake. sorry. I fix it later. |
0xe3a05000, # mov r5, #0 | ||
0xef000000, # svc 0x00000000 ; invoke mmap2 | ||
0xe3500000, # cmp r0, #0 | ||
0xba000012, # blt 817c <failed> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't mmap return a pointer? you'd want a beq
here I think, not a blt
a7498c9
to
93c4b3f
Compare
fix mmap return cmp
Excellent work @tkmru many thanks 👍 |
@timwr many thanks for supporting me. |
Release NotesThis fix resolves inadequate error handling in the payloads/stagers/linux/armle/reverse_tcp module, which caused the module to crash. Every crash would be logged, so by avoiding crashes you can now use the module quietly. |
I add error handling to arm linux reverse tcp stager. for Linux reverse_tcp stager segfaults when it can't connect · Issue #7722 · rapid7/metasploit-framework.
Verification
List the steps needed to make sure this thing works