fixed attach.py

This commit is contained in:
Unbit
2013-10-07 13:03:50 +02:00
parent a0eed32b3f
commit fbfbacce14

View File

@@ -7,7 +7,7 @@ filename = sys.argv[1]
size = os.path.getsize(filename)
f = open(filename, 'r')
print(f.read())
os.write(1, f.read())
f.close()
print(struct.pack("<Q", size))
os.write(1, (struct.pack("<Q", size)))