-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (48 loc) · 1.68 KB
/
setup.py
File metadata and controls
56 lines (48 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
import asthook
from asthook.conf import VERSION_FRIDA
import bootstrap
import os, stat
class pre_install(install):
def run(self):
bootstrap.main()
install.run(self)
for filepath in self.get_outputs():
if "api_key_detector/gibberish_detector/gibberish_detector.pki" in filepath:
os.chmod(filepath, stat.S_IWOTH | stat.S_IROTH | stat.S_IRGRP | stat.S_IWGRP |stat.S_IREAD |stat.S_IWRITE)
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = [x if not x.startswith("frida") else f"frida=={VERSION_FRIDA}" for x in requirements]
setup(
name='asthook',
version='1.1.0',
packages=find_packages() + \
['api_key_detector/my_tools',
'api_key_detector/gibberish_detector'],
include_package_data = True,
author="MadSquirrel",
author_email="benoit.forgette@ci-yow.com",
description="Analyse apk source code and make a dynamic analysis",
long_description_content_type="text/markdown",
long_description=open('README.md').read(),
download_url="https://gitlab.com/MadSquirrels/mobile/asthook",
url='https://madsquirrels.gitlab.io/mobile/asthook/',
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 1 - Planning"
],
entry_points = {
'console_scripts': [
'asthook=asthook:main',
],
},
scripts=['asthook-manager'],
cmdclass={
'install': pre_install
},
install_requires = requirements,
python_requires='>=3.5'
)