Skip to content

Commit

Permalink
Revert "Upgrade for nix PATH changes"
Browse files Browse the repository at this point in the history
This reverts commit 4b03f79.
  • Loading branch information
ConnorNelson committed Jul 11, 2024
1 parent 4b03f79 commit d43ae74
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion access-control/bin/cat

This file was deleted.

1 change: 0 additions & 1 deletion access-control/bin/cp

This file was deleted.

1 change: 0 additions & 1 deletion access-control/level-4/bin/cat

This file was deleted.

1 change: 0 additions & 1 deletion access-control/level-5/bin/cp

This file was deleted.

5 changes: 5 additions & 0 deletions access-control/run
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ def level4():
print("Before:")
os.system(f"/bin/ls -la /bin/cat")

# create a symlink
os.chmod("/bin/cat", 0o4755)
os.mkdir("/challenge/bin")
os.symlink("/bin/cat", "/challenge/bin/cat")

print("After:")
os.system(f"/bin/ls -la /bin/cat")
Expand All @@ -256,6 +259,8 @@ def level5():
os.system(f"/bin/ls -la /bin/cp")

os.chmod("/bin/cp", 0o4755)
os.mkdir("/challenge/bin")
os.symlink("/bin/cp", "/challenge/bin/cp")

print("After:")
os.system(f"/bin/ls -la /bin/cp")
Expand Down

0 comments on commit d43ae74

Please sign in to comment.