1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-11-30 04:19:08 +01:00
PHPStruct/example.py
2016-07-26 15:17:52 +02:00

8 lines
208 B
Python

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)