Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   Help with Wordlist Generation. (http://www.go4expert.com/forums/help-wordlist-generation-t26189/)

Sketch- 1Jul2011 11:38

Help with Wordlist Generation.
 
Ok well there's a system I'm doing a pentest on and I need to generate a passlist.

I managed to get 3 passwords by social engineering and I've figured out they all have the same combination.

Code:

6 Capital or Lowercase letters and then 2 numbers
An example password is

Code:

AghtTd65
There is an account on there which I need access to.

I've tried writing this script to generate a wordlist.
PHP Code:

#!/usr/bin/perl
my $p1 00;
my $p2 "aA";
open(LIST, '>>list.txt');
while(
$p1 <= 99) {
while(
length($p2) <= 6) {
print LIST 
$p2.$p1."\n";
print 
"$p2 done :D\n";
$p2++;
}
$p1++;
}
close(LIST); 

But it only generates passes like.

Code:

esjtrK0
So only the last letter is capital.
Also it seems to be doing 1 character combinations even though I went 00.
Maybe I should have enclosed it with quotes.


Any help appreciated :phone:


All times are GMT +5.5. The time now is 03:54.