Commit 4c556deb authored by Your Name's avatar Your Name
Browse files

added Tab basic

parent a2e8ac96
......@@ -83,8 +83,8 @@ 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"
savefile="Web/spideredLinks.txt"
run_prog_in_another_tab "$cmd" "$savefile"
#gnome-terminal --tab --title="spider" -- /bin/bash -c "python3 /opt/MyOwnPentestToolsByAGS/SimpleSpider.py http://$DOM_NAME"
fi
# Dirbuster
......
function run_prog_in_another_tab () {
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 type "$1 | tee $2"
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