Thursday, January 18, 2024

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:



















Continue reading
  1. Nsa Hack Tools
  2. Hack Tools
  3. Best Hacking Tools 2019
  4. Hacking Apps
  5. Hacker Search Tools
  6. Hacker Tools Software
  7. Hack Tools
  8. Kik Hack Tools
  9. Hacker Tools Free Download
  10. How To Make Hacking Tools
  11. Hacking Tools Windows 10
  12. Pentest Tools Review
  13. Hacking Tools Usb
  14. Underground Hacker Sites
  15. Hacking Tools Kit
  16. Beginner Hacker Tools
  17. Hacking Tools Online
  18. Hack Tool Apk No Root
  19. What Are Hacking Tools
  20. Hacking Tools For Kali Linux
  21. Best Hacking Tools 2020
  22. Hacking Tools Usb
  23. Hack Apps
  24. Hacking Tools Pc
  25. Hacker Techniques Tools And Incident Handling
  26. Hacks And Tools
  27. Github Hacking Tools
  28. Pentest Tools Tcp Port Scanner
  29. Best Hacking Tools 2019
  30. Hak5 Tools
  31. Hack Tools For Pc
  32. Hacking Tools Software
  33. Pentest Tools Website
  34. Underground Hacker Sites
  35. Hacker
  36. Top Pentest Tools
  37. Pentest Tools Windows
  38. Best Hacking Tools 2020
  39. Hacking Tools For Windows Free Download
  40. Hack Apps
  41. Hacker Tools Github
  42. Hacking Tools Software
  43. Hacker Tools For Mac
  44. Pentest Tools Kali Linux
  45. Pentest Tools Review
  46. Hacking Tools And Software
  47. Android Hack Tools Github
  48. Hackers Toolbox
  49. Pentest Tools List
  50. Nsa Hack Tools Download
  51. Hack And Tools

No comments:

Post a Comment