1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-12-02 09:17:53 +01:00
PHPStruct/example.py

8 lines
208 B
Python
Raw Normal View History

2016-07-26 15:17:52 +02:00
import subprocess
from struct import unpack
import os
a = subprocess.Popen(["php", "example.php"], stdout=subprocess.PIPE).communicate()[0]
print(len(a))
unpack('2cxbxBx?xhxHxixIxlxLxqxQxnxNxfxdx2sx5pP', a)