Skip to content

Files

Latest commit

Dec 13, 2016
2c8a138 · Dec 13, 2016

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 13, 2016
Dec 13, 2016
Dec 13, 2016

Plaid CTF 2014: parlor

Category: Crypto Points: 250 Description:

The Plague is running a betting service to build up funds for his massive empire. Can you figure out a way to beat the house?

The service is running at 54.197.195.247:4321.

Write-up

$ nc 54.197.195.247 4321
/------------------------------------------------------------------------------\
| Welcome to the betting parlor!                                               |
|                                                                              |
| We implement State of the Art cryptography to give you the fairest and most  |
| exciting betting experience!                                                 |
|                                                                              |
| Here's how it works: we both pick a nonce, you tell us odds, and you give us |
| some money.                                                                  |
| If md5(our number + your number) % odds == 0, you win bet amount*odds.       |
| UPDATE: IF YOU DIDN'T REALIZE IT, WE DO INCLUDE A NEWLINE AT THE END OF YOUR |
| NUMBER. SORRY FOR THE INCONVENIENCE. THANK YOU FOR USING PARLOR              |
| Otherwise, we get your money! We're even so nice, we gave you $1000 to start.|
|                                                                              |
| If you don't trust us, we will generate a new nonce, and reveal the old nonce|
| to you, so you can verify all of our results!                                |
|                                                                              |
| (Oh, and if you win a billion dollars, we'll give you a flag.)               |
\______________________________________________________________________________/

====================
  1) set your odds
  2) set your bet
  3) play a round
  4) get balance
  5) reveal nonce
  6) quit
====================

My slideshre

solver.py

Other write-ups and resources