From 7151560f259a9ff2a49f846f2ff19111624cf976 Mon Sep 17 00:00:00 2001 From: Aviral Khanna Date: Sun, 15 Sep 2024 21:50:18 +0530 Subject: [PATCH 1/3] Solution(Secret) --- SOLUTION | 2 +- mySolution.sh | 10 ++++++++++ test/.secret | 0 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/.secret diff --git a/SOLUTION b/SOLUTION index 0e969ab..34b422c 100644 --- a/SOLUTION +++ b/SOLUTION @@ -1,3 +1,3 @@ - << Change this line. The secret must be placed in the first line +814c5723c21e7e90a3eae36c8df3c513 << Change this line. The secret must be placed in the first line # Good Luck! \ No newline at end of file diff --git a/mySolution.sh b/mySolution.sh index e69de29..efc037a 100644 --- a/mySolution.sh +++ b/mySolution.sh @@ -0,0 +1,10 @@ +wget https://exit-zero-academy.github.io/DevOpsTheHardWayAssets/linux_project/secretGenerator.tar.gz +tar -xf secretGenerator.tar.gz +cd src +mkdir secretDir +chmod +x generateSecret.sh +rm -rf maliciousFiles/ +touch secretDir/.secret +chmod 600 secretDir/.secret +chmod +x generateSecret.sh +./generateSecret.sh \ No newline at end of file diff --git a/test/.secret b/test/.secret new file mode 100644 index 0000000..e69de29 From 95d1d95581c35f5bc4bfbbaca05072019f22f24b Mon Sep 17 00:00:00 2001 From: Aviral Khanna Date: Sun, 15 Sep 2024 21:51:34 +0530 Subject: [PATCH 2/3] SecretSolution --- test/.secret => .secret | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/.secret => .secret (100%) diff --git a/test/.secret b/.secret similarity index 100% rename from test/.secret rename to .secret From 3df44db926915dd304c24b4f2951e6fc683a37a5 Mon Sep 17 00:00:00 2001 From: Aviral Khanna Date: Sun, 15 Sep 2024 21:52:47 +0530 Subject: [PATCH 3/3] Solution(Secret) --- SOLUTION | 2 +- mySolution.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SOLUTION b/SOLUTION index 34b422c..1502b48 100644 --- a/SOLUTION +++ b/SOLUTION @@ -1,3 +1,3 @@ 814c5723c21e7e90a3eae36c8df3c513 << Change this line. The secret must be placed in the first line -# Good Luck! \ No newline at end of file +# Good Luck! \ No newline at end of file diff --git a/mySolution.sh b/mySolution.sh index efc037a..45149bd 100644 --- a/mySolution.sh +++ b/mySolution.sh @@ -3,7 +3,7 @@ tar -xf secretGenerator.tar.gz cd src mkdir secretDir chmod +x generateSecret.sh -rm -rf maliciousFiles/ +rm -rf maliciousFiles/ touch secretDir/.secret chmod 600 secretDir/.secret chmod +x generateSecret.sh