PHP-made port sniffer--you can specify the website and port
and return the sniff results.
function Http_request ($server, $port) {
$data = "";
$query = "head/http/1.0";
$fp = Fsockopen ($server, $port);
if ($fp) {
Fputs ($FP, $query. " Rnn ");
while (!feof ($fp)) {
$data. =
PHP-made port sniffer--you can specify the website and port
and return the sniff results.
function Http_request ($server, $port) {
$data = "";
$query = "head/http/1.0";
$fp = Fsockopen ($server, $port);
if ($fp) {
Fputs ($FP, $query. " Rnn ");
while (!feof ($fp)) {
$data. =
Lt ;? Php port sniffer-you can specify the website and port and return the sniffing result functionhttp_request ($ server, $ port) {$ data quot; $ query quot; HEADHTTP1.0 quot; $ fpfsockopen ($ serve
// Php port sniffer-you ca
// PHP port sniffer-you can specify the website and Port
// Returns the sniffing result
Function http_request ($ server, $ port ){
$ DATA = "";
$ Query = "head/HTTP/1.0 ";
$ Fp = fsockopen ($ server, $ port );
If ($ FP ){
Fputs ($ FP, $ query. "rnn ");
While (! Feof ($ FP ))
Introduction: this is a simple PHP online port scanner details page, introduced and PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 323731 'rolling = 'no'>
Author: Angel
Preface
PHP is a powerful web development language. High development efficiency, simple syntax, tailored for dynamic we
more than enough.
Port scanning is our most common method of stepping on. It is troublesome to download a dedicated scanner in a place like an Internet cafe. if you use a port scan provided by an existing Web service. That really saves a lot of trouble.
Let's take a look at the source code of the PHP port scanner I wrote:
$ Youip = $ HTTP_SERVER_VARS ["REMOTE
method of stepping on. It is troublesome to download a dedicated scanner in a place like an Internet cafe. if you use a port scan provided by an existing Web service. That really saves a lot of trouble.Let's take a look at the source code of the PHP port scanner I wrote:
$ Youip = $ HTTP_SERVER_VARS ["REMOTE_ADDR"]; // Obtain the local IP address$ Remoteip = $ HTTP_POST_VARS [remoteip]; // obtain the IP
"
";
";
The IP you scanned: ". $remoteip."";
";
";echo "echo "echo "echo "echo "echo "echo "//Output display tableFor ($i =0; $i
{ $fp = @fsockopen ($remoteip, $port [$i], $errno, $errstr, 1); if (! $fp) { echo " } else {echo "} }//Use the Fsockopen function to connect the relevant port of the remote host with the For statement, and output
Dahne Training: PHP online port Scanner[Source] Dahne [edit] Dahne [Time]2012-12-21This scanner is very simple. is to use an array to define the port related information, the principle is to use the Fsockopen function connection, if you can connect, it means that the port is open, otherwise it is closedPHP is a powerfu
Run the following command to view the port usage in Centos, an online thread for port Detection: lsof-I tcp: 80 list all ports netstat-ntlp view all connections can be netstat-an query port 80 online connection thread netstat-n | grep tcp | grep 80 | wc-l query apache connec
Port Scan | Online Preface
PHP is a powerful web development language. The development of high efficiency, simple syntax, for dynamic Web sites tailored to strengthen the object-oriented (to C + +, and Java to build a point), but a single thread (this is the Achilles ' heel, it is said that PHP is written with c\c++.) ), can also use C, C + +, Java development of the middle tier, call COM, server maintenan
In the previous studies on the BCM version, the WAN port was extended but could not be online due to the lack of in-depth research. Due to the time relationship, the research was not continued.
When I first came back yesterday, I began to study this item and successfully expanded bcm to N Wan. I cut a picture and set one of the four or more ports to online.
In
existing Web service. That really saves a lot of trouble.
Let's take a look at the source code of the PHP port scanner I wrote:
// Codz by angel
// Welcome to My Website
// Http://www.4ngel.net
$ Youip = $ HTTP_SERVER_VARS ['remote _ ADDR ']; // Obtain the local IP address
$ Remoteip = $ HTTP_POST_VARS ['remoteip']; // obtain the IP address submitted in the form
?>
Security Angel-online
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.