reversing_tools

This commit is contained in:
ts
2018-10-30 16:32:32 +00:00
parent e3053ac455
commit 86a575f99c
5 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
class reversing_tools::install {
Exec { path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'] }
ensure_packages(['gdb','git'])
# Install Radare2
file { '/opt/radare2-2.7.0.tar.gz':
ensure => present,
source => 'puppet:///modules/reversing_tools/radare2-2.7.0.tar.gz',
}
exec { 'unpack r2':
cwd => '/opt/',
command => 'tar -xzvf radare2-2.7.0.tar.gz',
}
exec { 'configure r2':
cwd => '/opt/radare2-2.7.0/',
command => '/bin/bash ./configure --prefix=/usr',
}
exec { 'make r2':
cwd => '/opt/radare2-2.7.0/',
command => '/usr/bin/make -j8',
}
exec { 'make install r2':
cwd => '/opt/radare2-2.7.0/',
command => 'make install',
}
# Install angr (TODO)
# Install AFL?(TODO)
# Install Driller?(TODO)
}

View File

@@ -0,0 +1 @@
include reversing_tools::install

View File

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<utility xmlns="http://www.github/cliffe/SecGen/utility"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/utility">
<name>Reversing tools</name>
<author>Thomas Shaw</author>
<module_license>Apache v2</module_license>
<description>Installs gdb, radare2 (TODO: and angr) for reverse engineering challenges.</description>
<type>reversing_tools</type>
<platform>linux</platform>
</utility>

View File

@@ -8,6 +8,8 @@
<system_name>metactf</system_name>
<base platform="linux" type="server" distro="Stretch"/>
<utility type="reversing_tools"/>
<utility module_path=".*parameterised_accounts">
<input into="accounts" into_datastore="account">
<generator type="account">