mIRC Homepage
Posted By: xrn0id looking for a word generator? up to 8 chrs - 25/02/03 12:37 PM
i need a script tha will generate a list like the folllowing:
a
b
c
d
e
f
g
etc..
aa
ab
ac
ba
bb
bc
etc...

does anybody know how i can do this?
Why do you need that?
He seems too honest to be making a password cracker. Maybe it's a guessing game he's making. grin

On a serious note I can't see how it's possible. I thought of $rand(a,z) for a sec but that would hardly ever give meaningful words.
/help /while
/help variables
/help Text and Number Identifiers

with those you should be able to do the script...
Or you could read trough the forums to find a script which does the job with little modification...
im not makign a pass cracker frown just a word dic.

ps. Stupid hostmysig.com
well, you can just call a randome chr, for example, if i wanted a ten letter group, i could do:

alias make.word {
var %a = $iif($1,$ifmatch,5), %b
;If there Isnt A $1 Param, We Default To 5
while (%a) {
%b = %b $+ $chr($r(97,122))
dec %a
}
return %b
}


then just sent what you want to the alias:

//echo -a $make.word(15) which will return a 15 letter word,
or
//echo -a $make.word with no $1 param, which in this case, will return a 5 letter word.... some example with $make.word(10)


xgeaobfhzn
esnkcipuav
mrrvrxmcst
fshnrrtcix
ywpufbfsbt
rbhlsygkox
ornqhrgfne
fsgmljcmqp
hisimprntd
gssyfxyrpt
jxwhqeomdw
rvoggwuevo
lgtrkoniax
akjxvptitm
Posted By: Faile Re: looking for a word generator? up to 8 chrs - 25/02/03 06:13 PM
I did one of those once, and gave up again, the code works but it's SLOW AS HELL - trust me, mIRC breaks upon running it. Maybe you can optimize it a bit but not anywhere near enough what's necessary to make it all work.

If you cant find any good dictionary creators (assembly prefeered, blindingly fast) drop me a msg and I'll mail you one that's very good.

dic {
remove dic.txt

var %1 = a
var %2 = a
var %3 = a
var %4 = a
var %5 = a
var %6 = a
var %7 = a
var %8 = a

while ($asc(%1) <= 122) {
while ($asc(%2) <= 122) {
while ($asc(%3) <= 122) {
while ($asc(%4) <= 122) {
while ($asc(%5) <= 122) {
while ($asc(%6) <= 122) {
while ($asc(%7) <= 122) {
while ($asc(%8) <= 122) {
write dic.txt %1 $+ %2 $+ %3 $+ %4 $+ %5 $+ %6 $+ %7 $+ %8
set %8 $chr($calc($asc(%8) + 1))
}
var %8 = a
set %7 $chr($calc($asc(%7) + 1))
}
var %7 = a
set %6 $chr($calc($asc(%6) + 1))
}
var %6 = a
set %5 $chr($calc($asc(%5) + 1))
}
var %5 = a
set %4 $chr($calc($asc(%4) + 1))
}
var %4 = a
set %3 $chr($calc($asc(%3) + 1))
}
var %3 = a
set %2 $chr($calc($asc(%2) + 1))
}
var %2 = a
set %1 $chr($calc($asc(%1) + 1))
}
}
whats your email?
© mIRC Discussion Forums