Skip to content

Commit

Permalink
Added spotbugs tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteSnipers committed Jan 29, 2025
1 parent 7c512c9 commit e6f7610
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ChangeLog

### 0.7.54
- ADDED: Spotbugs tool for static analysis

### 0.7.47
- CHANGE: Updated MobSF to version 4.3.0

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ list of available tools:
* MobSF [ Mobile Security Framework (MobSF) ]
* RMS [ Runtime Mobile Security (RMS) ]
* objection [ Runtime Mobile Exploration Toolkit ]
* spotbugs [ Static code analysis for vulnerabilities and bugs ]
* jadx [ Dex to Java decompiler ]
* jd-gui [ Java Decompiler, dex2jar required ]
* luyten [ Java Decompiler Gui for Procyon ]
Expand Down
2 changes: 1 addition & 1 deletion mpt/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def set_symbolic_links(package):
if (installation_required):
log.info(f"Linking binaries to {settings.MPT_BIN}")
for link_name, bin_location in settings.ANDROID_TOOLS[package]['bin_global'].items():
bin = os.path.join(mpt.config.DEFAULT_MOBILE_FOLDER, settings.ANDROID_TOOLS[package]['dir'], bin_location)
bin = os.path.join(mpt.settings.DEFAULT_MOBILE_FOLDER, settings.ANDROID_TOOLS[package]['dir'], bin_location)

if os.path.isfile(bin):
# create a symbolic link to biniry
Expand Down
12 changes: 11 additions & 1 deletion mpt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import mpt.config
from mpt.config import Config

__version__ = '0.7.53'
__version__ = '0.7.54'
HOME_FOLDER = expanduser("~")
DEFAULT_MOBILE_FOLDER = os.path.join(HOME_FOLDER, "tools/MOBILE/")
MPT_BIN = os.path.join(DEFAULT_MOBILE_FOLDER, 'bin')
Expand Down Expand Up @@ -125,6 +125,16 @@
# 'post': 'cd objection; python -m venv venv; source ./venv/bin/activate; pip install --upgrade setuptools; pip install -U objection'
'post': 'cd objection; python -m venv venv; . ./venv/bin/activate; pip install --upgrade setuptools; pip install -U objection'
},
'spotbugs': {
# check: 'https://github.com/spotbugs/spotbugs/releases',
'url': 'https://github.com/spotbugs/spotbugs/releases/download/4.9.0/spotbugs-4.9.0.zip',
'info': 'Static code analysis for vulnerabilities and bugs',
'dir': 'spotbugs',
'bin': f'cd {os.path.join(conf.load_config('install-dir'), 'spotbugs')}; ./bin/spotbugs',
'install': 'http',
'post': 'mv spotbugs-4.9.0 spotbugs',
'bin_global': {'spotbugs': 'bin/spotbugs'}
},
'jadx': {
# check updates: 'https://github.com/skylot/jadx/releases'
'url': 'https://github.com/skylot/jadx/releases/download/v1.5.1/jadx-1.5.1.zip',
Expand Down

0 comments on commit e6f7610

Please sign in to comment.