Closed Mellow-Cobra closed 1 year ago
Traceback (most recent call last): File "C:\Users\MMR3\Documents\Python\BlackHatPython\netcat.py", line 126, in nc = NetCat(args, buffer.encode()) File "C:\Users\MMR3\Documents\Python\BlackHatPython\netcat.py", line 24, in init self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) TypeError: setsockopt() takes exactly 3 arguments (2 given)
I figured this out you need to have 1 the int socket.setsockopt(level: ..., optname: ...,value: 1)
Traceback (most recent call last): File "C:\Users\MMR3\Documents\Python\BlackHatPython\netcat.py", line 126, in
nc = NetCat(args, buffer.encode())
File "C:\Users\MMR3\Documents\Python\BlackHatPython\netcat.py", line 24, in init
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR)
TypeError: setsockopt() takes exactly 3 arguments (2 given)