Files
chromebrew/packages/od1n.rb
Casey Strouse 5d5d033b2c 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).
2017-10-29 13:26:18 -07:00

27 lines
952 B
Ruby

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