Monday, 13 April 2020

ASIS CTF Quals 2015 - Sawthis Writeup - Srand Remote Prediction

Posted on 19:39 by Mordiadi


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:



















More articles


  1. Hacking Tools For Windows 7
  2. Hacker Tools Hardware
  3. Pentest Automation Tools
  4. Computer Hacker
  5. Hacking Tools For Kali Linux
  6. Hack App
  7. Hack Tools Download
  8. Hacking Tools For Games
  9. Pentest Tools Review
  10. Hacker Tools Free
  11. Pentest Tools Framework
  12. Pentest Tools Port Scanner
  13. What Is Hacking Tools
  14. Pentest Tools Tcp Port Scanner
  15. Nsa Hacker Tools
  16. Hack And Tools
  17. Hackrf Tools
  18. Pentest Tools List
  19. Pentest Tools Find Subdomains
  20. Hack Tools Pc
  21. Hack Website Online Tool
  22. Pentest Tools Linux
  23. Hacker Tools Software

No Response to "ASIS CTF Quals 2015 - Sawthis Writeup - Srand Remote Prediction"

Leave A Reply

BTC

Doge

LTC

BCH

DASH

Tokens

SAMPAI JUMPA LAGI

SEMOGA ANDA MEMPEROLEH SESUATU YANG BERGUNA