sqlninja logo

...a SQL Server injection & takeover tool

The following versions are available:


The alpha of the new release, with all the newest cool stuff! Data extraction via WAITFOR and DNS tunnel, plus vbscript-based upload! Download it and find some bugs :)


The stable version. It lacks the data extraction module, but it has been tested a lot more extensively

SVN snapshot

This is the hemorrhaging edge version! It supports Powershell stagers with metasploit. It is a work-in-progress, not 100% documented, and likely to have several bugs, so not for the faint hearted. Come on, give it a try, show chicks how brave you are, and report some bugs!

To download the latest snapshot, use the following command:

$ svn co svn://svn.code.sf.net/p/sqlninja/code/ sqlninja-devel

If your AV complains, it is because the Churrasco executable in the tarball is recognized as a virus. So nothing to worry about.


In order to use sqlninja, the following Perl modules need to be present:

  • NetPacket
  • Net-Pcap
  • Net-DNS
  • Net-RawIP
  • DBI

You will also need the Metasploit Framework 3 on your box to use the metasploit attack mode, and also a VNC client if you use the VNC payload.

You also need a brain. Not strictly a Perl module, but it helps.