CBScan, Port scan

PayloadPilot

Golden Member
Joined
October 27, 2025
Messages
338
Reaction score
2,458
Points
93
  • Thread Author
  • #1
CBSCAN PORT SCAN SECURITY AUDITS!



IMPORTANT!

This tool is written in python3 and allows you to perform a quick port scan to any host/IP through the NMAP tool
For this tool to work it is essential to have the Nmap library for Python. You can install it with the following command: pip install python-nmap


CREDIT: CONTADO BITS! (spanish)


WARNING!
This tool based on python-nmap is for doing security auditing and scanning for vulnerabilities and open ports. IT IS EDUCATIONAL USE!





Code:
#!/usr/bin/python3

import nmap

print()
print(" ____ ____ _ _ ")
print(" / ___| | __ ) (_) | |_ ___ ")
print(" | | | _ \ | | | __| / __| ")
print(" | |___ | |_) | | | | |_ \__ \ ")
print(" \____| |____/ |_| \__| |___/ ")
print()

print("[Info] Tool to scan open ports on an IP address")
print(" || Written in Python and uses Nmap")


ip=input("[+] Target IP ==> ")
nm = nmap.PortScanner()
open_ports="-p"
results = nm.scan(hosts=ip,arguments="-sT -n -Pn -T4")
count=0
#print(results)
print("\nHost: %s" % ip)
print("Status: %s" % nm[ip].status())
for proto in nm[ip].all_protocols():
print("Protocol: %s" % protocol)
print()
lport = nm[ip][proto].keys()
ordered (lport)
for port in lport:
print("port: %s\tested: %s" % (port, nm[ip][proto][port]["status"]))
if count==0:
open_ports=open_ports+str(port)
count=1
the rest:
open_ports=open_ports+","+str(port)

print("\nOpen ports: "+ open_ports +" "+str(ip))




REQUERIMENTS!

"The tool is uploaded on Github with the python programming language"

NEED:
PARROT OS OR KALI LINUX
INSTALL: " pip install python-nmap"

INFORMATION!

THIS TOOL IS NOT MINE I TAKEN IT FROM A SPANISH YOUTUBE

CREDIT: Contando Bits!!

ADDITIONAL:

(I am Latin but I speak 2 languages)

Web: /ContandoBits/CBScan/Github

(USE TRANSLATOR)
 

Similar threads

Replies
10
Views
1K
KillaZone44
K
Replies
1
Views
618
ABcoyL823
A
  • Tags
    cybersecurity network security port port scanning scan threat detection