Smap is a replica of Nmap which uses shodan.io's free API for port scanning. It takes same command line arguments…