This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 input_file output_file" | |
exit 1 | |
fi | |
input_file=$1 | |
output_file=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------ | |
..:: Quelques commandes Powershell - Usefull for Pentest & Red Team ::.. | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
----------------------------------------------------------------------------------------- | |
## Désactiver les logs (historisation) des commandes de la session Powershell en cours ## | |
----------------------------------------------------------------------------------------- | |
PS C:\Users\Thibow> Set-PSReadlineOption –HistorySaveStyle SaveNothing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo -e "+ SSL-PIN hash-key calculator +" | |
read -p "+ Domaine : " -r url | |
echo -e "\n+ Récupération de la clé publique & calcul de la hash-key :\n\n" | |
# Connexion à l'hôte et récupération de la clé publique | |
pubkey=$(echo | openssl s_client -servername $url -connect $url:443 | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64) | |
echo -e "\n\n+ Hash-key du domaine $url : $pubkey \n" |