mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 19:28:02 +00:00
lab update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %> &' & 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 %> & sleep 1' & 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>
|
||||
|
||||
@@ -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})"
|
||||
|
||||
Reference in New Issue
Block a user