Hello i want fix this error
import socket
ip = ("192.168.1.1")
POrt = input("Enter The port : ")
sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
if sock.connect_ex((ip , POrt)) :
print(POrt + " port is closed")
else :
print(POrt + " port is opened")
the error:
./Scanner.py: 4: Syntax error: "(" unexpected
i try to make a python port scanner.
thanks
Hello i want fix this error
import socket
ip = ("192.168.1.1")
POrt = input("Enter The port : ")
sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
if sock.connect_ex((ip , POrt)) :
print(POrt + " port is closed")
else :
print(POrt + " port is opened")
the error:
./Scanner.py: 4: Syntax error: "(" unexpected
i try to make a python port scanner.
thanks
Hello i want fix this error
import socket
ip = ("192.168.1.1")
POrt = input("Enter The port : ")
sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
if sock.connect_ex((ip , POrt)) :
print(POrt + " port is closed")
else :
print(POrt + " port is opened")
the error:
./Scanner.py: 4: Syntax error: "(" unexpected
i try to make a python port scanner.
thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.