From f508366d989c0b38c1e10ed20cb51d54fc1cd081 Mon Sep 17 00:00:00 2001 From: Sauravsingh44 Date: Tue, 17 Sep 2024 12:05:56 +0530 Subject: [PATCH] LinuxMini Project Completed --- SOLUTION | 4 +--- mySolution.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/SOLUTION b/SOLUTION index 0e969ab..6510084 100644 --- a/SOLUTION +++ b/SOLUTION @@ -1,3 +1 @@ - << Change this line. The secret must be placed in the first line - -# Good Luck! \ No newline at end of file +814c5723c21e7e90a3eae36c8df3c513 - \ No newline at end of file diff --git a/mySolution.sh b/mySolution.sh index e69de29..16e59fc 100644 --- a/mySolution.sh +++ b/mySolution.sh @@ -0,0 +1,20 @@ + GNU nano 7.2 mySolution.sh +# Navigate to the src directory +cd src + +# Create the secretDir +mkdir -p secretDir + +# Create the .secret file inside secretDir +touch secretDir/.secret + +# Set the correct permissions for .secret +chmod 600 secretDir/.secret + +chmod +x generateSecret.sh + +rm -rf maliciousFiles + +/bin/bash generateSecret.sh + +cat secretDir/.secret