diff --git a/SOLUTION b/SOLUTION index 0e969ab..5750a32 100644 --- a/SOLUTION +++ b/SOLUTION @@ -1,3 +1,3 @@ - << Change this line. The secret must be placed in the first line +814c5723c21e7e90a3eae36c8df3c513 # Good Luck! \ No newline at end of file diff --git a/mySolution.sh b/mySolution.sh old mode 100644 new mode 100755 index e69de29..cdc827d --- a/mySolution.sh +++ b/mySolution.sh @@ -0,0 +1,14 @@ +#!/bin/bash +wget https://exit-zero-academy.github.io/DevOpsTheHardWayAssets/linux_project/secretGenerator.tar.gz +gunzip secretGenerator.tar.gz +tar -xvf secretGenerator.tar +cd src +rm -rf maliciousFiles +mkdir secretDir +mv generateSecret.sh ./secretDir +cd secretDir +touch .secret +chmod 600 .secret +chmod 777 generateSecret.sh +cd .. +./secretDir/generateSecret.sh diff --git a/secretGenerator.tar b/secretGenerator.tar new file mode 100644 index 0000000..9a799ef Binary files /dev/null and b/secretGenerator.tar differ