peframe: fix for py3.10

This commit is contained in:
Andrew Benson 2021-10-22 07:48:01 -05:00
parent bc8c24f2d8
commit 7ac2440bd5
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,11 @@
--- a/peframe/modules/features.py
+++ b/peframe/modules/features.py
@@ -18,7 +18,7 @@
delta[x - key_len] ^= delta[x]
""" return the delta as a string """
- return delta.tostring()[:-key_len]
+ return delta.tobytes()[:-key_len]
def get_xor(filename, search_string=False):
xorsearch_custom = False

View file

@ -1,9 +1,8 @@
# Template file for 'peframe'
pkgname=peframe
version=6.0.3
revision=4
revision=5
build_style="python3-module"
pycompile_module="peframe"
hostmakedepends="python3-setuptools"
depends="python3-pefile python3-magic python3-M2Crypto python3-virustotal-api
python3-yara python3-oletools"
@ -13,3 +12,4 @@ license="GPL-2.0-only"
homepage="https://github.com/guelfoweb/peframe"
distfiles="https://github.com/guelfoweb/peframe/archive/${version}.tar.gz"
checksum=75a4c75755b02a6500e9dd651ccd3e8737a7f90dffe113879e3fd2fc0582742d
make_check=no # does not include tests