lab update

This commit is contained in:
Z. Cliffe Schreuders
2018-01-04 12:43:56 +00:00
parent 647ebb8dd9
commit e97bfa7553
3 changed files with 10 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ In the unlikely event you experience technical issues with our infrastructure du
* If a VM looses its IP addresses (particularly the IDS server), simply run `sudo ifconfig eth1 *IP_ADDRESS*`, where `*IP_ADDRESS*` is the expected IP address (listed in the section below).
* If you experience any technical issues, which you believe to be outside your control, let us know before you leave the room. However, keep in mind we won't point you in the right direction of the answers during the test.
* If you experience any technical issues, which you believe to be outside your control, let us know before you leave the room. However, keep in mind we won't give hints for the actual test challenges.
## Getting started
### VMs in this lab

View File

@@ -1,6 +1,6 @@
<attack>
<% $rand_port_live = rand(65535) %>
<pre_shell>sshpass -p <%= $root_password %> ssh -oStrictHostKeyChecking=no root@<%= $web_server_ip %> 'setsid nc -l -p <%= $rand_port_live %> &amp;' &amp; sleep 3; killall -9 ssh; echo 'OK'</pre_shell>
<pre_shell>sshpass -p <%= $root_password %> ssh -oStrictHostKeyChecking=no root@<%= $web_server_ip %> 'setsid nc -l -p <%= $rand_port_live %> &amp; sleep 1' &amp; sleep 3; killall -9 ssh; echo 'OK'</pre_shell>
<get_shell>false</get_shell>
<post_command></post_command>
@@ -12,6 +12,11 @@
<message>Ok, answer this.</message>
<trigger_quiz />
</condition>
<condition>
<output_matches>OK..</output_matches>
<message>Ok, answer this.</message>
<trigger_quiz />
</condition>
<else_condition>
<message>Ok...</message>
</else_condition>

View File

@@ -67,6 +67,9 @@ def read_bots (irc_server_ip_address)
begin
doc = Nokogiri::XML(File.read(file))
if doc.errors.any?
Print.err doc.errors
end
rescue
Print.err "Failed to read hackerbot file (#{file})"
print "Failed to read hackerbot file (#{file})"