Advertisement
xGHOSTSECx

W3M Termux Vulnerability Search Tool

Jan 6th, 2024
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. bin/bash
  2.  
  3. #installation of w3m in Termux
  4.  
  5. #check if the program isn't already installed
  6. pkgs=$(pkg list | grep w3m)
  7.  
  8. #if it isn't, install it
  9. if [ -z $pkgs ]
  10. then
  11.         pkg install w3m
  12. fi
  13.  
  14. #take the target website as an argument
  15. echo Enter target website:
  16. read website
  17.  
  18. #run a command using w3m to search subdomains in google
  19. echo "Searching subdomains of $website"
  20. w3m "https://www.google.com/search?num=100&q=site%3A$website"
  21.  
  22. #loop through every subdomain to find vulnerabilities
  23. echo "Scanning for vulnerabilites"
  24. for subdomain in $(cat /dev/stdin | grep -oP "(?<=\>)[^\/]+")
  25. do
  26.     echo "Scanning for vulnerabilites for $subdomain"
  27.     w3m "https://www.google.com/search?num=100&q=site%3A$subdomain+vulnerability"
  28. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement