Create portscanner in seconds #shorts
CTF Security
A python code to perform portscanning get the code here: https://github.com/ctfsec/python/blob/main/portscanner.py
@ctf-sec @ibrahimmutiuolajide #python #socket #portscanning #shorts #worldcup2022 #qatar2022 #programming #ads #simple
CODE #importing modules import socket
#Setting targetIP and TargetPort target_ip = input("Enter IP Example 192.168.01 ") target_port = int(input("Enter target port Example 80 "))
#Creating a socket object s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#Catching and Exception or Handling Error try: s.connect((target_ip, target_port)) print(f" Port {target_port} is open") except socket.error: print(f" Port {target_port} is closed") ... https://www.youtube.com/watch?v=dwx9whdLpdg
2176371 Bytes