Noteable Posts

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

No comments: