Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux mini project completed #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SOLUTION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<your secret here> << Change this line. The secret must be placed in the first line
814c5723c21e7e90a3eae36c8df3c513

# Good Luck!
14 changes: 14 additions & 0 deletions mySolution.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Binary file added secretGenerator.tar
Binary file not shown.