Commit e4b75338 authored by Ed Reel's avatar Ed Reel

Add sqlmap package

Remove config file from $HOME
parent f393c811
require 'package'
class Sqlmap < Package
description 'sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers.'
homepage 'http://sqlmap.org/'
version '1.2'
source_url 'https://github.com/sqlmapproject/sqlmap/archive/1.2.tar.gz'
source_sha256 '39e0ef58365a5a0413d88dfcc0d1c210b465661cb97c8e5b42c1feba791d2453'
binary_url ({
})
binary_sha256 ({
})
depends_on 'python27' unless File.exists? "#{CREW_PREFIX}/bin/python"
def self.build
system "echo '#!/bin/bash' > sqlmap"
system "echo 'cd #{CREW_PREFIX}/share/sqlmap' >> sqlmap"
system "echo 'python sqlmap.py -c sqlmap.conf \"\$@\"' >> sqlmap"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/sqlmap"
system "cp -r . #{CREW_DEST_PREFIX}/share/sqlmap"
system "install -Dm755 sqlmap #{CREW_DEST_PREFIX}/bin/sqlmap"
end
def self.postinstall
puts
puts "To get extended help, run 'sqlmap -hh | most'".lightblue
puts
puts "To configure, edit #{CREW_PREFIX}/share/sqlmap/sqlmap.conf".lightblue
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment