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

No hay comentarios:

Publicar un comentario