Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases > Coding Snippets
You last visited: Today at 04:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Kleiner PHP Port Scanner

Discussion on Kleiner PHP Port Scanner within the Coding Snippets forum part of the Coding Releases category.

Reply
 
Old   #1
 
elite*gold: 241
Join Date: Dec 2011
Posts: 1,803
Received Thanks: 1,301
Kleiner PHP Port Scanner

Heyho hatte irgendwann mal den hier geschrieben.
Vielleicht braucht den jemand

Code:
    <?php
    set_time_limit(0);
    error_reporting(E_ALL);
    ob_start();
     
    $oHost = 'www.domain.com';
    $host = gethostbyname($oHost);
     
    // Hier kannst du Ports hinzufuegen, oder du benutzt $ports = range(1,10000); fuer 10.000 Ports
    $ports = array('FTP' => 21,
    'http' => 80,
    'cPanel http' => 2082,
    'cPanel https' => 2095,
    'directadmin http' =>2222,
    'directadmin https' => 2223,
    'MYSQL'=> 3306,
    'MSSQL' => 1433,
    'SSH' => 22,
    'SMTP' => 25,
    'DNS' => 53,
    'POP3' => 110,
    'HTTPS' => 443,
    'SMTP(2)' => 587);
     
    if(isset($host) && strlen($host) >= 1)
    {
    $handles = array();
    echo '<strong>'.$host.' - '.$oHost.'</strong><br />';
     
    $i = 0;
    foreach($ports as $key => $port)
    {
    $ch = array('handle' => curl_init(), 'port' => $port, 'name' => $key);
     
    curl_setopt($ch['handle'], CURLOPT_HEADER, 0);
    curl_setopt($ch['handle'], CURLOPT_NOBODY, true);
    curl_setopt($ch['handle'], CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch['handle'], CURLOPT_URL, 'http://'.$host);
    curl_setopt($ch['handle'], CURLOPT_PORT, $port);
     
    curl_setopt($ch['handle'], CURLOPT_REFERER, 'http://'.$oHost);
    curl_setopt($ch['handle'], CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch['handle'], CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9');
    curl_setopt($ch['handle'], CURLOPT_TIMEOUT, 3);
    curl_setopt($ch['handle'], CURLOPT_CONNECTTIMEOUT, 3);
     
    curl_exec($ch['handle']);
    if(curl_getinfo($ch['handle'],CURLINFO_REQUEST_SIZE) > 0)
    {
    echo "<span style=\"color:green\">Port: " . $ch['port'] . " is open (".$ch['name'].")</span>";
    }
    else
    {
    echo "<span style=\"color:red\">Port: " . $ch['port'] . " is closed (".$ch['name'].")</span>";
    }
    echo '<br />';
    curl_close($ch['handle']);
     
    ob_end_flush();
    ob_flush();
    flush();
    ob_start();
    }
    }
€clips3 is offline  
Thanks
3 Users
Old 02/10/2014, 14:50   #2
 
xXKonaXx's Avatar
 
elite*gold: 20
Join Date: Nov 2010
Posts: 552
Received Thanks: 350
xXKonaXx is offline  
Old 02/28/2014, 23:22   #3


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Arrow Coding Releases -> Coding Snippets

#moved
MrSm!th is offline  
Old 03/13/2014, 15:53   #4
 
elite*gold: 0
Join Date: Sep 2013
Posts: 211
Received Thanks: 36
Werde es gleich mal testen, auf alle Fälle schön
Hast dir dein Thank verdient :P
iOSsec is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Port Scanner
11/08/2010 - Metin2 Private Server - 3 Replies
Wollte mal wissen ob man mit einem UDP scann die richtigen Ports scannen kann auch wenn sie jetzt geändert werden würden.Und wollte mal wissen ob dieses Programm in meinem Fall das richtige währe. Habe nicht vor irgend einen Server zu downen oder sonsiges,ich will mich nur Informieren darüber sonst nichts,und es ist mir klar das keiner hier sowas unterstützen aber ich hab wirklich nichts böses damit vor ich will mich wiegesagt nur informieren!! NetworkActiv Port Scanner
[Release] Port Scanner v1.0 FREE
08/22/2010 - Coding Releases - 13 Replies
Hallo Elitepvpers Heute release ich meinen Port Scanner v1.0 FREE. Infos zur Premium Version gibts unten. Dieses Tool Scannt von der eingegebenen IP die Ausgewählten Ports. Folgende Features sind euch in der FREE Version sicher : -Auswählen der IP -Auswählen von welchem Port -Auswählen bis zu welchem Port -Schönes Design -Farbig, wenn Port offen ist
[Release] Portable Port Scanner Pro
09/04/2009 - CO2 PServer Guides & Releases - 39 Replies
Portable Port Scanner v1.0 Version: v1.5.2 - Real Version Created by: Basser(Smythe) and Michael(Zion) Virus Scan: Scan result for V1.0. Scan result for V1.5. For the entire result, check my post. Features: v1.5 - Fixed the crashing!
[RELEASE]Port Scanner by MarcoPolo
07/01/2009 - Metin2 Private Server - 25 Replies
Ich hab mir mal vorgenommen, euch ein tool zu proggen, was euch das portscannen ermöglicht Ich werde hier weder URL's noch Port's posten oder in mein Programm einbetten die müsst ihr schon selber rausfinden Installation : Downloadet euch die Datei im anhang ( Port Scanner by MarcoPolo.rar ) Entpackt das Archiv in irgendein verzeichniss startet die Check IP & Port by MarcoPolo.exe



All times are GMT +1. The time now is 04:30.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.