Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP で単純なポート スキャナーを作成しており、Nmap がサービスを検出する方法と同様に、接続しているサービスの名前を要求する方法を理解しようとしています。
私は fsockopen() を使用してソケットを開いているのでfwrite($socket, "WHAT SERVICE AM I COMMUNICATING WITH?")、質問をしてからfgets($socket).
fwrite($socket, "WHAT SERVICE AM I COMMUNICATING WITH?")
fgets($socket)
それが何であるかをサービスに尋ねるにはどうすればよいですか?