forked from pwncollege/dojo
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add help for some /home/hacker footguns to init scripts (pwncollege#331)
* refactor: move some initialization code to a .sh this script was already being called the line above there's not really much reason for it to live in docker.py * fix home directory permissions on init (pwncollege#103, pwncollege#253) * Add low disk space warning to bash.bashrc --------- Co-authored-by: Yan Shoshitaishvili <[email protected]>
- Loading branch information
1 parent
37364be
commit 1c90463
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
#!/bin/sh | ||
|
||
chown hacker:hacker /home/hacker | ||
chmod 755 /home/hacker | ||
|
||
if [ -x "/challenge/.init" ]; then | ||
/challenge/.init | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters