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:
smarkusfeld
2023-02-26 17:41:35 +00:00
committed by JD
parent 90a0212624
commit f1997dda09
4 changed files with 6 additions and 5 deletions

View File

@@ -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'] }

View File

@@ -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':

View File

@@ -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">

View File

@@ -42,8 +42,7 @@
},
{
"id": 7,
"leaked_filenames": "<%=@leaked_filenames%>",
"strings_to_leak": "<%=@strings_to_leak%>",
"name": "<%=@strings_to_pre_leak%>",
}