This file contains 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 | |
method="GET" # POST,HEAD,OPTIONS... | |
follow=0 # 1 follow redirection, 0 don't follow | |
thread=10 # number threads | |
cookie=0 # 1 use cookie; 0 don't use cookie | |
timeout=5 # wait time | |
retry=1 # number of retry if fail | |
url="" # url+path to brute force | |
dict="/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt" # dictionnary |
This file contains 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
scan target for pentest | |
nmap -PN -n -A -sS -p- -oN output.nmap <IP> | |
-Pn : no ping check (host is up), | |
-n no dns resolution | |
-A : detect systeme info | |
-sT : tcp connect [laisse des traces dans les logs serveurs] (moins impactant que -sS Syn, ne laisse pas de trace dans les logs par defaut) | |
-p- : port de 0-65535 | |
-oN output.nmap : write utput to file | |
ajouter un scan udp en parallèle -sU (dns, ipsec ...) |
This file contains 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 | |
filename=$1 | |
while read -r line | |
do | |
firefox -new-tab https://$line | |
done < "$filename" | |