[Auto-Generate Flag (v0.1) under Combat training]20180117,linux
Sets the process for target target drone (Linux) to generate flag at timed intervals.
Use the command Su and enter the root user's password
2.1 Create a new script and name it ye2.sh
Use the command:
Nano ye2.sh
#!/bin/bash
While ["1" = "1"]
Do
z= ' OpenSSL rand-base64 30 '
s=$ (($RANDOM%100))
ECHO-E $z >>/USR/VMWARE.MC
ECHO-E $z >/root/flag
Sleep 15m
Done
#注意while语句中各空格的位置, less space will be an error
#注: the symbol "'" in line 4th is not a single quotation mark in English, but a grave accent, which needs to be typed under the English input method, with the keys below the "ESC" key, as shown in the Blue box:
Save and exit the Nano editor, press CTRL + X on the keyboard, and see a prompt asking if you want to save, as shown in:
chmod a+x ye2.sh
Ps
------------------------------------------------------------------------------
[Flag (v0.1) automatically generated under]20180117,linux training]