Fourteen Years of Service
Posts: 721
Threads: 49
RE: Alternative StringLen 09-16-2012, 02:00 AM
#2
What's the point of this function, besides being much slower and using more memory than simply using the library function to determine the length of the string?
If you're going to make your own function for something that's already provided by the standard libraries of the language, it's when you want to have additional or different functionality or making it more effective if you can.
This seems to do exactly the same, but in a dumb way, that's much slower and does a lot of unnecessary operations.
Also, what's the point of variable $Result, why can't you just return $i?
A very good practice is to write efficient code, don't do unnecessary things, that just results in bad code. Sit back and think "Is this really necessary or even useful? Can it be done simpler?".
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.
•
Fourteen Years of Service
Posts: 43
Threads: 16
RE: Alternative StringLen 09-16-2012, 02:08 AM
#3
Some Avs detect StringLen ,its for replacement , thats the point , thanks for comment
•
Fourteen Years of Service
Posts: 721
Threads: 49
RE: Alternative StringLen 09-16-2012, 02:28 AM
#4
Which AVS? Why do they detect it? StringLen doesn't do anything bad by itself, so it's extremely unlikely that any detection would be focused on StringLen itself.
Also you could do it still much simpler, right now it performs the StringLeft operation on the same string many times, so the longer the string is, the longer it will take, I would say that the time requirements grow about quadratically, give or take, which is really bad.
If you really need to do it differently, I suggest something with more linear time requirements.
Maybe if you need to prevent detection of some operation, you might try to change the code of the operation itself, as StringLen by itself can't raise any suspicion. Also adding more information to the topic might be nice, rather than just putting the code snippet there.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.
•
Fourteen Years of Service
Posts: 43
Threads: 16
RE: Alternative StringLen 09-16-2012, 02:38 AM
#5
yes , add more information to the topic its good , i will make for next Time, and you Rigth about StringLen Function , but only if you use StringLen Alone on code , but when you built a crypter , and have to use other functions like a Split , and Stringlen in the same code , some Avs like Kaspersky , Nod32 , detect this , understand the point ? hope this , sorry for ugli english , i'm from Brasil and dont speek(and write) very well you see xD
Regards
•
Fourteen Years of Service
Posts: 2,367
Threads: 170
RE: Alternative StringLen 09-18-2012, 09:06 AM
#6
Well I was going to say the exact same thing as Frooxious, Why would someone use a alternative to StringLen and why would AV detect a harmless stringlen for no reason? So your telling me a blank autoit3 program with just StringLen in it would get detected? o.O
Pierce the life fibers with your drill.
•
Fourteen Years of Service
Posts: 2,367
Threads: 170
RE: Alternative StringLen 09-18-2012, 11:27 AM
#8
Since when are people making Au3 crypters? o_O
Pierce the life fibers with your drill.
•
Fourteen Years of Service
Posts: 43
Threads: 16
RE: Alternative StringLen 09-18-2012, 12:17 PM
#9
yeah dude , a some years ago , will Upload a SRC when I return Home , stay on work now
Regards
•