Skip to content

Instantly share code, notes, and snippets.

View bh-chaker's full-sized avatar

Chaker Ben Hammouda bh-chaker

  • @BCM-ENERGY-team
View GitHub Profile
@bh-chaker
bh-chaker / README.md
Last active September 1, 2018 15:52
Wripte up for BITBITBIT - MeePwnCTF Quals 2018

The source code of the server code was given.
It just generates an RSA key and sends us some information:

    N, delta, gamma = gen_key()

    m = int(FLAG.encode('hex'), 16)
    c = powmod(m, 0x10001, N)

 print introduction
#Delete a category
@app.route('/catalog/<category_name>/delete/<csrf_token>', methods = ['GET','POST'])
def deleteCategory(category_name, csrf_token):
# First check the csrf_token:
if (csrf_token != login_session['csrf_token']):
return redirect('/login')