Tuesday, May 30, 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 posts


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

No comments:

Post a Comment