Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   HELP in analyzing an original script (http://www.go4expert.com/forums/help-analyzing-original-script-t19514/)

webster 22Sep2009 19:02

HELP in analyzing an original script
 
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 22Sep2009 19:29

Re: HELP in analyzing an original script
 
Looks like JavaScript, but I need some more time to analyze it completely.

webster 22Sep2009 21:50

Re: HELP in analyzing an original script
 
i agree - it looks like some variation of javascript...

thanks


All times are GMT +5.5. The time now is 19:59.