mirror of
https://github.com/danog/PHPStruct.git
synced 2024-12-02 09:17:53 +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)
|