Skip to content

Instantly share code, notes, and snippets.

View Twibow's full-sized avatar

Twibow

View GitHub Profile
@Twibow
Twibow / Mass_DNS_Resolution.sh
Created May 10, 2023 13:30
Résolution de nom de domaine en masse
#!/bin/bash
if [ $# -lt 2 ]; then
echo "Usage: $0 input_file output_file"
exit 1
fi
input_file=$1
output_file=$2
@Twibow
Twibow / txt, ps1
Created April 12, 2023 20:51
Commandes Powershell utiles en Pentest / Red Team
------------------------------------------------------------------------
..:: 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
@Twibow
Twibow / ssl-certificate-pin-calculator.sh
Last active August 25, 2022 12:11
SSL Pin calculator with Bash (SSL Pinning)
#!/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"