Created
February 15, 2010 10:14
-
-
Save jiphex/304538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
em { | |
font-style: normal; | |
color: #33aa33; | |
} | |
span.pw:hover { | |
background-color: #000000; | |
color: white; | |
} | |
body { | |
margin-top: 50px; | |
font-family: monaco,monospace; | |
font-size: 10pt; | |
text-align: center; | |
background-color: #fff; | |
color: #ababab; | |
} | |
</style> | |
</head> | |
<body > | |
<? | |
$numpws = 200; | |
$passwords = split("\n", `/usr/bin/apg -n $numpws -M CNL -a 0 -m 8 -x 8 -E 0O`); | |
for($i = 0; $i < $numpws/10; $i++) { | |
for($j = 0; $j < 10; $j++) { | |
$pwn = ($i*10)+$j; | |
if(($j%3) == 0 && ($i%4) <2) { | |
echo "<span class='pw'><em>".$passwords[$pwn]."</em></span>\t"; | |
} else { | |
echo "<span class='pw'>".$passwords[$pwn]."</span>\t"; | |
} | |
} | |
echo "<br/>"; | |
} | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment