Password Generator

By SyntaxIRC on Jan 03, 2007

Firstly, create 2 new txt files in your mIRC Directory named 'numa' & 'alt'



For the txt file 'alt' you can add any alt characters that you think would be useful in a password and for the txt file 'numa' add all of the shift number characters.


Once the mIRC script is in your remotes, type /gen.pw


It'll open a custom window and generate a random, uncrackable password. This is my first window script so please don't be harsh ;)

alias gen.pw {  
  if ($window(PwdGenerator) == $null) {
    window -a @PwdGenerator -1 -1 -1 -1
    aline @PwdGenerator 3Password generator created by Syntax of irc.bahajainc.com
    aline @PwdGenerator -
  }
  set %generated.pw $rand(a,z) $+ $rand(0,9) $+ $read(numa.txt) $+ $rand(0,9) $+ $rand(a,z) $+ $read(alt.txt) $+ $rand(0,24) $+ $rand(g,z) $+ $rand(g,z) $+ $read(numa.txt) $+ $rand(0,9) $+ $rand(a,g) $+ $rand(0,4) $+ $read(alt.txt)
  aline @PwdGenerator 4Generating password ..  
  timer 1 3 aline @PwdGenerator %generated.pw
  timer 1 3 unset %generated.pw
}

Comments

Sign in to comment.
Imrac   -  Apr 09, 2008

I modified Jonesy44\'s for my own use, if you do not mind =)

alias genpass {
  var %c = 1, %rpass
  while (%c <= 8) {
    if ($rand(1,2) = 1) { %rpass = %rpass $+ $rand(a,f) }
    else { %rpass = %rpass $+ $rand(0,9) }
    inc %c 1
  }
  return %rpass
}
 Respond  
guest598594   -  Apr 09, 2008

Or you could just grab some digits of $ticks for an all-number password ;)

 Respond  
Jonesy44   -  Apr 09, 2008

cud use this ..

alias newpass {
  var %len = $rand(10,20), %c = 1, %g.pass = $null
  while (%c <= %len) {
    var %ln = $rand(1,2)
    if (%ln = 1) {
      var %g.pass = %g.pass $+ $rand(a,z)
    }
    else {
      var %g.pass = %g.pass $+ $rand(0,9)
    }
    inc %c 1
  }
  echo -a New pass ( $+ %len $+ ) : %g.pass
}
 Respond  
atom_man   -  Apr 09, 2008

lol. it removed my escape\'s..

This should solve it.


alias pass_ {
  if (!$2) { tokenize 32 $1 10 }
  var %b = 0,%a
  if (A-Z isincs $1) { %b = $regsubex($str(1,26),/(1)/g,$chr($calc(64 + \\\\n))) }
  if (a-z isincs $1) { %b = %b $+ $regsubex($str(1,26),/(1)/g,$chr($calc(96 + \\\\n))) }
  if (0-9 isin $1) { %b = %b $+ $regsubex($str(1,10),/(1)/g,$chr($calc(47 + \\\\n))) }
  if (%b = 0) { %b = $1 }
  %a = $regsubex(%b,/(.)/g,$regml($r(1,$regml(0))))
  noop $regex(%a,/(?=(.{ $+ $2 $+ }))/g)
  return $regml($r(1,$regml(0)))
}
 Respond  
atom_man   -  Apr 09, 2008

\"uncrackable password\"?? it isnt any information hidden by it. so how can u say its uncrackable. As for the script, this aint very good, like russelreal said the pattern of the script is known. You cannot specify how many chars the pw should be, nor can you use it in a script since there\'s no return.

Usage: $pass_(A-Z|a-z|0-9,len)
len is option. one thing to notice, the lenght of $1- must be longer then len.

alias pass_ {
  if (!$2) { tokenize 32 $1 10 }
  var %b = 0,%a
  if (A-Z isincs $1) { %b = $regsubex($str(1,26),/(1)/g,$chr($calc(64 + \\n))) }
  if (a-z isincs $1) { %b = %b $+ $regsubex($str(1,26),/(1)/g,$chr($calc(96 + \\n))) }
  if (0-9 isin $1) { %b = %b $+ $regsubex($str(1,10),/(1)/g,$chr($calc(47 + \\n))) }
  if (%b = 0) { %b = $$1 }
  %a = $regsubex(%b,/(.)/g,$regml($r(1,$regml(0))))
  noop $regex(%a,/(?=(.{ $+ $2 $+ }))/g)
  return $regml($r(1,$regml(0)))
}
 Respond  
RussellReal   -  Jan 13, 2007

heh, I\'d say thats rediculous, because now the pattern is pretty much known,

$regex(%pass,/[a-z]\d.+\d\D.+\d[g-z].+\d[a-g]\d.+/Si) :x

But other then the never changing pattern dats a cool script :D

You could actually pass through a random number a random amount of times the amount of times would be the length of the outcome string, while each random number will represent either numeric or alphabetic, which would ouput a COMPLETELY random password thus being much more hard to steal

 Respond  
Caseidon   -  Jan 05, 2007

Hmm, if you want those timers make the command /.timer so you won\'t see the
\'Timer [num] activated.\'

 Respond  
sean   -  Jan 04, 2007

//say $md5(uncrack me)

 Respond  
RoninWarrior   -  Jan 03, 2007

I will have to still disagree syntaxirc nothing is safe when it consists of a computer or its programs.

 Respond  
SyntaxIRC   -  Jan 03, 2007

Thanks, and RoninWarrior, mixed number/alpha with alt codes ARE uncrackable unless you use some sort of super password catcher o_O

 Respond  
Setever   -  Jan 03, 2007

I actually like the timer, Caseidon; it gives it a nice feel.

Love the window, and enjoy the script in general. Nice job, SyntaxIRC.

 Respond  
Caseidon   -  Jan 03, 2007

What\'s with the timers, you dont have to add that?

 Respond  
RoninWarrior   -  Jan 03, 2007

Syntaxirc not bad works pretty good.I did how ever notice the timer events in the status window you could use .timer to make them silent so it wont fill up the status window and also on your first @window, It is a @window nothiong fancy needs to be done with it.Other then that not bad.

 Respond  
RoninWarrior   -  Jan 03, 2007

QUOTE \"uncrackable password\" nothing that i know of is uncrackable!Nothing!

 Respond  
SyntaxIRC   -  Jan 03, 2007

Yeah, but how could you do that with mIRC?

 Respond  
Marshtomp   -  Jan 03, 2007

\"expertise\" in computers? its not hard to add a Zipped password file, just make one tools and add password.

 Respond  
SyntaxIRC   -  Jan 03, 2007

ZabuzaMomochi, thanks, but placing it in a compressed password file would need expertise in computer scripting, not mIRC.

 Respond  
ZabuzaMomochi   -  Jan 03, 2007

Very cool, and a great idea! Maybe also saving the generated password in a password-locked file,(but for the file the person chooses a password they can remember, of course) But still, great job!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.