Skip to content

Commit

Permalink
Fixes #2307
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Dec 17, 2023
1 parent 823e2ff commit 036d80b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion mobsf/MobSF/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def upload(self):
def api_docs(request):
"""Api Docs Route."""
context = {
'title': 'REST API Docs',
'title': 'API Docs',
'api_key': api_key(),
'version': settings.MOBSF_VER,
}
Expand Down
6 changes: 5 additions & 1 deletion mobsf/StaticAnalyzer/views/common/binary/macho.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# coding=utf-8
import shutil
import subprocess
from pathlib import Path

import lief

Expand Down Expand Up @@ -75,7 +76,10 @@ def checksec(self):
'to execute reliably.')
else:
severity = 'high'
if self.macho_name.endswith('.dylib'):
ext = Path(self.macho_name).suffix
# PIE check not applicable for static and dynamic libraries
if (ext == '.dylib'
or (not ext and '.framework' in self.macho_name)):
severity = 'info'
desc = (
'The binary is built without Position '
Expand Down
2 changes: 1 addition & 1 deletion mobsf/templates/base/base_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'recent' %}" class="nav-link">RECENT SCANS</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'home' %}" class="nav-link">STATIC ANALYZER</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'dynamic' %}" class="nav-link">DYNAMIC ANALYZER</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'api_docs' %}" class="nav-link">REST API</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'api_docs' %}" class="nav-link">API</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'donate' %}" class="nav-link">DONATE ♥</a></li>
<li class="nav-item d-none d-sm-inline-block"><a target="_blank" href="https://mobsf.github.io/docs/#/" class="nav-link">DOCS</a></li>
<li class="nav-item d-none d-sm-inline-block"><a href="{% url 'about' %}" class="nav-link">ABOUT</a></li>
Expand Down
2 changes: 1 addition & 1 deletion mobsf/templates/general/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1>About Mobile Security Framework</h1>

<p class="lead">
Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides REST APIs for seamless integration with your CI/CD or DevSecOps pipeline. The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing.
Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides APIs for seamless integration with your CI/CD or DevSecOps pipeline. The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing.
</p>
<p> <strong>Author:</strong> <a href="//twitter.com/ajinabraham">Ajin Abraham</a> </p>
<h2>Active Collaborators</h2>
Expand Down
4 changes: 2 additions & 2 deletions mobsf/templates/general/apidocs.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h1><strong>REST API Docs</strong></h1>
<h1><strong>API Docs</strong></h1>
<p class="lead">
REST API Key: <strong><code>{{ api_key}}</code></strong>
API Key: <strong><code>{{ api_key}}</code></strong>
</p>

<!--API Docs -->
Expand Down
4 changes: 2 additions & 2 deletions mobsf/templates/general/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<a class="nav-link" href="{% url 'dynamic' %}">DYNAMIC ANALYZER</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'api_docs' %}">REST API</a>
<a class="nav-link" href="{% url 'api_docs' %}">API</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
Expand Down Expand Up @@ -88,7 +88,7 @@ <h5 id="status"></h5>


<div class="inner">
<h6> <a href="{% url 'recent' %}">RECENT SCANS</a> | <a href="{% url 'dynamic' %}">DYNAMIC ANALYZER</a> | <a href="{% url 'api_docs' %}">REST API</a> | <a href="{% url 'donate' %}">DONATE ♥</a> | <a target="_blank"
<h6> <a href="{% url 'recent' %}">RECENT SCANS</a> | <a href="{% url 'dynamic' %}">DYNAMIC ANALYZER</a> | <a href="{% url 'api_docs' %}">API</a> | <a href="{% url 'donate' %}">DONATE ♥</a> | <a target="_blank"
href="https://mobsf.github.io/docs/#/">DOCS</a> | <a href="{% url 'about' %}">ABOUT</a></h6>
</br>
<p>&copy; {% now "Y" %} Mobile Security Framework - MobSF {{ version }}</p>
Expand Down
4 changes: 2 additions & 2 deletions scripts/mass_static_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def start_scan(directory, server_url, apikey, rescan='0'):
'of a running MobSF Server. '
'(ex: 127.0.0.1:8000)')
parser.add_argument(
'-k', '--apikey', help='MobSF REST API Key')
'-k', '--apikey', help='MobSF API Key')
parser.add_argument(
'-r', '--rescan', help='Run a fresh scan. '
'Value can be 1 or 0 (Default: 0)')
Expand All @@ -86,7 +86,7 @@ def start_scan(directory, server_url, apikey, rescan='0'):
apikey = args.apikey
rescan = args.rescan
if not is_server_up(server_url):
print('MobSF REST API Server is not running at ' + server_url)
print('MobSF API Server is not running at ' + server_url)
print('Exiting!')
exit(0)
# MobSF is running, start scan
Expand Down

0 comments on commit 036d80b

Please sign in to comment.