-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to SSH_Server and add .gitignore
- Loading branch information
Showing
6 changed files
with
67 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Docker project generated files to ignore | ||
# if you want to ignore files created by your editor/tools, | ||
# please consider a global .gitignore https://help.github.com/articles/ignoring-files | ||
.vagrant* | ||
bin | ||
docker/docker | ||
.*.swp | ||
a.out | ||
*.orig | ||
build_src | ||
.flymake* | ||
.idea | ||
.DS_Store | ||
docs/_build | ||
docs/_static | ||
docs/_templates | ||
.gopath/ | ||
.dotcloud | ||
*.test | ||
bundles/ | ||
.hg/ | ||
.git/ | ||
vendor/pkg/ | ||
pyenv | ||
Vagrantfile |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
|
||
|
||
# Prevent ctrl-z (job control) | ||
trap "echo My patience is wearing thin..." SIGTSTP | ||
|
||
# Prevent ctrl-c | ||
trap "echo Nice try..." SIGINT | ||
|
||
NC='\033[0m' | ||
RED='\033[0;31m' | ||
GREEN='\033[1;92m' | ||
CYAN='\033[0;36m' | ||
|
||
|
||
timeout 3s cmatrix | ||
|
||
|
||
# Substring to check for | ||
substring="pass butter" | ||
|
||
while true; do | ||
# Prompt user for input | ||
echo -e -n "${GREEN}What is my purpose?: ${NC}" | ||
read -r user_input | ||
#read -r -p "What is my purpose?: " user_input | ||
|
||
# Check if the entered string contains the substring | ||
if [[ "$user_input" == *"$substring"* ]]; then | ||
echo "OMG..." | ||
echo -e "${CYAN}nUE0pUZ6Yl9xov5bqP9jnJAeoTIwLKDi${NC}\n\n" | ||
|
||
# Don't use exit/break since this will kill the script and leave user in ssh terminal. | ||
pkill -u $(whoami) sshd | ||
else | ||
echo -e "${RED}V3JvbmcgQW5zd2VyIQ==${NC}\n" | ||
fi | ||
done |
File renamed without changes.