Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bin/bash
- #installation of w3m in Termux
- #check if the program isn't already installed
- pkgs=$(pkg list | grep w3m)
- #if it isn't, install it
- if [ -z $pkgs ]
- then
- pkg install w3m
- fi
- #take the target website as an argument
- echo Enter target website:
- read website
- #run a command using w3m to search subdomains in google
- echo "Searching subdomains of $website"
- w3m "https://www.google.com/search?num=100&q=site%3A$website"
- #loop through every subdomain to find vulnerabilities
- echo "Scanning for vulnerabilites"
- for subdomain in $(cat /dev/stdin | grep -oP "(?<=\>)[^\/]+")
- do
- echo "Scanning for vulnerabilites for $subdomain"
- w3m "https://www.google.com/search?num=100&q=site%3A$subdomain+vulnerability"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement