diff --git a/modules/generators/network/pcap/secgen_local/local.rb b/modules/generators/network/pcap/secgen_local/local.rb
index b98b3b900..abf819555 100644
--- a/modules/generators/network/pcap/secgen_local/local.rb
+++ b/modules/generators/network/pcap/secgen_local/local.rb
@@ -36,23 +36,22 @@ def packetgen(type, data)
def datagen
data_types = [
- Faker::Dota.quote,
- Faker::BackToTheFuture.quote,
- Faker::BojackHorseman.quote,
+ Faker::Games::Dota.quote,
+ Faker::Movies::BackToTheFuture.quote,
+ Faker::TvShows::BojackHorseman.quote,
Faker::ChuckNorris.fact,
- Faker::DrWho.quote,
- Faker::DumbAndDumber.quote,
- Faker::FamilyGuy.quote,
- Faker::Friends.quote,
- Faker::GameOfThrones.quote,
- Faker::HitchhikersGuideToTheGalaxy.quote,
- Faker::HowIMetYourMother.quote,
- Faker::Lebowski.quote,
- Faker::MostInterestingManInTheWorld.quote,
- Faker::RickAndMorty.quote,
- Faker::Simpsons.quote,
- Faker::StrangerThings.quote,
- Faker::TheITCrowd.quote
+ Faker::TvShows::DrWho.quote,
+ Faker::TvShows::FamilyGuy.quote,
+ Faker::TvShows::Friends.quote,
+ Faker::TvShows::GameOfThrones.quote,
+ Faker::Movies::HitchhikersGuideToTheGalaxy.quote,
+ Faker::TvShows::HowIMetYourMother.quote,
+ Faker::Movies::Lebowski.quote,
+ Faker::Quote.most_interesting_man_in_the_world,
+ Faker::TvShows::RickAndMorty.quote,
+ Faker::TvShows::Simpsons.quote,
+ Faker::TvShows::StrangerThings.quote,
+ Faker::TvShows::TheITCrowd.quote
]
data_types.sample.dump.to_s
end
@@ -95,7 +94,8 @@ def encode_all
# Put packets in pcap file and return contents.
file_contents = ''
pfile = PacketFu::PcapFile.new
- pcap_file_path = GENERATORS_DIR + 'network/pcap/files/packet.pcap'
+ # Use temp directory and create a unique filename to avoid conflicts
+ pcap_file_path = "#{TMP_DIR}/packet_#{Process.pid}_#{Time.now.to_i}.pcap"
res = pfile.array_to_file(:filename => pcap_file_path, :array => @pcaps, :append => true)
file_contents = File.binread(pcap_file_path)
File.delete(pcap_file_path)
diff --git a/scenarios/ctf/analyse_this.xml b/scenarios/ctf/analyse_this.xml
index 231b2ff15..06f4aa38d 100644
--- a/scenarios/ctf/analyse_this.xml
+++ b/scenarios/ctf/analyse_this.xml
@@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.github/cliffe/SecGen/scenario">
Putting it together
+ Rosie Fletcher
Z. Cliffe Schreuders
Analyse the files on the server from kali.
Username: analyse
@@ -58,17 +59,22 @@
+
{"username":"kali","password":"kali","super_user":"true","strings_to_leak":[],"leaked_filenames":[]}
- false
+ true
+
+
+ file:///opt/cyberchef/CyberChef.html
+
@@ -87,7 +93,7 @@
server
-
+
@@ -140,6 +146,16 @@
+
+
+
+ username
+
+
+ password
+
+
+
@@ -153,18 +169,28 @@
capture.pcap
-
- /home/analyse/
-
-
- /home/analyse/
+
+
+
+ username
+
+
+ password
+
+
+
+ secret
+
+
+ find_it
+