Home > Backend Development > PHP Tutorial > Folder sniffer Port sniffer made by Php - you can specify the website and port

Folder sniffer Port sniffer made by Php - you can specify the website and port

WBOY
Release: 2016-07-29 08:34:16
Original
1704 people have browsed it

  //Php做的端口嗅探器--可以指定网站和端口
//并返回嗅探结果
    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 .= fread($fp, 1000);
    }
    fclose($fp);
    }
    return $data;
    }
    ?>
    


    
    Site: (ie: www.wackowoh.com)

    Port:

    
    

        if($action == "query") {
    $data = http_request($server, $port);
    echo "Connected To $server on port $port.

";
    echo "Output:

$data

";
    }
    ?> 

以上就介绍了文件夹嗅探器 Php做的端口嗅探器--可以指定网站和端口,包括了文件夹嗅探器方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template