Saturday 27 January 2024

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. Pentest Tools For Ubuntu
  2. Pentest Tools For Ubuntu
  3. Pentest Tools For Ubuntu
  4. Hacker Tools For Windows
  5. Bluetooth Hacking Tools Kali
  6. Hacker Tools Free Download
  7. World No 1 Hacker Software
  8. What Is Hacking Tools
  9. Hacking Tools For Mac
  10. Pentest Tools Subdomain
  11. Hack Website Online Tool
  12. Hackers Toolbox
  13. Bluetooth Hacking Tools Kali
  14. Top Pentest Tools
  15. Pentest Tools Url Fuzzer
  16. Hacker Tools For Pc
  17. Pentest Automation Tools
  18. Hacking Tools Hardware
  19. Hacking Tools And Software
  20. Hacker Tools For Ios
  21. Hack Website Online Tool
  22. Pentest Tools Subdomain
  23. Computer Hacker
  24. Github Hacking Tools
  25. Hacker Hardware Tools
  26. Pentest Tools For Android
  27. Hacking Tools Usb
  28. Pentest Tools Website Vulnerability
  29. Pentest Tools Nmap
  30. Hack Tool Apk
  31. Pentest Tools Website
  32. Pentest Tools For Ubuntu
  33. Usb Pentest Tools
  34. Hack Apps
  35. Hack Tools Pc
  36. Nsa Hack Tools Download
  37. Pentest Tools For Mac
  38. Pentest Tools Github
  39. Hacking Tools Pc
  40. Hacking Tools Name
  41. Wifi Hacker Tools For Windows
  42. Hacker Techniques Tools And Incident Handling
  43. Hack Tools Mac
  44. Hacker Tools Free
  45. Pentest Tools List
  46. Pentest Tools Linux
  47. Hacks And Tools
  48. Beginner Hacker Tools
  49. Hackers Toolbox
  50. Hacker Tools Apk Download
  51. Hacker Tools Free Download
  52. Hacker Tools 2019
  53. Pentest Tools Find Subdomains
  54. Hacking Tools For Games
  55. Hacker Tools Apk
  56. Pentest Tools Tcp Port Scanner
  57. Hacker Tools List
  58. Nsa Hack Tools Download
  59. Hack Tools Mac
  60. Hacker Tools Hardware
  61. Hack Rom Tools
  62. Hack Apps
  63. Tools For Hacker
  64. Hack Tools
  65. Hacking Tools For Mac
  66. Hacker Tools Hardware
  67. Hack And Tools
  68. Hacking Tools Online
  69. Hacker Tools For Pc
  70. Best Pentesting Tools 2018
  71. Pentest Tools For Windows
  72. Pentest Tools Online
  73. Hacker Tools Linux
  74. Hacker Tools Github
  75. Hacking Tools Pc
  76. Pentest Tools List
  77. Hacking Tools For Windows 7
  78. Github Hacking Tools
  79. Pentest Tools Bluekeep
  80. Hacking Tools For Pc
  81. Hacking Tools For Mac
  82. Free Pentest Tools For Windows
  83. Hack And Tools
  84. Hacker Tools For Pc
  85. Pentest Tools Url Fuzzer
  86. Hacker Tools Hardware
  87. What Are Hacking Tools
  88. Hack Tools Online
  89. Hacker Tools For Mac
  90. Hacking Tools Mac
  91. Pentest Tools Kali Linux
  92. Hacker Tools Software
  93. Bluetooth Hacking Tools Kali
  94. Hacks And Tools
  95. Easy Hack Tools
  96. Hack Tools Pc
  97. Pentest Tools Online
  98. Hack And Tools
  99. Pentest Tools List
  100. Pentest Tools Url Fuzzer
  101. Pentest Automation Tools
  102. Best Hacking Tools 2019
  103. Tools Used For Hacking
  104. Game Hacking
  105. Hack And Tools
  106. Hacker Tools For Windows
  107. Black Hat Hacker Tools
  108. Pentest Tools Url Fuzzer

No comments: