PHP Classes

File: index.php

Recommend this page to a friend!
  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: 15 years ago
Size: 671 bytes


Class file image Download

include 'adv_net.php';

// Sample for ping
$query=new adv_net;
$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->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);