PHP Classes
Icontem

File: index.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tomasz Malewski  >  adv_net  >  index.php  
File: index.php
Role: Example script
Content type: text/plain
Description: sample call
Class: adv_net
Analyze the local network with nmap
 

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);

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products