Skip to content
Browse files

Add cookbook for arachni

[Fixes #46197305]
  • Loading branch information...
1 parent 4ba91a8 commit e981d86517069b573a93423720fbba730a2cdf55 @blt04 blt04 committed Mar 14, 2013
View
29 cookbooks/arachni/README.md
@@ -0,0 +1,29 @@
+Description
+===========
+
+Installs and configures the [Arachni](http://arachni-scanner.com/)
+web application security scanner framework.
+
+Requirements
+============
+
+## Platforms:
+
+* Ubuntu
+
+Usage
+=====
+
+The default recipe installs arachni to /opt/arachni:
+
+ { "run_list": ["recipe[arachni]"] }
+
+Recipes
+=======
+
+default
+-------
+
+* Installed to /opt/arachni
+* Installed for user `msbuilder`
+* Run with /opt/arachni/bin/arachni
View
16 cookbooks/arachni/attributes/default.rb
@@ -0,0 +1,16 @@
+default['arachni']['version'] = '0.4.1.3'
+case node['os']
+when 'linux'
+ case node['kernel']['machine']
+ when 'x86_64'
+ default['arachni']['arch'] = 'linux-x86_64'
+ else
+ default['arachni']['arch'] = 'linux-i386'
+ end
+when 'darwin'
+ default['arachni']['arch'] = 'darwin-x86_64'
+end
+default['arachni']['download_url'] = "http://downloads.arachni-scanner.com/arachni-#{node['arachni']['version']}-#{node['arachni']['arch']}.tar.gz"
+
+default['arachni']['user'] = 'msbuilder'
+default['arachni']['group'] = 'msbuilder'
View
12 cookbooks/arachni/metadata.rb
@@ -0,0 +1,12 @@
+name "arachni"
+maintainer "Brandon Turner, Rapid7, Inc."
+maintainer_email "brandon_turner@rapid7.com"
+license "BSD"
+description "Installs/Configures Arachni web application security framework"
+version "0.1.0"
+
+%w{ debian ubuntu }.each do |os|
+ supports os
+end
+
+recipe "arachni::default", "Installs and configures arachni"
View
26 cookbooks/arachni/recipes/default.rb
@@ -0,0 +1,26 @@
+arachni_dir = "/opt/arachni"
+
+# Dependencies
+package 'build-essential'
+package 'libxml2-dev'
+package 'libxslt1-dev'
+package 'libcurl4-openssl-dev'
+package 'libsqlite3-dev'
+package 'libyaml-dev'
+package 'zlib1g-dev'
+
+directory arachni_dir do
+ owner node['arachni']['user']
+ group node['arachni']['group']
+ mode 0755
+ action :create
+end
+
+bash "install-arachni" do
+ creates "#{arachni_dir}/bin/arachni"
+ code <<-EOH
+ cd #{arachni_dir}
+ wget -q -O - '#{node['arachni']['download_url']}' | tar --strip-components=1 -xzf -
+ EOH
+ user node['arachni']['user']
+end
View
5 roles/arachni.rb
@@ -0,0 +1,5 @@
+name "arachni"
+description "Arachni web application security scanner framework"
+run_list(
+ "recipe[arachni]"
+)
View
3 solo-nodes/arachni.json
@@ -0,0 +1,3 @@
+{
+ "run_list": [ "role[arachni]" ]
+}

0 comments on commit e981d86

Please sign in to comment.
Something went wrong with that request. Please try again.