Skip to content

Commit e6f7610

Browse files
committed
Added spotbugs tool
1 parent 7c512c9 commit e6f7610

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ChangeLog
22

3+
### 0.7.54
4+
- ADDED: Spotbugs tool for static analysis
5+
36
### 0.7.47
47
- CHANGE: Updated MobSF to version 4.3.0
58

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ list of available tools:
2929
* MobSF [ Mobile Security Framework (MobSF) ]
3030
* RMS [ Runtime Mobile Security (RMS) ]
3131
* objection [ Runtime Mobile Exploration Toolkit ]
32+
* spotbugs [ Static code analysis for vulnerabilities and bugs ]
3233
* jadx [ Dex to Java decompiler ]
3334
* jd-gui [ Java Decompiler, dex2jar required ]
3435
* luyten [ Java Decompiler Gui for Procyon ]

mpt/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def set_symbolic_links(package):
404404
if (installation_required):
405405
log.info(f"Linking binaries to {settings.MPT_BIN}")
406406
for link_name, bin_location in settings.ANDROID_TOOLS[package]['bin_global'].items():
407-
bin = os.path.join(mpt.config.DEFAULT_MOBILE_FOLDER, settings.ANDROID_TOOLS[package]['dir'], bin_location)
407+
bin = os.path.join(mpt.settings.DEFAULT_MOBILE_FOLDER, settings.ANDROID_TOOLS[package]['dir'], bin_location)
408408

409409
if os.path.isfile(bin):
410410
# create a symbolic link to biniry

mpt/settings.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import mpt.config
66
from mpt.config import Config
77

8-
__version__ = '0.7.53'
8+
__version__ = '0.7.54'
99
HOME_FOLDER = expanduser("~")
1010
DEFAULT_MOBILE_FOLDER = os.path.join(HOME_FOLDER, "tools/MOBILE/")
1111
MPT_BIN = os.path.join(DEFAULT_MOBILE_FOLDER, 'bin')
@@ -125,6 +125,16 @@
125125
# 'post': 'cd objection; python -m venv venv; source ./venv/bin/activate; pip install --upgrade setuptools; pip install -U objection'
126126
'post': 'cd objection; python -m venv venv; . ./venv/bin/activate; pip install --upgrade setuptools; pip install -U objection'
127127
},
128+
'spotbugs': {
129+
# check: 'https://github.com/spotbugs/spotbugs/releases',
130+
'url': 'https://github.com/spotbugs/spotbugs/releases/download/4.9.0/spotbugs-4.9.0.zip',
131+
'info': 'Static code analysis for vulnerabilities and bugs',
132+
'dir': 'spotbugs',
133+
'bin': f'cd {os.path.join(conf.load_config('install-dir'), 'spotbugs')}; ./bin/spotbugs',
134+
'install': 'http',
135+
'post': 'mv spotbugs-4.9.0 spotbugs',
136+
'bin_global': {'spotbugs': 'bin/spotbugs'}
137+
},
128138
'jadx': {
129139
# check updates: 'https://github.com/skylot/jadx/releases'
130140
'url': 'https://github.com/skylot/jadx/releases/download/v1.5.1/jadx-1.5.1.zip',

0 commit comments

Comments
 (0)