mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-20 13:50:45 +00:00
UPDATE: Changed database variable from strings to leak to strings to preleak
TODO: 1. Team Testing 2. Remove Testing Variables
This commit is contained in:
@@ -7,6 +7,7 @@ class apache_couchdb::configure {
|
||||
$jsondb = 'sampledata' ##TODO secgen
|
||||
$strings_to_leak = ["this is a list of strings that are secrets / flags","another secret"]##$secgen_parameters['strings_to_leak']
|
||||
$leaked_filenames = ["flagtest"]##$secgen_parameters['leaked_filenames']
|
||||
$strings_to_preleak = ["preleak"]##$secgen_parameters['strings_to_pre_leak'],
|
||||
|
||||
Exec { path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'] }
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ class apache_couchdb::install {
|
||||
|
||||
$responsefile= 'installresponse'
|
||||
$packagename = 'couchdb_3.2.1_buster_amd64'
|
||||
$jsondb = 'sampledata.json'
|
||||
$jsondb = 'sampledata'
|
||||
ensure_packages(['build-essential','pkg-config', 'erlang','libicu-dev', 'libmozjs-60-dev','libcurl4-openssl-dev', 'gnupg'])
|
||||
Exec { path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'] }
|
||||
|
||||
@@ -16,9 +16,9 @@ class apache_couchdb::install {
|
||||
ensure => file,
|
||||
content => template("apache_couchdb/${responsefile}.erb"),
|
||||
}->
|
||||
file { "/usr/bin/${jsondb}" :
|
||||
file { "/usr/bin/${jsondb}.json" :
|
||||
ensure => file,
|
||||
content => template("apache_couchdb/${jsondb}.erb"),
|
||||
content => template("apache_couchdb/${jsondb}.json"),
|
||||
}->
|
||||
#install couch db from deb file
|
||||
package {'couchdb-install':
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<read_fact>known_username</read_fact>
|
||||
<read_fact>known_password</read_fact>
|
||||
<read_fact>strings_to_leak</read_fact>
|
||||
<read_fact>strings_to_preleak</read_fact>
|
||||
<read_fact>leaked_filenames</read_fact>
|
||||
|
||||
<default_input into="port">
|
||||
|
||||
@@ -42,8 +42,7 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"leaked_filenames": "<%=@leaked_filenames%>",
|
||||
"strings_to_leak": "<%=@strings_to_leak%>",
|
||||
"name": "<%=@strings_to_pre_leak%>",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user