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 Tomasz Malewski  >  adv_net  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: sample call
Class: adv_net
Analyze the local network with nmap
Author: By
Last change:
Date: 6 years ago
Size: 671 bytes
 

Contents

Class file image Download
<?

include 'adv_net.php';

// Sample for ping
$query=new adv_net;
$query->ip='127.0.0.1';
$query->cmd_debug='0'; // fill "1" to get debug data

$query->ping(); // Sample for IP ping

$query->ip2mac(); // Sample for IP to MAC converter

$query->rdns(); // rDNS - IP to name resolve

//$query->ip_hostname='google.com';
//$query->dns(); // DNS - hostname to IP resolve, require ip_hostname

//$query->lan_discovery(24); // discovery hosts in network, use 32 for one host, 24 for C subnet

$query->cmd_extra=" -n "; // disable DNS during scan port - faster
$query->port_discovery(); // scan ip for open ports

print_r ($query);