domingo, 4 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:



















Continue reading


  1. Physical Pentest Tools
  2. Hacking Tools For Kali Linux
  3. Hack Tools Github
  4. New Hack Tools
  5. Hacking Tools Usb
  6. Growth Hacker Tools
  7. Pentest Tools Open Source
  8. Ethical Hacker Tools
  9. Hak5 Tools
  10. Pentest Automation Tools
  11. Hacker Hardware Tools
  12. Tools For Hacker
  13. Physical Pentest Tools
  14. Hack Tools For Pc
  15. Pentest Tools Github
  16. Hacker
  17. Hak5 Tools
  18. Hacker Tools Github
  19. Pentest Tools Subdomain
  20. Tools 4 Hack
  21. Pentest Tools For Mac
  22. Hack App
  23. Pentest Tools For Ubuntu
  24. Install Pentest Tools Ubuntu
  25. Hack Tool Apk No Root
  26. Pentest Tools Alternative
  27. Hack And Tools
  28. Pentest Tools Review
  29. Hacker Tools Free
  30. Hacking Tools Software
  31. Pentest Tools Open Source
  32. Hacking Tools Kit
  33. Growth Hacker Tools
  34. Hack Tools Mac
  35. Pentest Tools Review
  36. Hacker Tools Hardware
  37. Hacking App
  38. Hacking Tools Software
  39. Pentest Tools Windows
  40. Pentest Tools Find Subdomains
  41. Hack And Tools
  42. Hacking Tools For Windows
  43. Pentest Reporting Tools
  44. Nsa Hacker Tools
  45. Hacking Tools Download
  46. Hacker Tools Apk Download
  47. Usb Pentest Tools
  48. Hacker Tools Software
  49. Pentest Reporting Tools
  50. Pentest Tools Apk
  51. Nsa Hack Tools Download
  52. Pentest Tools Linux
  53. Hacking Tools For Mac
  54. Hack Tools Github
  55. Android Hack Tools Github
  56. Pentest Box Tools Download
  57. Hackers Toolbox
  58. World No 1 Hacker Software
  59. Pentest Tools Framework
  60. Pentest Tools Tcp Port Scanner
  61. Hack And Tools
  62. Pentest Tools Android
  63. Pentest Tools Online

No hay comentarios:

Publicar un comentario