Add 0d1n package

0d1n is a tool for automating customized attacks against web
applications using fuzzing techniques.

Tested as working on Samsung Chromebook Plus (ARMv8).
This commit is contained in:
Casey Strouse
2017-10-29 09:14:49 -07:00
parent 50eb55b98f
commit 5d5d033b2c

26
packages/od1n.rb Normal file
View File

@@ -0,0 +1,26 @@
require 'package'
class Od1n < Package
description '0d1n is a tool for automating customized attacks against web applications.'
homepage 'https://github.com/CoolerVoid/0d1n'
version '2.3'
source_url 'https://github.com/CoolerVoid/0d1n/archive/2.3.tar.gz'
source_sha256 '7fe26f0268fe63ec0352502ae590a7a5e258248f253649661dc782ca7edd52ae'
depends_on 'curl'
def self.build
system 'make'
end
def self.install
FileUtils.mkdir_p ["#{CREW_DEST_PREFIX}/share/0d1n/payloads",
"#{CREW_DEST_PREFIX}/share/0d1n/templates",
"#{CREW_DEST_PREFIX}/share/0d1n/response2find",
"#{CREW_DEST_PREFIX}/share/0d1n/tables",
"#{CREW_DEST_PREFIX}/share/0d1n/doc"]
FileUtils.cp_r ['doc','payloads','response2find','tables'], "#{CREW_DEST_PREFIX}/share/0d1n/"
system "install -Dm755 0d1n #{CREW_DEST_PREFIX}/bin/0d1n"
system "install -m644 *.conf #{CREW_DEST_PREFIX}/share/0d1n"
end
end