... Here's what we've found Interesting ...

Friday, May 26, 2023

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. Hack Tools
  2. Hacker Tools For Mac
  3. Hack Rom Tools
  4. Beginner Hacker Tools
  5. Hacking Tools For Windows
  6. Pentest Tools For Android
  7. Hacking Tools For Kali Linux
  8. Hack Tools Pc
  9. Easy Hack Tools
  10. Hacking Tools For Windows 7
  11. Hack Tools
  12. Github Hacking Tools
  13. Hack Tools
  14. Hak5 Tools
  15. Growth Hacker Tools
  16. Nsa Hack Tools
  17. Pentest Tools Subdomain
  18. Hack Tools Mac
  19. Game Hacking
  20. Hacker Tools Linux
  21. Pentest Tools Open Source
  22. Hackrf Tools
  23. Pentest Tools For Ubuntu
  24. Hack And Tools
  25. Hack Tools Github
  26. Usb Pentest Tools
  27. Hack Tools Mac
  28. Physical Pentest Tools
  29. Hack Tools Mac
  30. Hacker Tools Free Download
  31. Hacking Tools Mac
  32. Hack Tool Apk No Root
  33. Pentest Tools For Ubuntu
  34. Hack Tools Pc
  35. Hacking Tools Pc
  36. Hacker Tools Hardware
  37. Pentest Tools Bluekeep
  38. Pentest Tools Download
  39. Hacking Tools For Windows 7
  40. How To Hack
  41. Physical Pentest Tools
  42. Wifi Hacker Tools For Windows
  43. Hacking Tools Online
  44. Best Hacking Tools 2019
  45. Hacking Tools Pc
  46. Hacker Tools For Windows
  47. Pentest Tools Review
  48. Tools Used For Hacking
  49. New Hack Tools
  50. Hack Tools Github
  51. Pentest Tools Alternative
  52. Hacking Tools Pc
  53. Hacker Tools Software
  54. Pentest Tools Review
  55. Pentest Tools Website Vulnerability
  56. Hacking Tools Hardware
  57. Game Hacking
  58. Tools For Hacker
  59. Easy Hack Tools
  60. Pentest Tools Nmap
  61. Pentest Tools Nmap
  62. Hacking App
  63. Nsa Hack Tools
  64. Hacker Tools Apk
  65. Hacking Apps
  66. Hack Tools Github
  67. Hack Tool Apk
  68. Pentest Tools Linux
  69. Hacking Tools And Software
  70. Hacking Tools Hardware
  71. Hack Tools
  72. Blackhat Hacker Tools
  73. Pentest Tools Download
  74. Hacker Tools 2020
  75. Hacking Tools Kit
  76. Pentest Tools Github
  77. Pentest Tools For Windows
  78. Hack Tools Pc
  79. Pentest Tools Download
  80. Pentest Tools For Android
  81. Beginner Hacker Tools
  82. Hacking Tools For Beginners
  83. Hack Tools For Games
  84. Hacker Tools 2019
  85. Hacking Tools For Windows Free Download
  86. Pentest Tools Free
  87. Hacking Tools Usb
  88. Hacking Tools Windows
  89. Hacker Security Tools
  90. Hacking Tools For Pc
  91. Nsa Hack Tools
  92. Tools 4 Hack
  93. Hacking Tools For Mac
  94. Hacking Tools For Games
  95. Hacker Tools 2020
  96. New Hacker Tools
  97. Hacker Tools Apk
  98. Hack Tools For Windows
  99. Hacker Hardware Tools
  100. Hack Tools For Ubuntu
  101. Hacker Tools List
  102. Hack App
  103. Hacking Tools Name
  104. Pentest Box Tools Download
  105. Hacker Tools Github
  106. Beginner Hacker Tools
  107. Pentest Reporting Tools
  108. Pentest Tools Url Fuzzer
  109. Pentest Tools Website Vulnerability
  110. Hacker Tools 2020
  111. Pentest Tools
  112. Pentest Tools Alternative
  113. Hacker Techniques Tools And Incident Handling
  114. Pentest Tools Url Fuzzer
  115. Hacker Tools Linux
  116. Hacks And Tools
  117. Pentest Automation Tools
  118. Nsa Hacker Tools
  119. Hacking Tools Pc
  120. Install Pentest Tools Ubuntu
  121. Nsa Hack Tools
  122. Pentest Tools Apk
  123. Pentest Tools Linux
  124. Hack Tools For Ubuntu
  125. Hacker Tools For Windows