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

Ingen kommentarer: