Skip to content

Instantly share code, notes, and snippets.

View JannyKhan's full-sized avatar
🎯
Focusing

JannyKhan JannyKhan

🎯
Focusing
View GitHub Profile
@JannyKhan
JannyKhan / dirb.sh
Created April 19, 2018 15:13
mod dirb
#!/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
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 ...)
#!/bin/bash
filename=$1
while read -r line
do
firefox -new-tab https://$line
done < "$filename"