Process elf correctly
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
python -m venv .venv
|
||||
.\.venv\Scripts\activate
|
||||
pip install lief
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
python -m venv .venv
|
||||
. ./.venv/bin/activate
|
||||
pip install lief
|
||||
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
import lief
|
||||
|
||||
# print("imported", file=sys.stderr)
|
||||
|
||||
binary = lief.parse(sys.stdin.buffer.read())
|
||||
# print([func.name for func in binary.exported_functions], file=sys.stderr)
|
||||
binary.write(sys.argv[1])
|
||||
Reference in New Issue
Block a user