Code: Select all
global dim search.s(52000)
base.s = "testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest"
for t = 1 to 52000
if search.s(t-1) = base.s
break
debug "found!"
endif
next t
Code: Select all
global dim search.s(52000)
base.s = "testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttest"
for t = 1 to 52000
if search.s(t-1) = base.s
break
debug "found!"
endif
next t
Code: Select all
Exploit.WMF.A=26060f001600ffffffff0000470000008f
Exploit.WMF.B=b804c0b807c1dab8858098d50eb854
Exploit.WMF.Gen-1=010009000003521f0000???????
Exploit.WMF.Gen-2=010009000003521f0000???????
Worm.Mytob.Gen-4=28d0010035d00100000000000
Trojan.Downloader.Small-525=7280958a6b877e83
Exploit.DCOM.Gen=05000b0310000000480000007f
The examples above assume that the large string array you wish to search is ordered in some way. For example the data to be searched may be in alphabetic order. You can then do a binary search of 2^n array entries using only n tests.Inf0Byt3 wrote:I can't find a fast way to compare one element (memory location) with another 52000 elements. I am currently using an array to hold the 52000 elements but it's too damn slow. Any ideas please?