alertpay

Thursday, August 20, 2020

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

No comments: