Commit a2e8ac96 authored by Your Name's avatar Your Name
Browse files

added Tab basic

parent 46009a65
Scanning from: http://cap.htb
Dl: http://cap.htb
'link: http://cap.htb/'
'link: http://cap.htb/capture'
'link: http://cap.htb/ip'
'link: http://cap.htb/netstat'
Dl: http://cap.htb/netstat
'link: http://cap.htb/netstat'
Dl: http://cap.htb/netstat
Dl: http://cap.htb/ip
'link: http://cap.htb/ip'
'link: http://cap.htb/netstat'
Dl: http://cap.htb/netstat
Dl: http://cap.htb/ip
Dl: http://cap.htb/capture
'link: http://cap.htb/capture'
'link: http://cap.htb/ip'
'link: http://cap.htb/netstat'
Dl: http://cap.htb/netstat
Dl: http://cap.htb/ip
Dl: http://cap.htb/capture
Dl: http://cap.htb/
'link: http://cap.htb/'
'link: http://cap.htb/capture'
'link: http://cap.htb/ip'
'link: http://cap.htb/netstat'
Dl: http://cap.htb/netstat
Dl: http://cap.htb/ip
Dl: http://cap.htb/capture
Dl: http://cap.htb/
==================================
Nb links visited: 5
http://cap.htb
http://cap.htb/
http://cap.htb/capture
http://cap.htb/ip
http://cap.htb/netstat
#!/bin/bash
source utils.sh
# Setup
echo "[*] Param checking"
......@@ -68,5 +69,26 @@ fi
echo -e "\t[*] open services"
file_open_services_banner="nmap_scans/open_services_banner"
cat $file_nmap_scan_init | grep -E "[0-9].\/tcp|udp" | tee $file_open_services_banner
## Search for vulnerability
searchsploit --nmap $file_nmap_scan_init".xml"
\ No newline at end of file
echo "[*] search for vulns"
searchsploit --nmap $file_nmap_scan_init".xml"
## Si service FTP
## Si service SSH
## Si service HTTP
if cat $file_open_services_banner | grep 80/tcp > /dev/null
then
# Spider web
cmd="python3 /opt/MyOwnPentestToolsByAGS/SimpleSpider.py http://$DOM_NAME"
run_prog_in_another_tab "$cmd" "Web/spideredLinks.txt"
#gnome-terminal --tab --title="spider" -- /bin/bash -c "python3 /opt/MyOwnPentestToolsByAGS/SimpleSpider.py http://$DOM_NAME"
fi
# Dirbuster
# robots.txt (gobuster sur local wordlist)
## Password
\ No newline at end of file
WID=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| awk '{print $5}')
xdotool windowfocus $WID
xdotool key ctrl+shift+t
xdotool type "mkdir Web"
xdotool key Return
xdotool type "python3 /opt/MyOwnPentestToolsByAGS/SimpleSpider.py http://$DOM_NAME | tee Web/spideredLinks.txt"
xdotool key Return
WID=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| awk '{print $5}')
xdotool windowfocus $WID
xdotool key ctrl+shift+t
xdotool type "mkdir Web"
xdotool key Return
xdotool type "python3 /opt/MyOwnPentestToolsByAGS/SimpleSpider.py http://$DOM_NAME | tee Web/spideredLinks.txt"
xdotool key Return
echo "Next"
\ No newline at end of file
http://cap.htb/data (Status: 302) [Size: 208] [--> http://cap.htb/]
http://cap.htb/netstat (Status: 200) [Size: 28667]
function run_prog_in_another_tab () {
WID=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| awk '{print $5}')
xdotool windowfocus $WID
xdotool key ctrl+shift+t
xdotool type $cmd | tee $savefile
xdotool key Return
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment