mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-23 12:18:04 +00:00
lab updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<attack>
|
||||
<!-- topic: Detecting changes to resources using backups-->
|
||||
<prompt>An attempt to edit a config file is coming, let it happen. But first make sure you have a backup of the /etc/ directory at /home/<%= $main_user %>/backups/etc/.</prompt>
|
||||
<post_command>changedf=`find /etc/ -name '*.sh' | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<post_command>changedf=`find /etc/ -name '*.sh' -type f | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<suppress_command_output_feedback />
|
||||
<condition>
|
||||
<output_matches>/etc/</output_matches>
|
||||
@@ -17,4 +17,3 @@
|
||||
<message>:( Something was not right... We are trying to write to /etc/</message>
|
||||
</else_condition>
|
||||
</attack>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<attack>
|
||||
<!-- topic: Detecting changes to resources using backups-->
|
||||
<prompt>An attempt to edit a config file is coming, let it happen. But first make sure you have a backup of the /etc/ directory at /home/<%= $main_user %>/backups/etc/.</prompt>
|
||||
<post_command>changedf=`find /home/<%= $main_user %>/backups/etc/ -name '*.sh' | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<post_command>changedf=`find /home/<%= $main_user %>/backups/etc/ -name '*.sh' -type f | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<suppress_command_output_feedback />
|
||||
<condition>
|
||||
<output_matches>/home/<%= $main_user %>/backups/</output_matches>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<attack>
|
||||
<!-- topic: Detecting changes to resources using backups-->
|
||||
<prompt>An attempt to edit a config file is coming, let it happen. But first make sure you have a backup of the /etc/ directory at /home/<%= $main_user %>/backups/etc/.</prompt>
|
||||
<post_command>changedf=`find /etc/ -name '*.sh' | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<post_command>changedf=`find /etc/ -name '*.sh' -type f | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<suppress_command_output_feedback />
|
||||
<condition>
|
||||
<output_matches>/etc/</output_matches>
|
||||
@@ -17,4 +17,3 @@
|
||||
<message>:( Something was not right... We are trying to write to /etc/</message>
|
||||
</else_condition>
|
||||
</attack>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<attack>
|
||||
<!-- topic: Detecting changes to resources using backups-->
|
||||
<prompt>An attempt to edit a config file is coming, let it happen. But first make sure you have a backup of the /etc/ directory at /home/<%= $main_user %>/backups/etc/.</prompt>
|
||||
<post_command>changedf=`find /home/<%= $main_user %>/backups/etc/ -name '*.sh' | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<post_command>changedf=`find /home/<%= $main_user %>/backups/etc/ -name '*.sh' -type f | sort -R | head -n 1`; echo '# <%= $flags.pop %>' >> $changedf; echo $changedf</post_command>
|
||||
<suppress_command_output_feedback />
|
||||
<condition>
|
||||
<output_matches>/home/<%= $main_user %>/backups/</output_matches>
|
||||
|
||||
Reference in New Issue
Block a user