Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ben  >  Portscan  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index.php
Class: Portscan
Check whether given TCP ports are opened
Author: By
Last change:
Date: 2006-10-17 07:33
Size: 1,005 bytes
 

Contents

Class file image Download
<?php
    
/*
    Date: 9-05-2006 15:57
    Author: B.Heesen (b.heesen@dbds.nl)
    Version: 0.2a
    © Cpyright 2006 De Bron Digital Solutions (http://www.dbds.nl)
    */


    //no chaching of pages
  
header("Pragma: no-cache");
  
error_reporting(0);
  
  include(
"lang.php");
  
//fetching some variables through the webserver
  
$r_addr  $_SERVER['REMOTE_ADDR'];
  
$r_host  gethostbyaddr($r_addr);
  
$r_port  $_SERVER['REMOTE_PORT'];
  
$r_lang  $_SERVER['HTTP_ACCEPT_LANGUAGE'];
  
$r_agent $_SERVER['HTTP_USER_AGENT'];

?>
<html>
  <head>
    <title>
        <? echo PAGE_TITLE?>
    </title>
      <link rel="stylesheet" type="text/css" href="css/style.css">
  </head>
<body>
<div class="float_r">
    <form method="post" action="index.php">
    <input type="submit" name="simple" value="<? echo SIMPLE_SCAN?>">
    <input type="submit" name="trojan" value="<? echo TROJAN_SCAN?>">
    </form>

    <?
        
include("scan.php");
        if (
$_POST['simple']){
            
Scan();
        }
        if (
$_POST['trojan']){
            
trojanScan();
        }
    
?>
</div>
</body>
</html>