Outils d'utilisateurs

Outils du Site


ndhquals2015:updator

Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

Lien vers cette vue

ndhquals2015:updator [2015/04/06 15:58]
maggick
ndhquals2015:updator [2017/04/09 15:33] (Version actuelle)
Ligne 1: Ligne 1:
 ====== Updator ====== ====== Updator ======
 Exploit       200 points      http://quals.nuitduhack.com/challenges/view/9 Exploit       200 points      http://quals.nuitduhack.com/challenges/view/9
 +
 [[http://updator.challs.nuitduhack.com/]] [[http://updator.challs.nuitduhack.com/]]
  
Ligne 29: Ligne 30:
 On décompile le fichier avec [[https://github.com/wibiti/uncompyle2]] : On décompile le fichier avec [[https://github.com/wibiti/uncompyle2]] :
  
 +    <code python>
     import config     import config
     import sys     import sys
Ligne 85: Ligne 87:
     print 'Content-Type: text/html'     print 'Content-Type: text/html'
     print '\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset="UTF-8">\n    <title>Updator - Update system</title>\n    <link rel="stylesheet" href="static/font-awesome/css/font-awesome.css">\n    <link rel="stylesheet" href="static/css/style.css">\n  </head>\n  <body>\n    <div id="info">\n      The update managing system is still under construction but will be available soon.\n    </div>\n  </body>\n</html>\n'     print '\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset="UTF-8">\n    <title>Updator - Update system</title>\n    <link rel="stylesheet" href="static/font-awesome/css/font-awesome.css">\n    <link rel="stylesheet" href="static/css/style.css">\n  </head>\n  <body>\n    <div id="info">\n      The update managing system is still under construction but will be available soon.\n    </div>\n  </body>\n</html>\n'
 +    </code>
  
 ===== the private key ===== ===== the private key =====
Ligne 117: Ligne 120:
 XOR étant un algorithme symétrique, on va XOR les premier octet du fichier avec le mot clé 'import s' en supposant que le début du fichier est 'import sys':  XOR étant un algorithme symétrique, on va XOR les premier octet du fichier avec le mot clé 'import s' en supposant que le début du fichier est 'import sys': 
  
-    >>> hex(0x5f^ord('i')) 
-    '0x36' 
     >>> chr(0x5f^ord('i'))     >>> chr(0x5f^ord('i'))
     '6'     '6'
ndhquals2015/updator.1428328707.txt.gz · Dernière modification: 2017/04/09 15:33 (modification externe)