[SCRIPT]Metin2 Server Config & FreeBSD Shell

Deconectat
Avatar utilizator
Juppsy
Nivel 1
Nivel 1
Mesaje: 123
Membru din: 01 Aug 2014
Status: ZEU
Server Metin2: In lucru
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 0
Contact:

[SCRIPT]Metin2 Server Config & FreeBSD Shell

Mesajde Juppsy » 17 Dec 2014, 15:59

Salutare just4metin, cautam ceva si am gasit un script destul de folositor zic eu.

#!/bin/bash
clear
echo -e "\033[31m#-------------- Welcome to Galactica Gaming FreeBSD Shell Script --------------------#"
echo -e "\033[31m#-------------- Made By : Mehti --------------------#"
echo "#-----------------------------------------------------------------#"
echo -e "\033[33m#----------------SECURiTY BiTCHEZ----------------#"
echo "# (1) Check Server Ram #"
echo "# (2) DDoS Attack Counts + Attacks IP #"
echo "# (3) Who Login my Server??!?! #"
echo "# (4) YouHaveANoobAttacker? Try IP Ban :H #"
echo "# (5) Last Connection #"
echo "# (6) Check Online User Count #"
echo "#-----------------------------------------------------------------#"
echo -e "\033[34m#-------------- QUEST PANEL ---------------#"
echo "# (7) Update Quest Cache #"
echo "#-----------------------------------------------------------------#"
echo "# (8) MAX_LEVEL CONFIG #"
echo "# (9) Max_LEVEL_STATUS CONFIG #"
echo "# (10) MAX_STATUS CONFIG #"
echo "# (11) SKILL_BOOK_READ_TIME CONFIG #"
echo "# (12) SKILL_BOOK_READ_EXP CONFIG #"
echo "# (13) MAX_GUILD_LEVEL CONFIG #"
echo "# (14) ITEM_OWNER_TIME CONFIG #"
echo "# (15) SKILL_BOOK_ALWAYS#"
echo "# (16) ALWAYS BONUS ADD CONFIG : 1 YES 0 NO #"
echo "# (17) BONUS CHANGE LIMIT TIME CONFIG #"
echo "# (18) GOLD DROP TIME CONFIG #"
echo -e "\033[31m#\033[33m-----------------------------------------------------------------\033[31m#"
echo -e "\033[31m#\033[34m########################\033[32m SERVER PORTS STATUS \033[34m ######################\033[31m#\033[0m"
netstat -ln | grep ".13000 " | wc -l | awk '{if ($1 == 0) system("echo -e \033[31m#\033[36m######################### 1.\033[0m Kanal \033[31mOfline \033[36m########################\033[0m") }'
netstat -ln | grep ".13000 " | wc -l | awk '{if ($1 > 0) system("echo -e \033[31m#\033[36m######################### 1.\033[0m Kanal \033[32mOnline \033[36m########################\033[0m") }'
netstat -ln | grep ".13010" | wc -l | awk '{if ($1 == 0) system("echo -e \033[31m#\033[36m######################### 2.\033[0m Kanal \033[31mOfline \033[36m########################\033[0m") }'
netstat -ln | grep ".13010 " | wc -l | awk '{if ($1 > 0) system("echo -e \033[31m#\033[36m######################### 2.\033[0m Kanal \033[32mOnline \033[36m########################\033[0m") }'
netstat -ln | grep ".13020 " | wc -l | awk '{if ($1 == 0) system("echo -e \033[31m#\033[36m######################### 3.\033[0m Kanal \033[31mOfline \033[36m########################\033[0m") }'
netstat -ln | grep ".13020 " | wc -l | awk '{if ($1 > 0) system("echo -e \033[31m#\033[36m######################### 3.\033[0m Kanal \033[32mOnline \033[36m########################\033[0m") }'
netstat -ln | grep ".13030 " | wc -l | awk '{if ($1 == 0) system("echo -e \033[31m#\033[36m######################### 4.\033[0m Kanal \033[31mOfline \033[36m########################\033[0m") }'
netstat -ln | grep ".13030 " | wc -l | awk '{if ($1 > 0) system("echo -e \033[31m#\033[36m######################### 4.\033[0m Kanal \033[32mOnline \033[36m########################\033[0m") }'
echo -e "\033[31m#\033[33m-----------------------------------------------------------------\033[31m#"


echo Select Number :
read secenek


case $secenek in


