mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
20 lines
562 B
Python
20 lines
562 B
Python
#!/usr/bin/env python3
|
|
#
|
|
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
|
|
#
|
|
|
|
import sys
|
|
sys.path.append("..")
|
|
|
|
from zipfile import ZipFile
|
|
from qiling import Qiling
|
|
from qiling.const import QL_VERBOSE
|
|
|
|
if __name__ == "__main__":
|
|
with ZipFile("shellcodes/win32_https_download.zip") as zip_reader:
|
|
with zip_reader.open('win32_https_download.bin', 'r', b'infected') as f:
|
|
sc = f.read()
|
|
|
|
ql = Qiling(code=sc, archtype="x86", ostype="windows", rootfs="rootfs/x86_windows", verbose=QL_VERBOSE.DEBUG)
|
|
ql.run()
|