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:



















More info
  1. How To Hack
  2. Hack Website Online Tool
  3. Computer Hacker
  4. Pentest Tools For Android
  5. Blackhat Hacker Tools
  6. Hacker Tools For Windows
  7. Hacking Tools For Mac
  8. Pentest Tools Tcp Port Scanner
  9. Hack Tools Pc
  10. Hacker Tool Kit
  11. Nsa Hack Tools
  12. Hacker Search Tools
  13. Tools For Hacker
  14. Hak5 Tools
  15. Hacker Tools 2019
  16. Hacker Tools Software
  17. Pentest Tools Online
  18. Hacking Tools For Windows 7
  19. Hacker Tools Apk
  20. Hacking Tools 2020
  21. Pentest Tools For Windows
  22. Nsa Hack Tools Download
  23. Pentest Tools Nmap
  24. Hacker Hardware Tools
  25. Pentest Tools For Ubuntu
  26. Hacker Tools Linux
  27. Hack Rom Tools
  28. Hacking Tools For Mac
  29. Hacking Tools Pc
  30. Hacker Tools Software
  31. Physical Pentest Tools
  32. Hacker Tools Linux
  33. Hack And Tools
  34. Hacker Tools 2020
  35. Tools For Hacker
  36. Tools 4 Hack
  37. Hack Tools
  38. Hack Tools For Mac
  39. Blackhat Hacker Tools
  40. Hacking Tools Windows
  41. Blackhat Hacker Tools
  42. Hacking Tools For Windows Free Download
  43. Hacking Tools For Windows 7
  44. World No 1 Hacker Software
  45. Hacker Tools Mac
  46. What Are Hacking Tools
  47. Github Hacking Tools
  48. Hack Tool Apk
  49. Termux Hacking Tools 2019
  50. Ethical Hacker Tools
  51. Hack Rom Tools
  52. Easy Hack Tools
  53. Hacker Tool Kit
  54. Hacker Tools For Pc
  55. Hack Tool Apk No Root
  56. Hack Tools
  57. Hacker Tools 2019
  58. Pentest Tools Framework
  59. Pentest Tools Free
  60. Hacking Tools Github
  61. Hacking Tools Windows 10
  62. Hacks And Tools
  63. World No 1 Hacker Software
  64. Nsa Hack Tools
  65. Pentest Tools Nmap
  66. Termux Hacking Tools 2019
  67. Physical Pentest Tools
  68. Hacking Tools Software
  69. Hackers Toolbox
  70. What Is Hacking Tools
  71. Pentest Tools Kali Linux
  72. Easy Hack Tools
  73. Underground Hacker Sites
  74. Growth Hacker Tools
  75. Hacker Tools
  76. Hacker Tools Linux
  77. Hacker Tool Kit
  78. Hacking Tools For Windows 7
  79. Pentest Automation Tools
  80. Kik Hack Tools
  81. Best Hacking Tools 2020
  82. Bluetooth Hacking Tools Kali
  83. Hack Tools Github
  84. Hack Website Online Tool
  85. Underground Hacker Sites
  86. Kik Hack Tools
  87. Hacking Tools For Beginners
  88. Hacking Tools
  89. Hacking Tools For Games
  90. Pentest Tools Nmap
  91. Pentest Tools Subdomain
  92. Hacking Tools Usb
  93. Hacking Tools For Games
  94. Hack Tools For Windows

No comments: