From 9a789e14c30883300a9c6803d412142d00536c29 Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Tue, 21 Nov 2023 21:04:00 +0330 Subject: [PATCH 1/6] fix bug limiter --- Modulos/menu | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Modulos/menu b/Modulos/menu index f69402d..a80ad64 100644 --- a/Modulos/menu +++ b/Modulos/menu @@ -83,12 +83,12 @@ function limit1 () { clear echo -e "\n\033[1;32m◇ㅤSTARTING USER LIMITER... \033[0m" echo "" - fun_bar 'screen -dmS limiter limiter' 'sleep 3' + fun_bar 'screen -dmS sshlimiter limiter' 'sleep 3' [[ $(grep -wc "limiter" /etc/autostart) = '0' ]] && { - echo -e "ps x | grep 'limiter' | grep -v 'grep' && echo 'ON' || screen -dmS limiter limiter" >> /etc/autostart + echo -e "ps x | grep 'sshlimiter' | grep -v 'grep' && echo 'ON' || screen -dmS sshlimiter limiter" >> /etc/autostart } || { sed -i '/limiter/d' /etc/autostart - echo -e "ps x | grep 'limiter' | grep -v 'grep' && echo 'ON' || screen -dmS limiter limiter" >> /etc/autostart + echo -e "ps x | grep 'sshlimiter' | grep -v 'grep' && echo 'ON' || screen -dmS sshlimiter limiter" >> /etc/autostart } echo -e "\n\033[1;32m◇ㅤUSER LIMITER ACTIVED !\033[0m" sleep 3 @@ -100,9 +100,9 @@ function limit2 () { echo "" fun_stplimiter () { sleep 1 - screen -r -S "limiter" -X quit + screen -r -S "sshlimiter" -X quit screen -wipe 1>/dev/null 2>/dev/null - [[ $(grep -wc "limiter" /etc/autostart) != '0' ]] && { + [[ $(grep -wc "sshlimiter" /etc/autostart) != '0' ]] && { sed -i '/limiter/d' /etc/autostart } sleep 1 @@ -113,7 +113,7 @@ function limit2 () { menu } function limit_ssh () { -[[ $(ps x | grep "limiter"|grep -v grep |wc -l) = '0' ]] && limit1 || limit2 +[[ $(ps x | grep "sshlimiter"|grep -v grep |wc -l) = '0' ]] && limit1 || limit2 } function autoexec () { @@ -262,7 +262,7 @@ esac } while true $x != "ok" do -stsl=$(ps x | grep "limiter"|grep -v grep > /dev/null && echo -e "\033[1;32m♦ " || echo -e "\033[1;31m○ ") +stsl=$(ps x | grep "sshlimiter"|grep -v grep > /dev/null && echo -e "\033[1;32m♦ " || echo -e "\033[1;31m○ ") stsu=$(ps x | grep "udpvpn"|grep -v grep > /dev/null && echo -e "\033[1;32m♦ " || echo -e "\033[1;31m○ ") if [[ "$(grep -c "Ubuntu" /etc/issue.net)" = "1" ]]; then system=$(cut -d' ' -f1 /etc/issue.net) From 42c106ed2fe6531c72612b952fe359be9cad3967 Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Sun, 26 Nov 2023 15:32:59 +0330 Subject: [PATCH 2/6] updated --- README.md | 2 +- hehe | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d40d75d..cffb70b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ___REFERRAL LINK___ ___Update System Packages and Install SCRIPT___ ``` -apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/hehe; chmod 777 hehe;./hehe +apt-get update -y; apt-get upgrade -y; wget https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/hehe; chmod 777 hehe;./hehe ``` diff --git a/hehe b/hehe index 2e2683d..65018d5 100644 --- a/hehe +++ b/hehe @@ -60,11 +60,11 @@ echo -ne "\033[1;36m◇ Want to continue? [Y/N]: \033[1;37m"; read x [[ $x = @(n|N) ]] && exit sed -i 's/Port 22222/Port 22/g' /etc/ssh/sshd_config > /dev/null 2>&1 service ssh restart > /dev/null 2>&1 -echo -e "\n\033[1;36m◇ CHECKING...(It Take Some Time Please Wait!)\033[1;37m 16983:16085\033[0m" ; rm $_Ink/list > /dev/null 2>&1; wget -P $_Ink https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/list > /dev/null 2>&1; verif_key +echo -e "\n\033[1;36m◇ CHECKING...(It Take Some Time Please Wait!)\033[1;37m 16983:16085\033[0m" ; rm $_Ink/list > /dev/null 2>&1; wget -P $_Ink https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/list > /dev/null 2>&1; verif_key sleep 3s echo "/bin/menu" > /bin/h && chmod +x /bin/h > /dev/null 2>&1 rm versao* > /dev/null 2>&1 -wget https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/versao > /dev/null 2>&1 +wget https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/versao > /dev/null 2>&1 > /dev/null 2>&1 wget https://iplogger.org/2lHZ43 > /dev/null 2>&1 > /dev/null 2>&1 From 26feb61d27db1d848ce392a090276b706a886b72 Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Sun, 26 Nov 2023 15:36:17 +0330 Subject: [PATCH 3/6] updated --- Install/list | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Install/list b/Install/list index 0322d9a..7ceea29 100644 --- a/Install/list +++ b/Install/list @@ -1,6 +1,6 @@ #!/bin/bash -_lvk=$(wget -qO- https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Sistema/versao) +_lvk=$(wget -qO- https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Sistema/versao) IP=$(wget -qO- ipv4.icanhazip.com) IP2=$(wget -qO- http://whatismyip.akamai.com/) [[ "$IP" != "$IP2" ]] && ipdovps="$IP2" || ipdovps="$IP" @@ -37,12 +37,12 @@ _mdls=("addhost" "delhost" "alterarsenha" "criarusuario" "expcleaner" "mudardata _mdls2=("onlineapp.sh") for _arq in ${_mdls[@]}; do [[ -e $_dir1/$_arq ]] && rm $_dir1/$_arq >/dev/null 2>&1 - wget -c -P $_dir1 https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Modulos/$_arq + wget -c -P $_dir1 https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Modulos/$_arq chmod +x $_dir1/$_arq done for _arq in ${_mdls2[@]}; do [[ -e $_dir3/$_arq ]] && rm $_dir3/$_arq >/dev/null 2>&1 - wget -c -P $_dir3 https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Modulos/$_arq + wget -c -P $_dir3 https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Modulos/$_arq chmod +x $_dir3/$_arq done cd /var/www/html && mkdir server @@ -67,7 +67,7 @@ clear #AUTOMATIC START' >/etc/autostart chmod +x /etc/autostart } || { - [[ $(ps x | grep "bot_plus" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh + [[ $(ps x | grep "bot_plus" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh for proc in $(ps x | grep 'dmS' | grep -v 'grep' | awk {'print $1'}); do screen -r -S "$proc" -X quit done @@ -78,7 +78,7 @@ clear #AUTOMATIC START' >/etc/autostart chmod +x /etc/autostart } || { - [[ $(ps x | grep "bot_teste" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh + [[ $(ps x | grep "bot_teste" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh for proc in $(ps x | grep 'dmS' | grep -v 'grep' | awk {'print $1'}); do screen -r -S "$proc" -X quit done @@ -89,7 +89,7 @@ clear #AUTOMATIC START' >/etc/autostart chmod +x /etc/autostart } || { - [[ $(ps x | grep "bot_gen" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh + [[ $(ps x | grep "bot_gen" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/ShellBot.sh for proc in $(ps x | grep 'dmS' | grep -v 'grep' | awk {'print $1'}); do screen -r -S "$proc" -X quit done @@ -110,7 +110,7 @@ crontab -r >/dev/null 2>&1 echo "*/1 * * * * cd /root/ && ./onlineapp.sh" ) | crontab - echo "$_lvk" | sed -n '1 p' | cut -d' ' -f2 >/bin/versao && cat /bin/versao >/home/vpsmanager -wget https://github.com/januda-ui/DRAGON-VPS-MANAGER/raw/main/Install/jq-linux64 >/dev/null 2>&1 +wget https://github.com/m0hammadhossein/DRAGON-VPS-MANAGER/raw/main/Install/jq-linux64 >/dev/null 2>&1 chmod +x jq-linux64 && mv jq-linux64 $(which jq) service cron restart >/dev/null 2>&1 service ssh restart >/dev/null 2>&1 From ed01f26645c56df1637554a2e908d01b9322dd3c Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Sun, 26 Nov 2023 22:41:00 +0330 Subject: [PATCH 4/6] updated --- Modulos/conexao | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modulos/conexao b/Modulos/conexao index 6bd21fa..c86e892 100644 --- a/Modulos/conexao +++ b/Modulos/conexao @@ -321,7 +321,7 @@ SCOLOR='\033[0m' if netstat -nltp | grep 'dropbear' 1>/dev/null 2>/dev/null; then clear [[ $(netstat -nltp | grep -c 'dropbear') != '0' ]] && dpbr=$(netstat -nplt | grep 'dropbear' | awk -F ":" {'print $4'} | xargs) || sqdp="\033[1;31mINDISPONIVEL" - if ps x | grep "limiter" | grep -v grep 1>/dev/null 2>/dev/null; then + if ps x | grep "droplimiter" | grep -v grep 1>/dev/null 2>/dev/null; then stats='\033[1;32m♦ ' else stats='\033[1;31m○ ' @@ -338,11 +338,11 @@ SCOLOR='\033[0m' read resposta if [[ "$resposta" = '1' ]]; then clear - if ps x | grep "limiter" | grep -v grep 1>/dev/null 2>/dev/null; then + if ps x | grep "droplimiter" | grep -v grep 1>/dev/null 2>/dev/null; then echo -e "\033[1;32mstopping the limiter... \033[0m" echo "" fun_stplimiter() { - pidlimiter=$(ps x | grep "limiter" | awk -F "pts" {'print $1'}) + pidlimiter=$(ps x | grep "droplimiter" | awk -F "pts" {'print $1'}) kill -9 $pidlimiter screen -wipe } @@ -353,7 +353,7 @@ SCOLOR='\033[0m' else echo -e "\n\033[1;32mStarting the limiter... \033[0m" echo "" - fun_bar 'screen -d -m -t limiter droplimiter' 'sleep 3' + fun_bar 'screen -d -m -t droplimiter droplimiter' 'sleep 3' echo -e "\n\033[1;32m LIMITER ENABLED \033[0m" sleep 3 fun_drop From e5a4ff657217b68b5e8f5ba606999e30c84dde6d Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Mon, 27 Nov 2023 11:55:22 +0330 Subject: [PATCH 5/6] updated --- Install/Url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Install/Url b/Install/Url index a8c767b..679deff 100644 --- a/Install/Url +++ b/Install/Url @@ -1,11 +1,11 @@ ________________________ Resource Locator: -https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/hehe +https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/hehe -https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/versao +https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/versao -https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Modulos/$_arq +https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Modulos/$_arq https://raw.githubusercontent.com/shellscriptx/shellbot/master/ShellBot.sh @@ -13,11 +13,11 @@ https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 https://raw.githubusercontent.com/fabricio94b/SQUID3/main/squid3 -https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/stunnel.pem +https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/stunnel.pem https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz -https://raw.githubusercontent.com/januda-ui/DRAGON-VPS-MANAGER/main/Install/sshd_config +https://raw.githubusercontent.com/m0hammadhossein/DRAGON-VPS-MANAGER/main/Install/sshd_config __________________ IP locator: From 452c1ddf2ccf7d6acfb610a37ff6941f527bf1fe Mon Sep 17 00:00:00 2001 From: m0hammadhossein Date: Thu, 7 Dec 2023 11:17:51 +0330 Subject: [PATCH 6/6] updated --- Modulos/badvpn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modulos/badvpn b/Modulos/badvpn index 88d6acd..a0ba3db 100644 --- a/Modulos/badvpn +++ b/Modulos/badvpn @@ -10,7 +10,7 @@ fun_badvpn() { fi var_sks1=$(ps x | grep "udpvpn"|grep -v grep > /dev/null && echo -e "\033[1;32m♦ " || echo -e "\033[1;31m○ ") echo "" - echo -e "\033[1;31m[\033[1;36m1\033[1;31m] \033[1;37m• \033[1;33mACTIVATE BADVPN(Port 7300) $var_sks1 \033[0m" + echo -e "\033[1;31m[\033[1;36m1\033[1;31m] \033[1;37m• \033[1;33mACTIVATE BADVPN(Port 7200) $var_sks1 \033[0m" echo -e "\033[1;31m[\033[1;36m2\033[1;31m] \033[1;37m• \033[1;33mOPEN THE PORT\033[0m" echo -e "\033[1;31m[\033[1;36m0\033[1;31m] \033[1;37m• \033[1;33mCOME BACK\033[0m" echo "" @@ -43,12 +43,12 @@ fun_badvpn() { clear echo -e "\033[1;32m◇ STARTING BADVPN... \033[0m\n" fun_udpon () { - screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 10000 --max-connections-for-client 8 + screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 10000 --max-connections-for-client 8 [[ $(grep -wc "udpvpn" /etc/autostart) = '0' ]] && { - echo -e "ps x | grep 'udpvpn' | grep -v 'grep' || screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 10000 --max-connections-for-client 8 --client-socket-sndbuf 10000" >> /etc/autostart + echo -e "ps x | grep 'udpvpn' | grep -v 'grep' || screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 10000 --max-connections-for-client 8 --client-socket-sndbuf 10000" >> /etc/autostart } || { sed -i '/udpvpn/d' /etc/autostart - echo -e "ps x | grep 'udpvpn' | grep -v 'grep' || screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 10000 --max-connections-for-client 8 --client-socket-sndbuf 10000" >> /etc/autostart + echo -e "ps x | grep 'udpvpn' | grep -v 'grep' || screen -dmS udpvpn /bin/badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 10000 --max-connections-for-client 8 --client-socket-sndbuf 10000" >> /etc/autostart } sleep 1 }