POL1TC@L HOOK
  • Home
  • About
  • Cyber Security
  • Politics
  • Sports
  • Contact

microcorruption: level 4 - cusco

12/22/2022

0 Comments

 
First stack overflow
 
Again, notice how It says the password has to be between 8 and 16 characters? Good clue.
Furthermore, inputting 17 characters causes the program to crash
​
Picture
Looking through the code we can see there are no cmp functions. It is therefore reasonable to believe a overflow is required to redirect input to the unlock function.
Entering x > 16 shows the stack being overwritten which confirms a stack overflow:

​
Picture
​We can input the value of unlock_door function to overwrite the stack and open the door
 
Password: 414141414141414141414141414141414644
0 Comments



Leave a Reply.

    Archives

    February 2024
    January 2023
    December 2022
    March 2020
    June 2019
    January 2019

    Categories

    All
    Malware
    Privilege Escalation
    Python
    Reverse Engineering
    Splunk

Powered by Create your own unique website with customizable templates.
  • Home
  • About
  • Cyber Security
  • Politics
  • Sports
  • Contact