Skip to content

Commit

Permalink
Merge pull request #40 from enzok/master
Browse files Browse the repository at this point in the history
More fixes for Windows
  • Loading branch information
doomedraven authored May 31, 2024
2 parents 68015f4 + 598326f commit 662e62f
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 60 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.a
*.o
*.dll
*.exe
*.so
*.pyc
Expand Down
23 changes: 15 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This file is part of SFlock - http://www.sflock.org/.
# See the file 'docs/LICENSE.txt' for copying permission.

import sys

from setuptools import setup, find_packages
from distutils.util import convert_path

Expand All @@ -13,6 +15,18 @@
assert "__version__" in ver_module_ns
version = ver_module_ns["__version__"]

install_requires=[
"click",
"cryptography>=2.1",
"olefile>=0.43",
# "peepdf>=0.4.1",
"python-magic>=0.4.13",
"pefile",
]

if sys.platform == "win32":
install_require.append("python-magic-bin>=0.4.14")

setup(
name="SFlock2",
version=version,
Expand Down Expand Up @@ -47,14 +61,7 @@
license="GPLv3",
description="Sample staging and detonation utility",
include_package_data=True,
install_requires=[
"click",
"cryptography>=2.1",
"olefile>=0.43",
# "peepdf>=0.4.1",
"python-magic>=0.4.13",
"pefile",
],
install_requires=install_requires,
extras_require={
"dev": ["mock", "pytest"],
"shellcode": ["unicorn>=2.0.0", "yara-python>=4.1.0"],
Expand Down
2 changes: 1 addition & 1 deletion sflock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is part of SFlock - http://www.sflock.org/.
# See the file 'docs/LICENSE.txt' for copying permission.

from sflock.compat import magic
import magic
from sflock.exception import UnpackException
from sflock.main import ident, unpack, supported, zipify
from sflock.__version__ import __version__
2 changes: 1 addition & 1 deletion sflock/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import hashlib
import io
import magic
import ntpath
import olefile
import os.path
Expand All @@ -13,7 +14,6 @@
import subprocess
import tempfile

from sflock.compat import magic
from sflock.config import iter_passwords
from sflock.exception import UnpackException
from sflock.misc import data_file, make_list
Expand Down
3 changes: 0 additions & 3 deletions sflock/compat/__init__.py

This file was deleted.

46 changes: 0 additions & 46 deletions sflock/compat/magic.py

This file was deleted.

Binary file added sflock/data/win32/libmagic.dll
Binary file not shown.
Binary file modified sflock/data/win32/magic.mgc
Binary file not shown.
Binary file removed sflock/data/win32/magic1.dll
Binary file not shown.
Binary file added sflock/data/win64/libmagic.dll
Binary file not shown.
Binary file modified sflock/data/win64/magic.mgc
Binary file not shown.
Binary file removed sflock/data/win64/magic1.dll
Binary file not shown.

0 comments on commit 662e62f

Please sign in to comment.