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

No hay comentarios:

Publicar un comentario