mirror of
https://github.com/danog/PHPStruct.git
synced 2024-11-30 04:19:08 +01:00
8 lines
208 B
Python
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)
|