Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.03 KB

NACL Nonce Reuse Lab

The hacking lab for nonce-reuse attack in NACL SecretBox (xSalsa20 and Poly1305)

Let Play

Please find a bud in the app.py file. Then, hack this lab on your own environment. Next, get a real flag https://nacl-nonce-reuse-lab.herokuapp.com/. Finally, submit flag on https://lab.suam.wtf/.

Running Locally

Make sure you have Python 3.7 installed locally. To push to Heroku, you'll need to install the Heroku CLI.

$ git clone https://github.com/suam-team/nacl-nonce-reuse-lab.git
$ cd nacl-nonce-reuse-lab
$ pip install -r requirements.txt
$ echo "FLAG=flag{ILoveYou}" > .env
$ heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku main
$ heroku open

or

Deploy