Naujas exploit keiciantis jusu motd.txt

Forumas specialiai skirtas pamokoms kuriant CS 1.6 serverį
Chemodan
O taip. Jis jau surinko 50 žinučių!
Posts: 79
Joined: 2013 Jan 26 19:51
Skype: okmu1231

Re: Naujas exploit keiciantis jusu motd.txt

Post by Chemodan »

Dėkoju sutvarkiau , waldoss :clap:

els
Naujokas apylinkėse
Posts: 3
Joined: 2013 Apr 26 20:13
Skype: els.lt

Re: Naujas exploit keiciantis jusu motd.txt

Post by els »

Galit paaiskinti kur ta FS_Open deti, nes nelabai su juo aisku

a1c13
Naujokas apylinkėse
Posts: 1
Joined: 2013 Aug 21 10:48
Contact:

Re: Naujas exploit keiciantis jusu motd.txt

Post by a1c13 »

Dėkui už pamoką, galų gale baigėsi nesamonės..

DYaGesS
Flooderis arba specialistas
Posts: 875
Joined: 2013 Jan 16 01:01
Skype: usercs.com
Contact:

Re: Naujas exploit keiciantis jusu motd.txt

Post by DYaGesS »

Geriausia pamoka, atsinaujint :asian:
Padėjau? +rep

kibillcat
Ar jis surinks 50 žinučių?
Posts: 47
Joined: 2012 Aug 31 19:17
Skype: saulius304

Re: Naujas exploit keiciantis jusu motd.txt

Post by kibillcat »

Instaliacija lyg ir aiski , FS_Open i orpheu folderi , filewatcher.cfg i amxmodx/configs
Šiaip tai kitokia instaliacija:
FS_Open į /configs/orpheu/functions
filewatcher.cfg į /cstrike

Pataisyk :)

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Naujas exploit keiciantis jusu motd.txt

Post by psychical »

Rusai ir source paviešinę.

Code: Select all

#include <amxmodx>#include <orpheu> #define PLUGIN "File watcher"#define VERSION "0.2"#define AUTHOR "mazdan" #define f "file_watcher.log" new Array:aRule, Array:aFile, Array:aRuleType; public plugin_init(){    register_plugin(PLUGIN, VERSION, AUTHOR);        register_srvcmd("fw_rules", "show_rules");    register_srvcmd("fw_add_file", "file_add", _, "fw_add_file <ACCEPT | BLOCK> <filename>");        aRule = ArrayCreate(1, 32);    aRuleType = ArrayCreate(1, 32);    aFile = ArrayCreate(128, 32);        server_cmd("exec filewatcher.cfg");        OrpheuRegisterHook(OrpheuGetFunction("FS_Open"), "FS_Open", OrpheuHookPre);} public OrpheuHookReturn:FS_Open(test[],b[]){    if(containi(b,"w")!=-1)    {        new rule        strtolower(test)        replace_all(test,strlen(test),"/","\")        new len=strlen(test)        new count=ArraySize(aFile)        for(new i;(i<count && !rule);i++)        {            new file[128]            ArrayGetString(aFile,i,file,127)            switch(ArrayGetCell(aRuleType,i))            {                case 0:if(equal(test,file)) rule=i+1                case 1:if(containi(test,file)==len-strlen(file)) rule=i+1                case 2:if(containi(test,file)==0) rule=i+1                case 3:if(containi(test,file)!=-1) rule=i+1            }        }        if(rule)        {            if(ArrayGetCell(aRule,--rule))            {                log_to_file(f,"Rule [#%d] ACCEPT %s",rule,test)                return OrpheuIgnored;            }            else            {                log_to_file(f,"Rule [#%d] BLOCK %s",rule,test)                return OrpheuSupercede;            }        }        else        {            log_to_file(f,"No rule BLOCK %s",test)            return OrpheuSupercede;        }    }    return OrpheuIgnored;} public file_add(){    new rule[10], file[128];        read_argv(1, rule, 9);    read_argv(2, file, 127);        if(!equal(rule,"ACCEPT") && !equal(rule,"BLOCK"))    {        log_to_file(f,"RULE ADD ERROR use <ACCEPT | BLOCK>");        console_print(0,"RULE ADD ERROR use <ACCEPT | BLOCK>");        return PLUGIN_HANDLED;    }        if(strlen(file) < 1)    {        log_to_file(f,"RULE ADD ERROR ^" ^" to specify filename");        console_print(0,"RULE ADD ERROR ^" ^" to specify filename");        return PLUGIN_HANDLED;    }        new something = ((file[0] == 42) + 2*(file[strlen(file)-1] == 42));        ArrayPushCell(aRule, equal(rule,"ACCEPT"));    ArrayPushCell(aRuleType, something); //Yep 42        replace_all(file,127,"*","");    replace_all(file,127,"/","\");        ArrayPushString(aFile,file);        return PLUGIN_HANDLED;} public show_rules(){    if(!ArraySize(aFile))        console_print(0,"NO RULES FOUND!")    else    {        new count = ArraySize(aFile);        for(new i; i < count; i++)        {            new file[128];            ArrayGetString(aFile, i, file, 127);            console_print(0, "[%d] %s %s%s%s", i, (ArrayGetCell(aRule,i)) ? "ACCEPT":"BLOCK",(ArrayGetCell(aRuleType,i) & 1)?"*":"",file,(ArrayGetCell(aRuleType,i) & 2)?"*":"")        }    }}
-- 2013 Rgs 11 15:16 --



