Files
metasploit-gs/external/source/exploits/CVE-2020-9850/payload/loader/make.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
162 B
Python
Raw Normal View History

2020-08-14 15:30:58 +08:00
#!/usr/bin/env python3
import lief
import sys
p = lief.parse(sys.argv[1])
loader = bytes(p.get_section('__text').content)
open(sys.argv[2], 'wb').write(loader)