Skip to content

Instantly share code, notes, and snippets.

@trackscorer
Created November 15, 2018 03:37
Show Gist options
  • Save trackscorer/8d6a24b9f6cf4042c13a4ce932b35ca0 to your computer and use it in GitHub Desktop.
Save trackscorer/8d6a24b9f6cf4042c13a4ce932b35ca0 to your computer and use it in GitHub Desktop.
#!/bin/bash
read -p "Target IP/Hostname:" val
echo "$val"
ADDR=$val
TMPSTR=`ping ${ADDR} -c 1 | grep ${ADDR} | head -n 1`
echo ${TMPSTR} | cut -d'(' -f 2 | cut -d')' -f1
read -p "Save scan as (XML):" file
echo "$file"
nmap -p- -sV -O "$val" -oX "$file"
read -p "Input url and ext:" url ext
echo "$url"
echo "$ext"
python3 ./dirsearch.py -u "$url" -e "$ext" -s 3 -b
echo "game over!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment