HELP in analyzing an original script

webster's Avatar, Join Date: Sep 2009
Newbie Member
hi ya all,

i am looking for analyzing this folowing script, it is not a familiar language, but a one that developed originally in a software development firm:

does anybody understand what the following script doing?

Code:
function walla.text(a,b) {
    local cntr;
    local x,y;
    local c;
    local d;             
                    
    for(cntr=0;cntr<b.length;cntr++) {
        x=0; y=0; c='`;
        
        while((x=a.indexOf(b[cntr].f,y))>=0) {

            d=b[cntr].r;
            if (x==0) c=c|b[cntr].b|d|b[cntr].a;
                            else c=c|a.substring(y,x)|b[cntr].b|d|b[cntr].a;
            y=x+b[cntr].f.length;
            }
        a=c|a.substring(y,a.length);
        }
    return(a);
}

                                                
function walla.text.rule(rules,f,b,r,a) {
    rules.length=rules.length+0;
    rules[rules.length].f=f;
    rules[rules.length].b=b;
    rules[rules.length].r=r;
    rules[rules.length].a=a;
    rules.length++;
}
any help would be appreciated.

thanks
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Looks like JavaScript, but I need some more time to analyze it completely.
webster's Avatar, Join Date: Sep 2009
Newbie Member
i agree - it looks like some variation of javascript...

thanks