pss.php3
c231c024dc475fb922e27c86d44753146e61ab196e2dc58d111ec2607e7b5c3e
<html>
<head>
<title>Shanners Packetstorm WhatsNew20 Grabber: http://www.hack-net.com/pss.php3</title>
<!--
This Simple little PHP3 Script will parse the whatsnew20.txt file and present the information
in a nice fashion. Please make sure that you have set up a crontab to GRAB the text file,
using the following script: (edit it for your own use)
#MAKE SURE YOU SET UP A CRONTAB TO EXECUTE THE SCRIPT
#do something like this:
*/30 * * * * /home/user/news.sh
then once you have done this, use the script below to grab the packetstorm whatsnew20.txt
#!/bin/sh
#
# This script has been used from the PPS site, (ripped from technotronic)
#
/usr/local/bin/wget http://packetstorm.securify.com/whatsnew20.txt
if [ ! -s whatsnew20.txt]
then
echo Error: Couldn't find whatsnew20.txt
exit 1
fi
mv /full/path/to/whatsnew20.txt /full/path/to/public_html/
chmod a+r /home/user/public_html/whatsnew20.txt
echo Copied The Datafile for PSS
exit 0
HNC Network: http://www.hack-net.com
All rights reserved
-->
<body bgcolor="#ffffff" text="#000000">
<?PHP
//location of whatsnew20.txt file
$packetstorm = file('/opt2/home3/hack-net/public_html/cgibin/news/packetstorm_updates.txt');
$numlines = count($packetstorm);
$numpss = ($numlines - 4)/6;
$i = 0;
$filename = 0;
$download = 1;
$time = 2;
$description = 3;
while($numpss > $i)
{
//print table
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"50%\"><tr><td><font size=\"1\" FACE=\"verdana, helvetica\">\n";
echo "<b>$packetstorm[$time]:</B></font> <font size=\"1\" face=\"verdana, helvetica\" color=\"red\"><B>$packetstorm[$filename]</b> </font><font size=\"1\" face=\"verdana, helvetica\" color=\"#000000\">(<a href=\"$packetstorm[$download]\"><B>Download this file</b></a>)</font></td></tr><BR>\n";
echo "<tr><td valign=\"top\"><font size=\"1\" face=\"verdana, helvetica\"><B>Descritption: </b>$packetstorm[$description]<BR>\n";
echo "</td></tr></table>";
// scan the next section
$filename = $filename + 6;
$download = $download + 6;
$time = $time + 6;
$description = $description + 6;
$i++;
}
?>
</body>
</html>