modules for ChatGPT-enhanced thematic content

This commit is contained in:
Z. Cliffe Schreuders
2023-04-21 15:00:41 +01:00
parent a36a020393
commit bb4047fd27
33 changed files with 175 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ STORY_DIR = "#{ROOT_DIR}/lib/resources/narrative"
BLACKLISTED_WORDS_FILE = "#{ROOT_DIR}/lib/resources/blacklisted_words/blacklist.txt"
IMAGES_DIR = "#{ROOT_DIR}/lib/resources/images"
ASCII_ART_DIR = "#{ROOT_DIR}/lib/resources/ascii_art"
EVIL_PLANS_DIR = "#{ROOT_DIR}/lib/resources/narrative/evil_plans"
PASSWORDLISTS_DIR = "#{ROOT_DIR}/lib/resources/passwordlists"
WS_ATTACK_DIR = "#{ROOT_DIR}/lib/resources/ws_attacks"
STYLING_DIR = "#{ROOT_DIR}/lib/resources/website_styling"

View File

@@ -0,0 +1,17 @@
#!/usr/bin/ruby
require_relative '../../../../../lib/objects/local_string_generator.rb'
class EvilDiaryGenerator < StringGenerator
def initialize
super
self.module_name = 'Random Evil Diary Generator'
end
def generate
self.outputs << [*File.readlines("#{LINELISTS_DIR}/diary_boring").sample(4),
*File.readlines("#{LINELISTS_DIR}/diary_evil").sample(4)].join
end
end
EvilDiaryGenerator.new.run

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Evil Diary Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Generates an evil diary, with a combination of normal, and evil entries.</description>
<type>evil_file_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<output_type>generated_strings</output_type>
</generator>

View File

@@ -0,0 +1,17 @@
#!/usr/bin/ruby
require_relative '../../../../../lib/objects/local_string_generator.rb'
class EvilLifeGoalsGenerator < StringGenerator
def initialize
super
self.module_name = 'Random Evil Life Goals Generator'
end
def generate
self.outputs << ["My Goals:\n", *File.readlines("#{LINELISTS_DIR}/life_goals").sample(2),
*File.readlines("#{LINELISTS_DIR}/life_goals_evil").sample(2)].join
end
end
EvilLifeGoalsGenerator.new.run

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Evil Life Goals Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Generates an evil list of goals, with a combination of normal, and evil entries.</description>
<type>evil_file_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<output_type>generated_strings</output_type>
</generator>

View File

@@ -0,0 +1,17 @@
#!/usr/bin/ruby
require_relative '../../../../../lib/objects/local_string_generator.rb'
class EvilOperativesGenerator < StringGenerator
def initialize
super
self.module_name = 'Random Evil Life Goals Generator'
end
def generate
# read all the lines, and select 5 at random
self.outputs << File.readlines("#{LINELISTS_DIR}/operatives_evil").sample(5).join
end
end
EvilOperativesGenerator.new.run

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Evil Operatives Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Generates an evil list of operatives.</description>
<type>evil_file_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<output_type>generated_strings</output_type>
</generator>

View File

@@ -0,0 +1,16 @@
#!/usr/bin/ruby
require 'base64'
require_relative '../../../../../lib/objects/local_string_generator.rb'
class EvilPlansGenerator < StringGenerator
def initialize
super
self.module_name = 'Random Evil Plans File Generator'
end
def generate
selected_path = Dir["#{EVIL_PLANS_DIR}/*"].sample
self.outputs << File.read(selected_path)
end
end
EvilPlansGenerator.new.run

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Evil Plans Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Selects and outputs random evil file from the lib/resources/narrative/evil_plans directory.</description>
<type>evil_file_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<output_type>ascii_art</output_type>
</generator>

View File

@@ -0,0 +1,17 @@
#!/usr/bin/ruby
require_relative '../../../../../lib/objects/local_string_generator.rb'
class EvilTransactionHistoryGenerator < StringGenerator
def initialize
super
self.module_name = 'Random Evil Transaction History Generator'
end
def generate
# read all the lines, and select one at random
self.outputs.push *File.readlines("#{LINELISTS_DIR}/transaction_history_evil").sample(5)
end
end
EvilTransactionHistoryGenerator.new.run

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<generator xmlns="http://www.github/cliffe/SecGen/generator"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/generator">
<name>Random Evil Transaction History Generator</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>Generates an evil list of transaction entries.</description>
<type>evil_file_generator</type>
<type>local_calculation</type>
<platform>linux</platform>
<platform>windows</platform>
<output_type>generated_strings</output_type>
</generator>