Skip to content

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

License

Notifications You must be signed in to change notification settings

suam-team/nacl-nonce-reuse-lab

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks