Wednesday, January 24, 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:



















Related links


  1. Black Hat Hacker Tools
  2. How To Make Hacking Tools
  3. Android Hack Tools Github
  4. Hacker Tools Software
  5. Growth Hacker Tools
  6. Hacker Hardware Tools
  7. Hacking App
  8. Hack Tools For Games
  9. Easy Hack Tools
  10. Hack And Tools
  11. New Hacker Tools
  12. Pentest Tools For Ubuntu
  13. Hack Tool Apk
  14. Best Pentesting Tools 2018
  15. Hack Tools For Games
  16. Hacker Tools Windows
  17. Hack Tool Apk No Root
  18. Hacking Tools For Mac
  19. Hacker Tools Software
  20. Hacking Tools And Software
  21. Pentest Tools Free
  22. Hack Tools For Ubuntu
  23. Hackers Toolbox
  24. Ethical Hacker Tools
  25. Computer Hacker
  26. Hacking Tools Pc
  27. Pentest Tools List
  28. Hack Rom Tools
  29. Hacking Tools Software
  30. Hack Apps
  31. Hak5 Tools
  32. Hack Tools Mac
  33. Hacker
  34. Pentest Tools Windows
  35. Pentest Reporting Tools
  36. Pentest Tools Subdomain
  37. Free Pentest Tools For Windows
  38. Hack Tools For Games
  39. Hack Apps
  40. Ethical Hacker Tools
  41. Hacking Tools
  42. Hacking Tools For Windows 7
  43. Pentest Tools Find Subdomains
  44. Hacker Tools Mac
  45. Hacking Tools Software
  46. Hack Tools Mac
  47. Hacker Tools Mac
  48. Hacking Tools For Windows Free Download
  49. Black Hat Hacker Tools
  50. Best Hacking Tools 2019
  51. Hack Apps
  52. Hack Tools Mac
  53. Pentest Tools Port Scanner
  54. What Are Hacking Tools
  55. Pentest Tools Find Subdomains
  56. Best Pentesting Tools 2018
  57. Hacker Tools For Pc
  58. Wifi Hacker Tools For Windows
  59. Tools 4 Hack
  60. Hacker Tools Mac
  61. Pentest Tools Bluekeep
  62. Pentest Tools Kali Linux
  63. Hacking Tools Pc
  64. Hacker Techniques Tools And Incident Handling
  65. Hacker Tools Software
  66. Hacking Tools Online
  67. Hack Tools

No comments:

Post a Comment

My Blog List

Blog Archive

Kiwi Arts Now Sold at Image Spa!

Kiwi Arts Now Sold at Image Spa!
Buy Natural Wood Bangles at Image Spa!

Kiwi Arts on Artfire

Store not available