Commit 15b53959 authored by anonym's avatar anonym
Browse files

Merge remote-tracking branch 'origin/bugfix/16365-update-network-manager' into...

Merge remote-tracking branch 'origin/bugfix/16365-update-network-manager' into testing (Fix-committed: #16365)
parents 50fbec12 ff0b71ab
Then /^the hostname should not have been leaked on the network$/ do
begin
hostname = $vm.execute("hostname").stdout.chomp
hostnames = ["amnesia", $vm.execute("hostname").stdout.chomp]
packets = PacketFu::PcapFile.new.file_to_array(filename: @sniffer.pcap_file)
packets.each do |p|
# if PacketFu::TCPPacket.can_parse?(p)
......@@ -12,8 +12,10 @@ Then /^the hostname should not have been leaked on the network$/ do
else
raise "Found something in the pcap file that either is non-IP, or cannot be parsed"
end
if payload.match(hostname)
raise "Hostname leak detected"
hostnames.each do |hostname|
if payload.match(hostname)
raise "Hostname leak detected: #{hostname}"
end
end
end
rescue Exception => e
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment