May 27, 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:



















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

0 အမွတ္တရေျပာသြားတာ:

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger