PHP: Build Your Own Mini Port Scanner

by Bhavesh Naik
Oct. 7, 2017 0 comments INFOSEC Institute Apps & Hardening

We all have used a port scanner some day or the other while performing reconnaissance and information gathering regarding a target host. We listed out various port scanners and decided which one to use on the basis of set of what varied features they provided. Every hacker has his or her own favorite port scanner; we have our favorites like Nmap, A-map, Angry Port Scanner, Yet Another Port Scanner, etc… But have you ever thought of building a scanner of your own? Today, we will build our own basic port scanner in PHP. Yes you heard it right, PHP. By this time you must be wondering why the article is focusing on creating a port scanner in a scripting language like PHP and not in any other language like Java?