Skip to content

Instantly share code, notes, and snippets.

@jiphex
Created February 15, 2010 10:14
Show Gist options
  • Save jiphex/304538 to your computer and use it in GitHub Desktop.
Save jiphex/304538 to your computer and use it in GitHub Desktop.
<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