2
from socket import * # har har har
3
from tempfile import TemporaryFile
4
sys.path.insert(0, "../../pahan/sendmsg")
5
from sendmsg import sendmsg, SCM_RIGHTS
6
from struct import pack
9
tf1.write("I hope it breaks and you die")
15
s = socket(AF_UNIX, SOCK_STREAM)
17
os.unlink("fd_control")
25
sendmsg(b.fileno(), "stfu", 0, (SOL_SOCKET, SCM_RIGHTS, pack("2i", tf1.fileno(), tf2.fileno())))