This method is patched, but there are ways to bypass it: http://ksu.seripap.com/ksu.php. White hat rules apply.
<?php
/*
students.kennesaw.edu directory
by dseripap@students.kennesaw.edu & s0up
-----------------------------------
| EDUCATIONAL PURPOSES ONLY
-----------------------------------
This work is licensed under the Creative Commons Attribution-NonCommercial 3.0
Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/.
*/
$alphabet = array ("A","B","C","D","E","F","G","H","I","J","K","L","M",
"N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
foreach($alphabet as $v){
$result = getpage($v);
foreach($result as $k=>$v){
echo($v."\r\n");
}
}
function getpage($letter){
$ret = array();
$page = file_get_contents("http://students.kennesaw.edu/windex/{$letter}.htm");
$tmp = explode('<A HREF="http://students.kennesaw.edu/~', $page);
foreach($tmp as $k=>$v){
if(!strpos($v, 'Student Web Pages')){
$info = explode('">', $v);
$netid = str_replace("~", "", trim($info[0]));
$lname = str_replace(", ", "", trim(strip_tags($info[1])));
$fname = str_replace(" ", "", trim(strip_tags($info[2])));
$email = $netid."@students.kennesaw.edu";
$student = $email." (".$fname.")<br>";
array_push($ret, $student);
}
}
return $ret;
}
?>

