Τετάρτη 15 Απριλίου 2020

ASIS CTF Quals 2015 - Sawthis Writeup - Srand Remote Prediction


The remote service ask for a name, if you send more than 64 bytes, a memory leak happens.
The buffer next to the name's is the first random value used to init the srand()


If we get this value, and set our local srand([leaked] ^ [luckyNumber]) we will be able to predict the following randoms and win the game, but we have to see few details more ;)

The function used to read the input until the byte \n appears, but also up to 64 bytes, if we trigger this second condition there is not 0x00 and the print shows the random buffer :)

The nickname buffer:



The seed buffer:



So here it is clear, but let's see that the random values are computed with several gpu instructions which are decompiled incorrectly:







We tried to predict the random and aply the gpu divisions without luck :(



There was a missing detail in this predcitor, but there are always other creative ways to do the things.
We use the local software as a predictor, we inject the leaked seed on the local binary of the remote server and got a perfect syncronization, predicting the remote random values:




The process is a bit ugly becouse we combined automated process of leak exctraction and socket interactive mode, with the manual gdb macro.




The macro:



















Related word


  1. Pentest Tools Linux
  2. Hacking Tools Pc
  3. Pentest Tools For Mac
  4. Hack Tools 2019
  5. Hack Tools For Windows
  6. Hacking Tools Download
  7. Tools For Hacker
  8. Hacker Techniques Tools And Incident Handling
  9. Growth Hacker Tools
  10. Hacking Tools For Games
  11. Hack Tools 2019
  12. Github Hacking Tools
  13. Hacker Tools 2020
  14. Physical Pentest Tools
  15. Hacking Apps
  16. Nsa Hacker Tools
  17. Underground Hacker Sites
  18. Hack Website Online Tool
  19. Nsa Hack Tools
  20. Hack Tools For Pc
  21. Easy Hack Tools
  22. Pentest Tools Free
  23. Hack Tools Mac
  24. Hacker Tools Software
  25. Hacker Search Tools

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου