From fad4fbc7f95bbd56534bce80114f1b6d4ab37abe Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 24 Jul 2023 01:08:09 +0300 Subject: [PATCH] add simple dumb blocks --- .gitignore | 1 + executor.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index da3dde4..2830e6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ access_granted +access_denied config diff --git a/executor.sh b/executor.sh index e3c631e..0276b8b 100755 --- a/executor.sh +++ b/executor.sh @@ -23,6 +23,10 @@ die(){ } mkdir -p -m 700 access_granted +mkdir -p -m 700 access_denied + +if [ -f access_denied/"$remote_ip" ]; then exit 0; fi + generator_session=$(zcat -f $system_dict | shuf -n 2 | tr -d "\n'") randpadding=$(head -c 8 /dev/urandom | base64) printf "$randpadding\t$generator_session\n"