-- 2013 Rgs 11 15:16 --

Code: Select all

((file[0] == 42) + 2*(file[strlen(file)-1] == 42))
Nors asmeniškai man tai čia tag mistach meta ;D

User avatar
Trickas
Flooderis arba specialistas
Posts: 889
Joined: 2012 Jan 25 18:20
Skype: ner.e5

Re: Naujas exploit keiciantis jusu motd.txt

Post by Trickas »

Čia gi tiesiog dekompiliuotas amxx
- Skype: ner.e5
- Steam: Tr1ckas


KIRIL
Jau po truputį tampa savu
Posts: 136
Joined: 2013 Oct 06 12:18
Skype: kig.as
Contact:

Re: Naujas exploit keiciantis jusu motd.txt

Post by KIRIL »

Galit gal su šituo kas padėt? Prisijungi į serverį ir po 5 sec. redirectina.

"Invalid motdfile name (resource/GameMenu.res)
Invalid motdfile name (AUTOEXEC.CFG)
Invalid motdfile name (VALVE.RC)
Invalid motdfile name (USERCONFIG.CFG)
Invalid motdfile name (JOYSTICK.CFG)
Slowhacking rejected for 'resource/GameMenu.res'. Valid motd file format: *motd*.[htm|txt|html]
Slowhacking rejected for 'AUTOEXEC.CFG'. Valid motd file format: *motd*.[htm|txt|html]
Slowhacking rejected for 'VALVE.RC'. Valid motd file format: *motd*.[htm|txt|html]
Slowhacking rejected for 'USERCONFIG.CFG'. Valid motd file format: *motd*.[htm|txt|html]
Slowhacking rejected for 'JOYSTICK.CFG'. Valid motd file format: *motd*.[htm|txt|html]
Connecting to 77.241.194.54:27018...
Trying p48/auth3/revEmu...
Connection accepted by 77.241.194.54:27018"

Buvau radęs configs/ sql.ini failą kuriame buvo connect 77.241.194.54:27018 t.t. ištryniau ir nieko, vistiek meta.

-- 2013 Spa 24 07:43 --

Na ždž supratau tiek, kad atsiranda /configs/ aplankale sql.ini kur yra surašyti redirectai ir config-plugins.ini kur įrašytas valve_admin.amxx ar kažkas panašaus - kas irgi redirectina, tik kaip sustabdyti jų atsiradimus? Spėju 444 nepadės.
drabuziai moterims - rūbai moterims internetu

FrankJScott
Gana aktyvus vartotojas
Posts: 324
Joined: 2024 Apr 04 22:28
Skype: asfasf

New Product Guide

Post by FrankJScott »

Please try Google before asking about Awesome Product Site 163ddbf

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests