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

Assembly Crash Course - Level 22 - SegFault #17

Open
j3r3mias opened this issue Sep 6, 2024 · 0 comments
Open

Assembly Crash Course - Level 22 - SegFault #17

j3r3mias opened this issue Sep 6, 2024 · 0 comments

Comments

@j3r3mias
Copy link

j3r3mias commented Sep 6, 2024

In level 22, if you set a different address from the one sugested by the exercise, sometimes the challenge just hangs until segfault.

POC:

echo -en 'H\xc7\xc0\x00\x00@\x00\xff\xe0' | /challenge/run

Output:

Perform the following:
Jump to the absolute address 0x403000                                                                                                                                                                                                                                                                                                                                                                                           
We will now set the following in preparation for your code:                                                                                                                                                        
Loading your given code at: 0x400092                                                                                                                                                                                                                                                                                                                                                                                            
Please give me your assembly in bytes (up to 0x1000 bytes):                                                                                                                                                      
Executing your code...                                                                                                                                                                                           
---------------- CODE ----------------                                                                                                                                                                           
0x400092:       mov     rax, 0x400000                                                                                                                                                                            
0x400099:       jmp     rax                                                                                                                                                                                      
--------------------------------------                                                                                                                                                                                                                                                                                                                                                                   
Segmentation fault
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

No branches or pull requests

1 participant