
Un script python3 recherchant des secrets sur swaggerhub.
Un script python3 recherchant des secrets sur swaggerhub
Introduction • Prérequis • Installation • Utilisation • Explication des résultats • Remerciements
Cet outil est conçu pour automatiser le processus de récupération de secrets dans les API publiques sur swaggerHub. Cet outil est multithreadé et le mode pipe est disponible :)
pip3 install swaggerhole
ou en clonant ce dépôt et en exécutant
git clone https://github.com/Liodeus/swaggerHole.git
pip3 install .
_____ _ __ ____ _ ____ _ ____ _ ___ _____
/ ___/| | /| / // __ `// __ `// __ `// _ \ / ___/
(__ ) | |/ |/ // /_/ // /_/ // /_/ // __// /
/____/ |__/|__/ \__,_/ \__, / \__, / \___//_/
__ __ __ /____/ /____/
/ / / /____ / /___
/ /_/ // __ \ / // _ \
/ __ // /_/ // // __/
/_/ /_/ \____//_/ \___/
usage: swaggerhole [-h] [-s SEARCH] [-o OUT] [-t THREADS] [-j] [-q] [-du] [-de]
optional arguments:
-h, --help show this help message and exit
-s SEARCH, --search SEARCH
Term to search
-o OUT, --out OUT Output directory
-t THREADS, --threads THREADS
Threads number (Default 25)
-j, --json Json ouput
-q, --quiet Remove banner
-du, --deactivate_url
Deactivate the URL filtering
-de, --deactivate_email
Deactivate the email filtering
swaggerHole -s test.com
echo test.com | swaggerHole
swaggerHole -s test.com --json
echo test.com | swaggerHole --json
swaggerHole -s test.com -t 100
echo test.com | swaggerHole -t 100
Finding_Type - Finding - [Swagger_Name][Date_Last_Update][Line:Number]
{"Finding_Type": Finding, "File": File_path, "Date": Date_Last_Update, "Line": Number}
Utiliser -du ou -de supprime le filtrage effectué par l'outil. Il y a plus de faux positifs avec ces options.
TODO