Monday, January 29, 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:



















Read more

  1. Pentest Tools Github
  2. Hacker Search Tools
  3. Hacking Tools And Software
  4. Hacking Tools For Windows
  5. Pentest Automation Tools
  6. Pentest Tools Free
  7. Hack App
  8. Hacking Tools Pc
  9. Hack Rom Tools
  10. Easy Hack Tools
  11. Nsa Hack Tools
  12. What Are Hacking Tools
  13. Pentest Tools For Ubuntu
  14. Github Hacking Tools
  15. Hack Apps
  16. Hacker Tools Hardware
  17. Pentest Automation Tools
  18. Hacker Tools
  19. Hack Tool Apk No Root
  20. Pentest Tools For Android
  21. Hacker Tools Apk
  22. Hacker Tools For Ios
  23. Hacking Tools For Mac
  24. Pentest Tools Find Subdomains
  25. Free Pentest Tools For Windows
  26. New Hacker Tools
  27. Pentest Box Tools Download
  28. Pentest Tools Apk
  29. Hack Tools For Mac
  30. World No 1 Hacker Software
  31. Pentest Tools Windows
  32. Hacker Tools Linux
  33. Hacking Tools 2019
  34. Hacking Tools For Beginners
  35. Pentest Tools Website
  36. Pentest Tools Tcp Port Scanner
  37. Hacker Tools For Pc
  38. Hacker Tools Linux
  39. New Hack Tools
  40. Termux Hacking Tools 2019
  41. Hacker
  42. Hack Website Online Tool
  43. Hacker Tools List
  44. Hack Rom Tools
  45. Pentest Tools Linux
  46. Pentest Tools Website Vulnerability
  47. Pentest Reporting Tools
  48. Hacker Tools Software
  49. Blackhat Hacker Tools
  50. Pentest Tools Find Subdomains
  51. Hacker Tool Kit
  52. Pentest Tools Github
  53. Hacker Tools Mac
  54. Hack Tools For Mac
  55. Hack Tools For Ubuntu
  56. Tools For Hacker
  57. Hack Tools
  58. Pentest Tools Website
  59. Hacking Tools And Software
  60. Hacker Tools Apk
  61. How To Install Pentest Tools In Ubuntu
  62. Hacker Tools List
  63. Pentest Tools Open Source
  64. Hacker Tools Free Download
  65. Free Pentest Tools For Windows
  66. Pentest Tools Review
  67. Hack Tools For Mac
  68. Nsa Hack Tools Download
  69. Pentest Tools Download
  70. Hack Rom Tools
  71. Pentest Tools For Ubuntu
  72. Hacker Tools List
  73. Best Hacking Tools 2019
  74. Pentest Tools Android
  75. Hackrf Tools
  76. World No 1 Hacker Software
  77. Pentest Tools
  78. Nsa Hack Tools

0 Comments:

Post a Comment

<< Home