1)
clear
echo "Checking Ram.."
sleep 3
dmesg | grep memory
echo "Real Memory is Your Ram."
;;
2)
clear
echo "Checking DDOS Attacks.."
sleep 3
netstat -np | grep SYN_RECV | awk '{print $5}' | cut -d. -f1-4 | cut -d: -f1 | sort -n | uniq -c | sort -n
echo "Attacks and IP"
;;
3)
who
;;
4)
clear
echo "Opening IP Ban Screen~"
sleep 3
echo Use " Ctrl+C " to Exit.
echo -n "IP: "
read ip
echo ""
echo '$IP'F 1 deny all from $ip to me >> /etc/ipfw.rules
/etc/rc.d/ipfw restart
echo "Successfuly Banned: "$ip" ~ "
sleep 4
clear
/etc/rc.d/ipfw restart
sh /etc/ipfw.rules
cd /bin
sleep 2
neta
;;
5)
clear
echo "Opening Last Connection on Server.."
sleep 3
last
;;
6)
clear
echo "Calculating Number of Online Players."
sleep 3
echo "First_Channel;"
netstat -nat | grep 13000 | grep ESTABLISHED | wc -l
netstat -nat | grep 13002 | grep ESTABLISHED | wc -l
echo "MapServer_Cores;"
netstat -nat | grep 13099 | grep ESTABLISHED | wc -l
netstat -nat | grep 13100 | grep ESTABLISHED | wc -l
netstat -nat | grep 13001 | grep ESTABLISHED | wc -l
;;
7)
clear
echo "Cleaning and RE-Build Quest Cache"
sleep 3
cd /usr/home/game/share/locale/germany/quest && ./make.sh
echo "Succesfully ReBuild Cache"
;;
8)
echo -n " MAX_LEVEL CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \MAX_LEVEL: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \MAX_LEVEL: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \MAX_LEVEL: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \MAX_LEVEL: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \MAX_LEVEL: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \MAX_LEVEL: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \MAX_LEVEL: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \MAX_LEVEL: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \MAX_LEVEL: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
9)
echo -n " MAX_LEVEL_STATUS CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \MAX_LEVEL_STATUS: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
10)
echo -n " MAX_STATUS CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \MAX_STATUS: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \MAX_STATUS: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \MAX_STATUS: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \MAX_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \MAX_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \MAX_STATUS: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \MAX_STATUS: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \MAX_STATUS: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \MAX_STATUS: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
11)
echo -n " SKILLBOOK_DELAY CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \SKILLBOOK_DELAY: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
12)
echo -n " SKILLBOOK_NEED_EXP CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \SKILLBOOK_NEED_EXP: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
13)
echo -n " guild_max_level CONFIG "
echo -n " Maximum Guild Level Max is : 50 Min : 1 "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \guild_max_level: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \guild_max_level: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \guild_max_level: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \guild_max_level: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \guild_max_level: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \guild_max_level: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \guild_max_level: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \guild_max_level: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \guild_max_level: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
14)
echo -n " item_owner_time CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \item_owner_time: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \item_owner_time: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \item_owner_time: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \item_owner_time: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \item_owner_time: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \item_owner_time: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \item_owner_time: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \item_owner_time: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \item_owner_time: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
15)
echo -n " SKILLBOOK_ALWAYS_BOOK CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \SKILLBOOK_ALWAYS_BOOK: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
16)
echo -n " attr_always_add CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \attr_always_add: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \attr_always_add: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \attr_always_add: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \attr_always_add: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \attr_always_add: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \attr_always_add: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# \echo attr_always_add: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# \echo attr_always_add: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# \echo attr_always_add: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
17)
echo -n " attr_change_limit CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \attr_change_limit: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \attr_change_limit: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \attr_change_limit: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \attr_change_limit: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \attr_change_limit: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \attr_change_limit: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \attr_change_limit: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \attr_change_limit: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \attr_change_limit: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
18)
echo -n " gold_drop_time_interval CONFIG "
read ip
echo "All Server Closig Now.."
cd /usr/home/game/ && ./close.sh
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/auth_server/CONFIG #auth
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re1/CONFIG # channel1 core1
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/first_channel/mehti_channelz_c0re2/CONFIG # channel1 core2
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core1/CONFIG # MapServer Core1
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core2/CONFIG # MapServer Core2
echo \gold_drop_time_interval: $ip\ >> /usr/home/game/game_map_server/Mehti_Map_Core3/CONFIG # MapServer Core3
# echo \gold_drop_time_interval: $ip\ >> /usr/home/game/channel2/CONFIG #Channel2
# echo \gold_drop_time_interval: $ip\ >> /usr/home/game/channel3/CONFIG #Channel3
# echo \gold_drop_time_interval: $ip\ >> /usr/home/game/channel4/CONFIG #Channel4
echo "IT'S OK. Now Closing Server and Cleaning Logs."
cd /usr/home/game/ && ./clear.sh
;;
*)
echo "You have selected and incorrent option"
esac

Tot ce este ingrosat si colorat trebuie modificat cu locatiile pe care le aveti.


Script-ul nu e facut de mine, deci nu raspund de eventualele stricaciuni.
Acest script este recomandat pentru Vanilla Core.

Deconectat
Avatar utilizator
AlexTzutzu
Mister Just4Metin
Mister Just4Metin
Mesaje: 2265
Membru din: 12 Feb 2014
Localitate: Teleorman
Status: Hate idiot kids
Server Metin2: www.metin2hyx.com
Regat: Jinno
Mulțumiri acordate: 4
Mulțumiri primite: 10
Contact:

Re: [SCRIPT]Metin2 Server Config & FreeBSD Shell

Mesajde AlexTzutzu » 08 Iul 2015, 15:27

Mutat in Altele.
Imagine

the quieter you become,the more you are able to hear


Înapoi la “Altele”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: andu4fun2, D. Anișor, denisa2008, gabiasd, gabrielgta1, MSNbot Media, reactowiec, Vassy și 15 vizitatori