after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def analyze_docker_image(image_obj, dockerfile=False): """Given a DockerImage object, for each layer, retrieve the packages, first looking up in cache and if not there then looking up in the command library. For looking up in command library first mount the filesystem and then look up the command librar...
def analyze_docker_image(image_obj, dockerfile=False): """Given a DockerImage object, for each layer, retrieve the packages, first looking up in cache and if not there then looking up in the command library. For looking up in command library first mount the filesystem and then look up the command librar...
https://github.com/tern-tools/tern/issues/82
./tern report -i ./tern -k report -i docker.io/golang ... 2018-09-10 17:16:35,797 - DEBUG - rootfs - Running command: sudo mount -t overlay overlay -o lowerdir=temp/mergedir,upperdir=temp/6e1bf8ee3b708647f06cac5e20e6998c1f55d1e89b311065c82727c7abbde134/contents,workdir=temp/workdir temp/mergedir Traceback (most recent ...
subprocess.CalledProcessError
def unmount_rootfs(): """Unmount the filesystem""" rootfs_path = os.path.join(constants.temp_folder, constants.mergedir) root_command(unmount, "-rl", rootfs_path)
def unmount_rootfs(num_layers): """Unmount the overlay filesystem""" rootfs_path = os.path.join(constants.temp_folder, constants.mergedir) for _ in range(num_layers): root_command(unmount, "-rl", rootfs_path)
https://github.com/tern-tools/tern/issues/82
./tern report -i ./tern -k report -i docker.io/golang ... 2018-09-10 17:16:35,797 - DEBUG - rootfs - Running command: sudo mount -t overlay overlay -o lowerdir=temp/mergedir,upperdir=temp/6e1bf8ee3b708647f06cac5e20e6998c1f55d1e89b311065c82727c7abbde134/contents,workdir=temp/workdir temp/mergedir Traceback (most recent ...
subprocess.CalledProcessError
def calc_fs_hash(fs_path): """Given the path to the filesystem, calculate the filesystem hash We run a shell script located in the tools directory to get the file stats and the file content's sha256sum. We then calculate the sha256sum of the contents and write the contents in the layer directory. ...
def calc_fs_hash(fs_path): """Given the path to the filesystem, calculate the filesystem hash We run a shell script located in the tools directory to get the file stats and the file content's sha256sum. We then calculate the sha256sum of the contents and write the contents in the layer directory. ...
https://github.com/tern-tools/tern/issues/82
./tern report -i ./tern -k report -i docker.io/golang ... 2018-09-10 17:16:35,797 - DEBUG - rootfs - Running command: sudo mount -t overlay overlay -o lowerdir=temp/mergedir,upperdir=temp/6e1bf8ee3b708647f06cac5e20e6998c1f55d1e89b311065c82727c7abbde134/contents,workdir=temp/workdir temp/mergedir Traceback (most recent ...
subprocess.CalledProcessError
def clahe(img, clip_limit=2.0, tile_grid_size=(8, 8)): if img.dtype != np.uint8: raise TypeError("clahe supports only uint8 inputs") clahe = cv2.createCLAHE(clipLimit=clip_limit, tileGridSize=tile_grid_size) if len(img.shape) == 2: img = clahe.apply(img) else: img = cv2.cvtColo...
def clahe(img, clip_limit=2.0, tile_grid_size=(8, 8)): if img.dtype != np.uint8: raise TypeError("clahe supports only uint8 inputs") img = cv2.cvtColor(img, cv2.COLOR_RGB2LAB) clahe = cv2.createCLAHE(clipLimit=clip_limit, tileGridSize=tile_grid_size) img[:, :, 0] = clahe.apply(img[:, :, 0]) ...
https://github.com/albumentations-team/albumentations/issues/180
--------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-25-6a9d0f41d618> in <module>() 6 img.shape 7 # (256, 256) ----> 8 aug(image=img, p=1) /usr/local/lib/python3.7/site-packages/albumentations/core/transfo...
TypeError
def quantize_model(to_quantize): """Quantize a whole tf.keras model with the default quantization implementation. To be more precise, `quantize_model` creates a model that emulates quantization during training and stores information that downstream tools will use to produce actually quantized models. ...
def quantize_model(to_quantize): """Quantize a whole tf.keras model with the default quantization implementation. To be more precise, `quantize_model` creates a model that emulates quantization during training and stores information that downstream tools will use to produce actually quantized models. ...
https://github.com/tensorflow/model-optimization/issues/292
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-ff8232533be0> in <module> 3 outputs = backbone(input_image) 4 not_working_model = keras.Model(input_image, outputs) ----> 5 q_aware_model = quantize_m...
TypeError
def quantize_annotate_model(to_annotate): """Annotate a model to be quantized. This function does not actually quantize anything. It is merely to specify that the model needs to be quantized. This function is intended to be used in conjunction with the `quantize_annotate_layer` API. It's other...
def quantize_annotate_model(to_annotate): """Annotate a model to be quantized. This function does not actually quantize anything. It is merely to specify that the model needs to be quantized. This function is intended to be used in conjunction with the `quantize_annotate_layer` API. It's other...
https://github.com/tensorflow/model-optimization/issues/292
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-ff8232533be0> in <module> 3 outputs = backbone(input_image) 4 not_working_model = keras.Model(input_image, outputs) ----> 5 q_aware_model = quantize_m...
TypeError
def _add_quant_wrapper(layer): """Add annotation wrapper.""" # Already annotated layer. No need to wrap. if isinstance(layer, quantize_annotate_mod.QuantizeAnnotate): return layer if isinstance(layer, tf.keras.Model): raise ValueError( "Quantizing a tf.keras Model inside ano...
def _add_quant_wrapper(layer): # Already annotated layer. No need to wrap. if isinstance(layer, quantize_annotate_mod.QuantizeAnnotate): return layer return quantize_annotate_mod.QuantizeAnnotate(layer)
https://github.com/tensorflow/model-optimization/issues/292
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-ff8232533be0> in <module> 3 outputs = backbone(input_image) 4 not_working_model = keras.Model(input_image, outputs) ----> 5 q_aware_model = quantize_m...
TypeError
def __init__(self, layer, quantize_config=None, **kwargs): """Create a quantize annotate wrapper over a keras layer. Args: layer: The keras layer to be quantized. quantize_config: `QuantizeConfig` to quantize layer. **kwargs: Additional keyword arguments to be passed to the keras layer. "...
def __init__(self, layer, quantize_config=None, **kwargs): """Create a quantize annotate wrapper over a keras layer. Args: layer: The keras layer to be quantized. quantize_config: `QuantizeConfig` to quantize layer. **kwargs: Additional keyword arguments to be passed to the keras layer. "...
https://github.com/tensorflow/model-optimization/issues/292
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-ff8232533be0> in <module> 3 outputs = backbone(input_image) 4 not_working_model = keras.Model(input_image, outputs) ----> 5 q_aware_model = quantize_m...
TypeError
def __init__(self, layer, quantize_config, **kwargs): """Create a quantize emulate wrapper for a keras layer. Args: layer: The keras layer to be quantized. quantize_config: `QuantizeConfig` to quantize layer. **kwargs: Additional keyword arguments to be passed to the keras layer. """ ...
def __init__(self, layer, quantize_config, **kwargs): """Create a quantize emulate wrapper for a keras layer. Args: layer: The keras layer to be quantized. quantize_config: `QuantizeConfig` to quantize layer. **kwargs: Additional keyword arguments to be passed to the keras layer. """ ...
https://github.com/tensorflow/model-optimization/issues/292
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-10-ff8232533be0> in <module> 3 outputs = backbone(input_image) 4 not_working_model = keras.Model(input_image, outputs) ----> 5 q_aware_model = quantize_m...
TypeError
def _make_attr_tuple_class(cls_name, attr_names): """ Create a tuple subclass to hold `Attribute`s for an `attrs` class. The subclass is a bare tuple with properties for names. class MyClassAttributes(tuple): __slots__ = () x = property(itemgetter(0)) """ attr_class_name = "{}A...
def _make_attr_tuple_class(cls_name, attr_names): """ Create a tuple subclass to hold `Attribute`s for an `attrs` class. The subclass is a bare tuple with properties for names. class MyClassAttributes(tuple): __slots__ = () x = property(itemgetter(0)) """ attr_class_name = "{}A...
https://github.com/python-attrs/attrs/issues/593
Traceback (most recent call last): File "example.py", line 8, in <module> print(get_type_hints(C.__init__)) File "C:\Python37\lib\typing.py", line 1001, in get_type_hints value = _eval_type(value, globalns, localns) File "C:\Python37\lib\typing.py", line 260, in _eval_type return t._evaluate(globalns, localns) File "C:...
NameError
def _make_hash(cls, attrs, frozen, cache_hash): attrs = tuple( a for a in attrs if a.hash is True or (a.hash is None and a.eq is True) ) tab = " " unique_filename = _generate_unique_filename(cls, "hash") type_hash = hash(unique_filename) hash_def = "def __hash__(self" hash_...
def _make_hash(cls, attrs, frozen, cache_hash): attrs = tuple( a for a in attrs if a.hash is True or (a.hash is None and a.eq is True) ) tab = " " unique_filename = _generate_unique_filename(cls, "hash") type_hash = hash(unique_filename) hash_def = "def __hash__(self" hash_...
https://github.com/python-attrs/attrs/issues/593
Traceback (most recent call last): File "example.py", line 8, in <module> print(get_type_hints(C.__init__)) File "C:\Python37\lib\typing.py", line 1001, in get_type_hints value = _eval_type(value, globalns, localns) File "C:\Python37\lib\typing.py", line 260, in _eval_type return t._evaluate(globalns, localns) File "C:...
NameError
def _make_eq(cls, attrs): """ Create __eq__ method for *cls* with *attrs*. """ attrs = [a for a in attrs if a.eq] unique_filename = _generate_unique_filename(cls, "eq") lines = [ "def __eq__(self, other):", " if other.__class__ is not self.__class__:", " return...
def _make_eq(cls, attrs): """ Create __eq__ method for *cls* with *attrs*. """ attrs = [a for a in attrs if a.eq] unique_filename = _generate_unique_filename(cls, "eq") lines = [ "def __eq__(self, other):", " if other.__class__ is not self.__class__:", " return...
https://github.com/python-attrs/attrs/issues/593
Traceback (most recent call last): File "example.py", line 8, in <module> print(get_type_hints(C.__init__)) File "C:\Python37\lib\typing.py", line 1001, in get_type_hints value = _eval_type(value, globalns, localns) File "C:\Python37\lib\typing.py", line 260, in _eval_type return t._evaluate(globalns, localns) File "C:...
NameError
def _make_init( cls, attrs, pre_init, post_init, frozen, slots, cache_hash, base_attr_map, is_exc, has_global_on_setattr, attrs_init, ): if frozen and has_global_on_setattr: raise ValueError("Frozen classes can't use on_setattr.") needs_cached_setattr = cache...
def _make_init( cls, attrs, pre_init, post_init, frozen, slots, cache_hash, base_attr_map, is_exc, has_global_on_setattr, attrs_init, ): if frozen and has_global_on_setattr: raise ValueError("Frozen classes can't use on_setattr.") needs_cached_setattr = cache...
https://github.com/python-attrs/attrs/issues/593
Traceback (most recent call last): File "example.py", line 8, in <module> print(get_type_hints(C.__init__)) File "C:\Python37\lib\typing.py", line 1001, in get_type_hints value = _eval_type(value, globalns, localns) File "C:\Python37\lib\typing.py", line 260, in _eval_type return t._evaluate(globalns, localns) File "C:...
NameError
def make_set_closure_cell(): """Return a function of two arguments (cell, value) which sets the value stored in the closure cell `cell` to `value`. """ # pypy makes this easy. (It also supports the logic below, but # why not do the easy/fast thing?) if PYPY: def set_closure_cell(cell, v...
def make_set_closure_cell(): """Return a function of two arguments (cell, value) which sets the value stored in the closure cell `cell` to `value`. """ # pypy makes this easy. (It also supports the logic below, but # why not do the easy/fast thing?) if PYPY: # pragma: no cover def set_...
https://github.com/python-attrs/attrs/issues/703
Traceback (most recent call last): File "scratch.py", line 10, in <module> raise MyException("test") from None __main__.MyException: test
__main__.MyException
def _transform_attrs(cls, these): """ Transforms all `_CountingAttr`s on a class into `Attribute`s and saves the list in `__attrs_attrs__`. If *these* is passed, use that and don't look for them on the class. """ if these is None: ca_list = [ (name, attr) for nam...
def _transform_attrs(cls, these): """ Transforms all `_CountingAttr`s on a class into `Attribute`s and saves the list in `__attrs_attrs__`. If *these* is passed, use that and don't look for them on the class. """ super_cls = [] for c in reversed(cls.__mro__[1:-1]): sub_attrs = getat...
https://github.com/python-attrs/attrs/issues/221
Traceback (most recent call last): File "E:/D/OneDrive/PyCharm/attrs_test/01.py", line 44, in <module> class B(A): File "E:\D\OneDrive\Miniconda3\envs\dev\lib\site-packages\attr\_make.py", line 391, in attributes return wrap(maybe_cls) File "E:\D\OneDrive\Miniconda3\envs\dev\lib\site-packages\attr\_make.py", line 364, ...
SyntaxError
def stop_httptools(url): """Kill httptools.""" # Invoke HTTPtools UI Kill Request try: requests.get(f"{url}/kill", timeout=5) logger.info("Killing httptools UI") except Exception: pass # Invoke HTTPtools Proxy Kill Request try: http_proxy = url.replace("https://"...
def stop_httptools(port): """Kill httptools.""" # Invoke HTTPtools UI Kill Request try: requests.get("http://127.0.0.1:" + str(port) + "/kill", timeout=5) logger.info("Killing httptools UI") except Exception: pass # Inkoke HTTPtools Proxy Kill Request try: http_p...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def dynamic_analyzer(request, checksum, api=False): """Android Dynamic Analyzer Environment.""" logger.info("Creating Dynamic Analysis Environment") try: no_device = False if not is_md5(checksum): # We need this check since checksum is not validated # in REST API ...
def dynamic_analyzer(request, checksum, api=False): """Android Dynamic Analyzer Environment.""" logger.info("Creating Dynamic Analysis Environment") try: no_device = False if not is_md5(checksum): # We need this check since checksum is not validated # in REST API ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def httptools_start(request): """Start httprools UI.""" logger.info("Starting httptools Web UI") try: httptools_url = get_http_tools_url(request) stop_httptools(httptools_url) start_httptools_ui(settings.PROXY_PORT) time.sleep(3) logger.info("httptools UI started") ...
def httptools_start(request): """Start httprools UI.""" logger.info("Starting httptools Web UI") try: stop_httptools(settings.PROXY_PORT) start_httptools_ui(settings.PROXY_PORT) time.sleep(3) logger.info("httptools UI started") if request.GET["project"]: p...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def configure_proxy(self, project, request): """HTTPS Proxy.""" self.install_mobsf_ca("install") proxy_port = settings.PROXY_PORT logger.info("Starting HTTPs Proxy on %s", proxy_port) httptools_url = get_http_tools_url(request) stop_httptools(httptools_url) start_proxy(proxy_port, project)
def configure_proxy(self, project): """HTTPS Proxy.""" self.install_mobsf_ca("install") proxy_port = settings.PROXY_PORT logger.info("Starting HTTPs Proxy on %s", proxy_port) stop_httptools(proxy_port) start_proxy(proxy_port, project)
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def install_mobsf_ca(self, action): """Install or Remove MobSF Root CA.""" mobsf_ca = get_ca_file() ca_file = None if is_file_exists(mobsf_ca): ca_construct = "{}.0" pem = open(mobsf_ca, "rb") ca_obj = crypto.load_certificate(crypto.FILETYPE_PEM, pem.read()) md = md5(ca_o...
def install_mobsf_ca(self, action): """Install or Remove MobSF Root CA.""" mobsf_ca = get_ca_file() ca_file = None if is_file_exists(mobsf_ca): ca_construct = "{}.0" pem = open(mobsf_ca, "rb").read() ca_obj = crypto.load_certificate(crypto.FILETYPE_PEM, pem) ca_file_hash ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def search(request): """Search Scan by MD5 Route.""" md5 = request.GET["md5"] if re.match("[0-9a-f]{32}", md5): db_obj = RecentScansDB.objects.filter(MD5=md5) if db_obj.exists(): e = db_obj[0] url = ( f"/{e.ANALYZER}/?name={e.FILE_NAME}&amp;" ...
def search(request): """Search Scan by MD5 Route.""" md5 = request.GET["md5"] if re.match("[0-9a-f]{32}", md5): db_obj = RecentScansDB.objects.filter(MD5=md5) if db_obj.exists(): return HttpResponseRedirect("/" + db_obj[0].URL) else: return HttpResponseRedirec...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1666
[ERROR] 05/Feb/2021 02:43:41 - Internal Server Error: /search Traceback (most recent call last): File "\venv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner response = get_response(request) File "\venv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response response = wrapped...
AttributeError
def is_package_installed(self, package, extra): """Check if package is installed.""" success = "\nSuccess" in extra out = self.adb_command(["pm", "list", "packages"], True) pkg = f"{package}".encode("utf-8") pkg_fmts = [pkg + b"\n", pkg + b"\r\n", pkg + b"\r\r\n"] if any(pkg in out for pkg in pk...
def is_package_installed(self, package): """Check if package is installed.""" out = self.adb_command(["pm", "list", "packages"], True) pkg = f"{package}".encode("utf-8") if pkg + b"\n" in out or pkg + b"\r\n" in out: # Windows uses \r\n return True return False
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1582
1. This is the first step upload the specific app to do the static analysis, the mobsf will be killed for no reason 2. This is the second step restart the mobsf ,Traceback (most recent call last): ...
TypeError
def install_apk(self, apk_path, package): """Install APK and Verify Installation.""" if self.is_package_installed(package, ""): logger.info("Removing existing installation") # Remove existing installation' self.adb_command(["uninstall", package], False, True) # Disable install verifi...
def install_apk(self, apk_path, package): """Install APK and Verify Installation.""" if self.is_package_installed(package): logger.info("Removing existing installation") # Remove existing installation' self.adb_command(["uninstall", package], False, True) # Disable install verificati...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1582
1. This is the first step upload the specific app to do the static analysis, the mobsf will be killed for no reason 2. This is the second step restart the mobsf ,Traceback (most recent call last): ...
TypeError
def checksec(self): elf_dict = {} elf_dict["name"] = self.elf_rel is_nx = self.is_nx() if is_nx: severity = "info" desc = ( "The shared object has NX bit set. This marks a " "memory page non-executable making attacker " "injected shellcode non-executab...
def checksec(self): elf_dict = {} elf_dict["name"] = self.elf_rel is_nx = self.is_nx() if is_nx: severity = "info" desc = ( "The shared object has NX bit set. This marks a " "memory page non-executable making attacker " "injected shellcode non-executab...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1582
1. This is the first step upload the specific app to do the static analysis, the mobsf will be killed for no reason 2. This is the second step restart the mobsf ,Traceback (most recent call last): ...
TypeError
def static_analyzer(request, api=False): """Do static analysis on an request and save to db.""" try: if api: typ = request.POST["scan_type"] checksum = request.POST["hash"] filename = request.POST["file_name"] rescan = str(request.POST.get("re_scan", 0)) ...
def static_analyzer(request, api=False): """Do static analysis on an request and save to db.""" try: if api: typ = request.POST["scan_type"] checksum = request.POST["hash"] filename = request.POST["file_name"] rescan = str(request.POST.get("re_scan", 0)) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1542
[ERROR] 18/Sep/2020 16:56:43 - Reading from Info.plist Traceback (most recent call last): File "/root/Mobile-Security-Framework-MobSF/StaticAnalyzer/views/ios/plist_analysis.py", line 67, in plist_analysis dirs = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: '/root/.MobSF/uploads/ab66d07fa0537...
FileNotFoundError
def static_analyzer_ios(request, api=False): """Module that performs iOS IPA/ZIP Static Analysis.""" try: logger.info("iOS Static Analysis Started") if api: file_type = request.POST["scan_type"] checksum = request.POST["hash"] rescan = str(request.POST.get("re...
def static_analyzer_ios(request, api=False): """Module that performs iOS IPA/ZIP Static Analysis.""" try: logger.info("iOS Static Analysis Started") if api: file_type = request.POST["scan_type"] checksum = request.POST["hash"] rescan = str(request.POST.get("re...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1542
[ERROR] 18/Sep/2020 16:56:43 - Reading from Info.plist Traceback (most recent call last): File "/root/Mobile-Security-Framework-MobSF/StaticAnalyzer/views/ios/plist_analysis.py", line 67, in plist_analysis dirs = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: '/root/.MobSF/uploads/ab66d07fa0537...
FileNotFoundError
def run(request, api=False): """View iOS Files.""" try: logger.info("View iOS Source File") exp = "Error Description" file_format = None if api: fil = request.POST["file"] md5_hash = request.POST["hash"] mode = request.POST["type"] ...
def run(request, api=False): """View iOS Files.""" try: logger.info("View iOS Source File") exp = "Error Description" file_format = None if api: fil = request.POST["file"] md5_hash = request.POST["hash"] mode = request.POST["type"] ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1542
[ERROR] 18/Sep/2020 16:56:43 - Reading from Info.plist Traceback (most recent call last): File "/root/Mobile-Security-Framework-MobSF/StaticAnalyzer/views/ios/plist_analysis.py", line 67, in plist_analysis dirs = os.listdir(src) FileNotFoundError: [Errno 2] No such file or directory: '/root/.MobSF/uploads/ab66d07fa0537...
FileNotFoundError
def httptools_start(request): """Start httprools UI.""" logger.info("Starting httptools Web UI") try: stop_httptools(settings.PROXY_PORT) start_httptools_ui(settings.PROXY_PORT) time.sleep(3) logger.info("httptools UI started") if request.GET["project"]: p...
def httptools_start(request): """Start httprools UI.""" logger.info("Starting httptools Web UI") try: stop_httptools(settings.PROXY_PORT) start_httptools_ui(settings.PROXY_PORT) time.sleep(3) logger.info("httptools UI started") if request.GET["project"]: p...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def configure_proxy(self, project): """HTTPS Proxy.""" self.install_mobsf_ca("install") proxy_port = settings.PROXY_PORT logger.info("Starting HTTPs Proxy on %s", proxy_port) stop_httptools(proxy_port) start_proxy(proxy_port, project)
def configure_proxy(self, project): """HTTPS Proxy.""" proxy_port = settings.PROXY_PORT logger.info("Starting HTTPs Proxy on %s", proxy_port) stop_httptools(proxy_port) start_proxy(proxy_port, project)
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def install_mobsf_ca(self, action): """Install or Remove MobSF Root CA.""" mobsf_ca = get_ca_file() ca_file = None if is_file_exists(mobsf_ca): ca_construct = "{}.0" pem = open(mobsf_ca, "rb").read() ca_obj = crypto.load_certificate(crypto.FILETYPE_PEM, pem) ca_file_hash ...
def install_mobsf_ca(self, action): """Install or Remove MobSF Root CA.""" ca_construct = "{}.0" pem = open(get_ca_dir(), "rb").read() ca_file = crypto.load_certificate(crypto.FILETYPE_PEM, pem) ca_file_hash = hex(ca_file.subject_name_hash()).lstrip("0x") ca_file = os.path.join( "/system...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def get_embedded_classes(self): """ Get the list of Java classes from all DEX files. :return: list of Java classes """ if self.classes is not None: return self.classes for dex_file in glob.iglob(os.path.join(self.apk_dir, "*.dex")): if len(settings.BACKSMALI_BINARY) > 0 and is_f...
def get_embedded_classes(self): """ Get the list of Java classes from all DEX files. :return: list of Java classes """ if self.classes is not None: return self.classes for dex_file in glob.iglob(os.path.join(self.apk_dir, "*.dex")): if len(settings.BACKSMALI_BINARY) > 0 and is_f...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def is_internet_available(): try: proxies, verify = upstream_proxy("https") except Exception: logger.exception("Setting upstream proxy") try: requests.get(settings.GOOGLE, timeout=5, proxies=proxies, verify=verify) return True except Exception: try: re...
def is_internet_available(): try: proxies, verify = upstream_proxy("https") except Exception: logger.exception("Setting upstream proxy") try: requests.get(settings.GOOGLE, timeout=5, proxies=proxies, verify=verify) return True except Exception: try: re...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def check_basic_env(): """Check if we have basic env for MobSF to run.""" logger.info("MobSF Basic Environment Check") try: import http_tools # noqa F401 except ImportError: logger.exception("httptools not installed!") os.kill(os.getpid(), signal.SIGTERM) try: import...
def check_basic_env(): """Check if we have basic env for MobSF to run.""" logger.info("MobSF Basic Environment Check") try: import http_tools # noqa F401 except ImportError: logger.exception("httptools not installed!") os.kill(os.getpid(), signal.SIGTERM) try: import...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def check_elf_built(f): has_pi = False has_sp = False has_pi_fg = { 3: [8], # EM_386=3, R_386_RELATIVE=8, 62: [8], # EM_X86_64=62, R_X86_64_RELATIVE=8, 40: [23, 3], # EM_ARM=40, R_ARM_RELATIVE=23,R_ARM_REL32=3, 183: [1027, 3], # EM_AARCH64=183, # R_AARCH6...
def check_elf_built(f): has_pi = False has_sp = False has_pi_fg = { 3: [8], # EM_386=3, R_386_RELATIVE=8, 62: [8], # EM_X86_64=62, R_X86_64_RELATIVE=8, 40: [23, 3], # EM_ARM=40, R_ARM_RELATIVE=23,R_ARM_REL32=3, 183: [1027, 3], # EM_AARCH64=183, # R_AARCH6...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def dex_2_smali(app_dir, tools_dir): """Run dex2smali.""" try: logger.info("DEX -> SMALI") dexes = get_dex_files(app_dir) for dex_path in dexes: logger.info("Converting %s to Smali Code", filename_from_path(dex_path)) if len(settings.BACKSMALI_BINARY) > 0 and is_f...
def dex_2_smali(app_dir, tools_dir): """Run dex2smali.""" try: logger.info("DEX -> SMALI") dexes = get_dex_files(app_dir) for dex_path in dexes: logger.info("Converting %s to Smali Code", filename_from_path(dex_path)) if len(settings.BACKSMALI_BINARY) > 0 and is_f...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def apk_2_java(app_path, app_dir, tools_dir): """Run jadx.""" try: logger.info("APK -> JAVA") args = [] output = os.path.join(app_dir, "java_source/") logger.info("Decompiling to Java with jadx") if os.path.exists(output): shutil.rmtree(output) if le...
def apk_2_java(app_path, app_dir, tools_dir): """Run jadx.""" try: logger.info("APK -> JAVA") args = [] output = os.path.join(app_dir, "java_source/") logger.info("Decompiling to Java with jadx") if os.path.exists(output): shutil.rmtree(output) if le...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def get_manifest_file(app_path, app_dir, tools_dir): """Get readable AndroidManifest.xml.""" try: manifest = None if len(settings.APKTOOL_BINARY) > 0 and is_file_exists(settings.APKTOOL_BINARY): apktool_path = settings.APKTOOL_BINARY else: apktool_path = os.path.j...
def get_manifest_file(app_path, app_dir, tools_dir): """Get readable AndroidManifest.xml.""" try: manifest = None if len(settings.APKTOOL_BINARY) > 0 and is_file_exists(settings.APKTOOL_BINARY): apktool_path = settings.APKTOOL_BINARY else: apktool_path = os.path.j...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def valid_android_zip(app_dir): """Test if this is an valid android zip.""" try: logger.info("Checking for ZIP Validity and Mode") # Eclipse man = os.path.isfile(os.path.join(app_dir, "AndroidManifest.xml")) src = os.path.exists(os.path.join(app_dir, "src/")) if man and s...
def valid_android_zip(app_dir): """Test if this is an valid android zip.""" try: logger.info("Checking for ZIP Validity and Mode") # Eclipse man = os.path.isfile(os.path.join(app_dir, "AndroidManifest.xml")) src = os.path.exists(os.path.join(app_dir, "src/")) if man and s...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def win_fix_java(tools_dir): """Run JAVA path fix in Windows.""" try: logger.info("Running JAVA path fix in Windows") dmy = os.path.join(tools_dir, "d2j2/d2j_invoke.tmp") org = os.path.join(tools_dir, "d2j2/d2j_invoke.bat") dat = "" with open(dmy, "r") as file_pointer: ...
def win_fix_java(tools_dir): """Run JAVA path fix in Windows.""" try: logger.info("Running JAVA path fix in Windows") dmy = os.path.join(tools_dir, "d2j2/d2j_invoke.tmp") org = os.path.join(tools_dir, "d2j2/d2j_invoke.bat") dat = "" with open(dmy, "r") as file_pointer: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def check_transport_security(p_list): """Check info.plist for insecure connection configurations.""" logger.info("Checking for Insecure Connections") ats = [] if "NSAppTransportSecurity" in p_list: ats_dict = p_list["NSAppTransportSecurity"] if ats_dict.get("NSAllowsArbitraryLoads"): ...
def check_transport_security(p_list): """Check info.plist for insecure connection configurations.""" logger.info("Checking for Insecure Connections") ats = [] if "NSAppTransportSecurity" in p_list: ats_dict = p_list["NSAppTransportSecurity"] if ats_dict.get("NSAllowsArbitraryLoads"): ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def get_otool_out(tools_dir, cmd_type, bin_path, bin_dir): """Get otool args by OS and type.""" if len(settings.OTOOL_BINARY) > 0 and is_file_exists(settings.OTOOL_BINARY): otool_bin = settings.OTOOL_BINARY else: otool_bin = "otool" if len(settings.JTOOL_BINARY) > 0 and is_file_exists(se...
def get_otool_out(tools_dir, cmd_type, bin_path, bin_dir): """Get otool args by OS and type.""" if len(settings.OTOOL_BINARY) > 0 and is_file_exists(settings.OTOOL_BINARY): otool_bin = settings.OTOOL_BINARY else: otool_bin = "otool" if len(settings.JTOOL_BINARY) > 0 and is_file_exists(se...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def convert_bin_xml(bin_xml_file): """Convert Binary XML to Readable XML.""" try: plist_obj = readPlist(bin_xml_file) data = writePlistToString(plist_obj) return data except InvalidPlistException: logger.warning("Failed to convert plist")
def convert_bin_xml(bin_xml_file): """Convert Binary XML to Readable XML.""" try: plist_obj = readPlist(bin_xml_file) data = writePlistToString(plist_obj) return data except biplist.InvalidPlistException: logger.warning("Failed to convert plist")
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def run(request, api=False): """View iOS Files.""" try: logger.info("View iOS Source File") exp = "Error Description" file_format = None if api: fil = request.POST["file"] md5_hash = request.POST["hash"] mode = request.POST["type"] ...
def run(request, api=False): """View iOS Files.""" try: logger.info("View iOS Source File") exp = "Error Description" file_format = "cpp" if api: fil = request.POST["file"] md5_hash = request.POST["hash"] mode = request.POST["type"] ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1352
MobSFy Android Instance Traceback (most recent call last): File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\android\environment.py", line 408, in mobsfy_init self.mobsf_agents_setup('frida') File "C:\Users\Lijoy KFH\Mobile-Security-Framework-MobSF-master\DynamicAnalyzer\views\androi...
FileNotFoundError
def check_transport_security(p_list): """Check info.plist for insecure connection configurations.""" logger.info("Checking for Insecure Connections") ats = [] if "NSAppTransportSecurity" in p_list: ats_dict = p_list["NSAppTransportSecurity"] if ats_dict.get("NSAllowsArbitraryLoads"): ...
def check_transport_security(p_list): """Check info.plist for insecure connection configurations.""" logger.info("Checking for Insecure Connections") ats = [] if "NSAppTransportSecurity" in p_list: ats_dict = p_list["NSAppTransportSecurity"] if ats_dict.get("NSAllowsArbitraryLoads"): ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1344
__ __ _ ____ _____ _____ ___ | \/ | ___ | |__/ ___|| ___|_ _|___ / / _ \ | |\/| |/ _ \| '_ \___ \| |_ \ \ / / |_ \| | | | | | | | (_) | |_) |__) | _| \ V / ___) | |_| | |_| |_|\___/|_.__/____/|_| \_/ |____(_)___/ [INFO] 02/Apr/2020 15:43:11 - Mobile Security Framework v3.0.6 Beta REST A...
AttributeError
def cert_info(app_dir, app_file): """Return certificate information.""" try: logger.info("Reading Code Signing Certificate") issued = "" manidat = "" certlist = [] cert_path = os.path.join(app_dir, "META-INF/") apk_file = os.path.join(app_dir, app_file) h...
def cert_info(app_dir, app_file): """Return certificate information.""" try: logger.info("Reading Code Signing Certificate") issued = "" manidat = "" certlist = [] cert_path = os.path.join(app_dir, "META-INF/") apk_file = os.path.join(app_dir, app_file) h...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1105
[INFO] 03/Oct/2019 02:35:15 - Generating Hashes [INFO] 03/Oct/2019 02:35:15 - Unzipping [INFO] 03/Oct/2019 02:35:15 - Getting Hardcoded Certificates/Keystores [INFO] 03/Oct/2019 02:35:15 - APK Extracted [INFO] 03/Oct/2019 02:35:15 - Converting AXML to XML [INFO] 03/Oct/2019 02:35:18 - Reading Android Manifest [INFO] 03...
TypeError
def binary_analysis(src, tools_dir, app_dir, executable_name): """Binary Analysis of IPA.""" try: binary_analysis_dict = {} logger.info("Starting Binary Analysis") dirs = os.listdir(src) dot_app_dir = "" for dir_ in dirs: if dir_.endswith(".app"): ...
def binary_analysis(src, tools_dir, app_dir, executable_name): """Binary Analysis of IPA.""" try: binary_analysis_dict = {} logger.info("Starting Binary Analysis") dirs = os.listdir(src) dot_app_dir = "" for dir_ in dirs: if dir_.endswith(".app"): ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/1073
[WARNING] 23/Aug/2019 07:28:40 - Could not find VirtualBox path [INFO] 23/Aug/2019 07:28:40 - MobSF Basic Environment Check [INFO] 23/Aug/2019 07:28:40 - Checking for Update. [INFO] 23/Aug/2019 07:28:41 - No updates available. [INFO] 23/Aug/2019 07:28:55 - MIME Type: application/octet-stream FILE: test_uuu.ipa [INFO] 2...
KeyError
def api_analysis(package, location): """API Analysis""" api_analysis_result = {} logger.info("Dynamic API Analysis") dat = "" api_base64 = [] api_fileio = [] api_reflect = [] api_sysprop = [] api_cntvl = [] api_binder = [] api_crypto = [] api_acntmnger = [] api_device...
def api_analysis(package, location): """API Analysis""" api_analysis_result = {} logger.info("Dynamic API Analysis") dat = "" api_base64 = [] api_fileio = [] api_reflect = [] api_sysprop = [] api_cntvl = [] api_binder = [] api_crypto = [] api_acntmnger = [] api_device...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def run_analysis(apk_dir, md5_hash, package): """Run Dynamic File Analysis""" analysis_result = {} logger.info("Dynamic File Analysis") capfuzz_home = os.path.join(str(Path.home()), ".capfuzz") web = os.path.join(capfuzz_home, "flows", package + ".flows.txt") logcat = os.path.join(apk_dir, "logc...
def run_analysis(apk_dir, md5_hash, package): """Run Dynamic File Analysis""" analysis_result = {} logger.info("Dynamic File Analysis") capfuzz_home = os.path.join(str(Path.home()), ".capfuzz") web = os.path.join(capfuzz_home, "flows", package + ".flows.txt") logcat = os.path.join(apk_dir, "logc...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def download(md5_hash, download_dir, apk_dir, package): """Generating Downloads""" logger.info("Generating Downloads") try: capfuzz_home = os.path.join(str(Path.home()), ".capfuzz") logcat = os.path.join(apk_dir, "logcat.txt") xlogcat = os.path.join(apk_dir, "x_logcat.txt") d...
def download(md5_hash, download_dir, apk_dir, package): """Generating Downloads""" logger.info("Generating Downloads") try: capfuzz_home = os.path.join(str(Path.home()), ".capfuzz") logcat = os.path.join(apk_dir, "logcat.txt") xlogcat = os.path.join(apk_dir, "x_logcat.txt") d...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def stop_avd(): """Stop AVD""" logger.info("Stopping MobSF Emulator") try: adb_command(["emu", "kill"], silent=True) except: PrintException("Stopping MobSF Emulator")
def stop_avd(): """Stop AVD""" logger.info("Stopping MobSF Emulator") try: adb_command(["emu", "kill"], silent=True) except: PrintException("[ERROR] Stopping MobSF Emulator")
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def start_avd_from_snapshot(): """Start AVD""" logger.info("Starting MobSF Emulator") try: if platform.system() == "Darwin": # There is a strage error in mac with the dyld one in a while.. # this should fix it.. if "DYLD_FALLBACK_LIBRARY_PATH" in list(os.environ.k...
def start_avd_from_snapshot(): """Start AVD""" logger.info("Starting MobSF Emulator") try: if platform.system() == "Darwin": # There is a strage error in mac with the dyld one in a while.. # this should fix it.. if "DYLD_FALLBACK_LIBRARY_PATH" in list(os.environ.k...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def refresh_avd(): """Refresh AVD""" # Before we load the AVD, check paths for path in [settings.AVD_EMULATOR, settings.ADB_BINARY]: if not path: logger.error( "AVD binaries not configured, please refer to the official documentation" ) return Fals...
def refresh_avd(): """Refresh AVD""" # Before we load the AVD, check paths for path in [settings.AVD_EMULATOR, settings.ADB_BINARY]: if not path: logger.error( "AVD binaries not configured, please refer to the official documentation" ) return Fals...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def android_dynamic_analyzer(request): """Android Dynamic Analyzer View""" logger.info("Dynamic Analysis Started") try: if request.method == "POST": md5_hash = request.POST["md5"] package = request.POST["pkg"] launcher = request.POST["lng"] if re.finda...
def android_dynamic_analyzer(request): """Android Dynamic Analyzer View""" logger.info("Dynamic Analysis Started") try: if request.method == "POST": md5_hash = request.POST["md5"] package = request.POST["pkg"] launcher = request.POST["lng"] if re.finda...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_env(request): """Get Dynamic Analysis Environment for Android""" logger.info("Setting up Dynamic Analysis Environment") try: if request.method == "POST": data = {} md5_hash = request.POST["md5"] package = request.POST["pkg"] launcher = request....
def get_env(request): """Get Dynamic Analysis Environment for Android""" logger.info("Setting up Dynamic Analysis Environment") try: if request.method == "POST": data = {} md5_hash = request.POST["md5"] package = request.POST["pkg"] launcher = request....
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def take_screenshot(request): """Take Screenshot""" logger.info("Taking Screenshot") try: if request.method == "POST": md5_hash = request.POST["md5"] if re.match("^[0-9a-f]{32}$", md5_hash): data = {} rand_int = random.randint(1, 1000000) ...
def take_screenshot(request): """Take Screenshot""" logger.info("Taking Screenshot") try: if request.method == "POST": md5_hash = request.POST["md5"] if re.match("^[0-9a-f]{32}$", md5_hash): data = {} rand_int = random.randint(1, 1000000) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def screen_cast(request): """Start or Stop ScreenCast Feature""" logger.info("Invoking ScreenCast Service in VM/Device") try: global TCP_SERVER_MODE data = {} if request.method == "POST": mode = request.POST["mode"] if settings.ANDROID_DYNAMIC_ANALYZER == "Mob...
def screen_cast(request): """Start or Stop ScreenCast Feature""" logger.info("Invoking ScreenCast Service in VM/Device") try: global TCP_SERVER_MODE data = {} if request.method == "POST": mode = request.POST["mode"] if settings.ANDROID_DYNAMIC_ANALYZER == "Mob...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def clip_dump(request): """Dump Android ClipBoard""" logger.info("Starting Clipboard Dump Service in VM/Device") try: data = {} if request.method == "POST": adb = getADB() args = ["am", "startservice", "opensecurity.clipdump/.ClipDumper"] try: ...
def clip_dump(request): """Dump Android ClipBoard""" logger.info("Starting Clipboard Dump Service in VM/Device") try: data = {} if request.method == "POST": adb = getADB() args = ["am", "startservice", "opensecurity.clipdump/.ClipDumper"] try: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def touch(request): """Sending Touch Events""" logger.info("Sending Touch Events") try: data = {} if ( (request.method == "POST") and (is_number(request.POST["x"])) and (is_number(request.POST["y"])) ): x_axis = request.POST["x"] ...
def touch(request): """Sending Touch Events""" logger.info("Sending Touch Events") try: data = {} if ( (request.method == "POST") and (is_number(request.POST["x"])) and (is_number(request.POST["y"])) ): x_axis = request.POST["x"] ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def execute_adb(request): """Execute ADB Commands""" logger.info("Executing ADB Commands") try: if request.method == "POST": data = {} cmd = request.POST["cmd"] resp = "error" try: resp = adb_command(cmd.split(" ")) except: ...
def execute_adb(request): """Execute ADB Commands""" logger.info("Executing ADB Commands") try: if request.method == "POST": data = {} cmd = request.POST["cmd"] resp = "error" try: resp = adb_command(cmd.split(" ")) except: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def mobsf_ca(request): """Install and Remove MobSF Proxy RootCA""" try: if request.method == "POST": data = {} act = request.POST["action"] rootca = get_ca_dir() adb = getADB() if act == "install": logger.info("Installing MobSF ...
def mobsf_ca(request): """Install and Remove MobSF Proxy RootCA""" try: if request.method == "POST": data = {} act = request.POST["action"] rootca = get_ca_dir() adb = getADB() if act == "install": logger.info("Installing MobSF ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def dump_data(request): """Downloading Application Data from Device""" logger.info("Downloading Application Data from Device") try: if request.method == "POST": data = {} package = request.POST["pkg"] md5_hash = request.POST["md5"] if re.match("^[0-9a-...
def dump_data(request): """Downloading Application Data from Device""" logger.info("Downloading Application Data from Device") try: if request.method == "POST": data = {} package = request.POST["pkg"] md5_hash = request.POST["md5"] if re.match("^[0-9a-...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def report(request): """Dynamic Analysis Report Generation""" logger.info("Dynamic Analysis Report Generation") try: if request.method == "GET": md5_hash = request.GET["md5"] package = request.GET["pkg"] if re.findall(r";|\$\(|\|\||&&", package): r...
def report(request): """Dynamic Analysis Report Generation""" logger.info("Dynamic Analysis Report Generation") try: if request.method == "GET": md5_hash = request.GET["md5"] package = request.GET["pkg"] if re.findall(r";|\$\(|\|\||&&", package): l...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def handle_sqlite(sfile): """SQLite Dump - Readable Text""" logger.info("SQLite DB Extraction") try: data = "" con = sq.connect(sfile) cur = con.cursor() cur.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = cur.fetchall() for table in tab...
def handle_sqlite(sfile): """SQLite Dump - Readable Text""" logger.info("SQLite DB Extraction") try: data = "" con = sq.connect(sfile) cur = con.cursor() cur.execute("SELECT name FROM sqlite_master WHERE type='table';") tables = cur.fetchall() for table in tab...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def view(request): """View File""" logger.info("Viewing File") try: typ = "" fil = "" rtyp = "" dat = "" if re.match("^[0-9a-f]{32}$", request.GET["md5"]): fil = request.GET["file"] md5_hash = request.GET["md5"] typ = request.GET["t...
def view(request): """View File""" logger.info("Viewing File") try: typ = "" fil = "" rtyp = "" dat = "" if re.match("^[0-9a-f]{32}$", request.GET["md5"]): fil = request.GET["file"] md5_hash = request.GET["md5"] typ = request.GET["t...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def capfuzz_start(request): """Start CapFuzz UI""" logger.info("Starting CapFuzz Web UI") try: stop_capfuzz(settings.PORT) start_fuzz_ui(settings.PORT) time.sleep(3) logger.info("CapFuzz UI Started") if request.GET["project"]: project = request.GET["projec...
def capfuzz_start(request): """Start CapFuzz UI""" logger.info("Starting CapFuzz Web UI") try: stop_capfuzz(settings.PORT) start_fuzz_ui(settings.PORT) time.sleep(3) logger.info("CapFuzz UI Started") if request.GET["project"]: project = request.GET["projec...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def screencast_service(): """Start or Stop ScreenCast Services""" global TCP_SERVER_MODE logger.info("ScreenCast Service Status: " + TCP_SERVER_MODE) try: screen_dir = settings.SCREEN_DIR if not os.path.exists(screen_dir): os.makedirs(screen_dir) screen_socket = sock...
def screencast_service(): """Start or Stop ScreenCast Services""" global TCP_SERVER_MODE logger.info("ScreenCast Service Status: " + TCP_SERVER_MODE) try: screen_dir = settings.SCREEN_DIR if not os.path.exists(screen_dir): os.makedirs(screen_dir) screen_socket = sock...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_res(): """Get Screen Resolution or Device or VM""" logger.info("Getting Screen Resolution") try: adb = getADB() resp = subprocess.check_output( [adb, "-s", get_identifier(), "shell", "dumpsys", "window"] ) resp = resp.decode("utf-8").split("\n") re...
def get_res(): """Get Screen Resolution or Device or VM""" logger.info("Getting Screen Resolution") try: adb = getADB() resp = subprocess.check_output( [adb, "-s", get_identifier(), "shell", "dumpsys", "window"] ) resp = resp.decode("utf-8").split("\n") re...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_identifier(): """Get Device Type""" try: if settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_REAL_DEVICE": return settings.DEVICE_IP + ":" + str(settings.DEVICE_ADB_PORT) elif settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_AVD": return "emulator-" + str(settings.AVD_ADB_P...
def get_identifier(): """Get Device Type""" try: if settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_REAL_DEVICE": return settings.DEVICE_IP + ":" + str(settings.DEVICE_ADB_PORT) elif settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_AVD": return "emulator-" + str(settings.AVD_ADB_P...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def adb_command(cmd_list, shell=False, silent=False): emulator = get_identifier() adb = getADB() args = [adb, "-s", emulator] if shell: args += ["shell"] args += cmd_list try: result = subprocess.check_output(args) return result except: if not silent: ...
def adb_command(cmd_list, shell=False, silent=False): emulator = get_identifier() adb = getADB() args = [adb, "-s", emulator] if shell: args += ["shell"] args += cmd_list try: result = subprocess.check_output(args) return result except: if not silent: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def connect(): """Connect to VM/Device""" logger.info("Connecting to VM/Device") adb = getADB() subprocess.call([adb, "kill-server"]) subprocess.call([adb, "start-server"]) logger.info("ADB Started") wait(5) logger.info("Connecting to VM/Device") out = subprocess.check_output([adb, "...
def connect(): """Connect to VM/Device""" logger.info("Connecting to VM/Device") adb = getADB() subprocess.call([adb, "kill-server"]) subprocess.call([adb, "start-server"]) logger.info("ADB Started") wait(5) logger.info("Connecting to VM/Device") out = subprocess.check_output([adb, "...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def install_and_run(apk_path, package, launcher, is_activity): """Install APK and Run it""" logger.info("Starting App for Dynamic Analysis") try: adb = getADB() logger.info("Installing APK") adb_command(["install", "-r", apk_path]) if is_activity: run_app = packag...
def install_and_run(apk_path, package, launcher, is_activity): """Install APK and Run it""" logger.info("Starting App for Dynamic Analysis") try: adb = getADB() logger.info("Installing APK") adb_command(["install", "-r", apk_path]) if is_activity: run_app = packag...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def refresh_vm(uuid, snapshot_uuid, vbox_exe): """Refresh VirtualBox based VMs""" logger.info("Refreshing MobSF VM") try: if not vbox_exe: logger.error( "VirtualBox not found, Manually set VBOXMANAGE_BINARY in settings.py" ) # Close VM args = [...
def refresh_vm(uuid, snapshot_uuid, vbox_exe): """Refresh VirtualBox based VMs""" logger.info("Refreshing MobSF VM") try: if not vbox_exe: logger.error( "VirtualBox not found, Manually set VBOXMANAGE_BINARY in settings.py" ) # Close VM args = [...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def api_key(): """Print REST API Key""" if os.environ.get("MOBSF_API_KEY"): logger.info("\nAPI Key read from environment variable") return os.environ["MOBSF_API_KEY"] secret_file = os.path.join(settings.MobSF_HOME, "secret") if isFileExists(secret_file): try: _api_k...
def api_key(): """Print REST API Key""" if os.environ.get("MOBSF_API_KEY"): logger.info("\nAPI Key read from environment variable") return os.environ["MOBSF_API_KEY"] secret_file = os.path.join(settings.MobSF_HOME, "secret") if isFileExists(secret_file): try: _api_k...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def check_update(): try: logger.info("Checking for Update.") github_url = "https://raw.githubusercontent.com/MobSF/Mobile-Security-Framework-MobSF/master/MobSF/settings.py" try: proxies, verify = upstream_proxy("https") except Exception: PrintException("Settin...
def check_update(): try: logger.info("Checking for Update.") github_url = "https://raw.githubusercontent.com/MobSF/Mobile-Security-Framework-MobSF/master/MobSF/settings.py" try: proxies, verify = upstream_proxy("https") except Exception: PrintException("[ERROR...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def createUserConfig(MobSF_HOME): try: CONFIG_PATH = os.path.join(MobSF_HOME, "config.py") if isFileExists(CONFIG_PATH) == False: SAMPLE_CONF = os.path.join(settings.BASE_DIR, "MobSF/settings.py") with io.open(SAMPLE_CONF, mode="r", encoding="utf8", errors="ignore") as f: ...
def createUserConfig(MobSF_HOME): try: CONFIG_PATH = os.path.join(MobSF_HOME, "config.py") if isFileExists(CONFIG_PATH) == False: SAMPLE_CONF = os.path.join(settings.BASE_DIR, "MobSF/settings.py") with io.open(SAMPLE_CONF, mode="r", encoding="utf8", errors="ignore") as f: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def getMobSFHome(useHOME): try: MobSF_HOME = "" if useHOME: MobSF_HOME = os.path.join(os.path.expanduser("~"), ".MobSF") # MobSF Home Directory if not os.path.exists(MobSF_HOME): os.makedirs(MobSF_HOME) createUserConfig(MobSF_HOME) ...
def getMobSFHome(useHOME): try: MobSF_HOME = "" if useHOME: MobSF_HOME = os.path.join(os.path.expanduser("~"), ".MobSF") # MobSF Home Directory if not os.path.exists(MobSF_HOME): os.makedirs(MobSF_HOME) createUserConfig(MobSF_HOME) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def make_migrations(base_dir): """Create Database Migrations""" try: python = get_python() manage = os.path.join(base_dir, "manage.py") args = [python, manage, "makemigrations"] subprocess.call(args) args = [python, manage, "makemigrations", "StaticAnalyzer"] subp...
def make_migrations(base_dir): """Create Database Migrations""" try: python = get_python() manage = os.path.join(base_dir, "manage.py") args = [python, manage, "makemigrations"] subprocess.call(args) args = [python, manage, "makemigrations", "StaticAnalyzer"] subp...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def migrate(BASE_DIR): """Migrate Database""" try: python = get_python() manage = os.path.join(BASE_DIR, "manage.py") args = [python, manage, "migrate"] subprocess.call(args) except: PrintException("Cannot Migrate")
def migrate(BASE_DIR): """Migrate Database""" try: python = get_python() manage = os.path.join(BASE_DIR, "manage.py") args = [python, manage, "migrate"] subprocess.call(args) except: PrintException("[ERROR] Cannot Migrate")
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def kali_fix(BASE_DIR): try: if platform.system() == "Linux" and platform.dist()[0] == "Kali": fix_path = os.path.join(BASE_DIR, "scripts/kali_fix.sh") subprocess.call(["chmod", "a+x", fix_path]) subprocess.call([fix_path], shell=True) except: PrintException("...
def kali_fix(BASE_DIR): try: if platform.system() == "Linux" and platform.dist()[0] == "Kali": fix_path = os.path.join(BASE_DIR, "scripts/kali_fix.sh") subprocess.call(["chmod", "a+x", fix_path]) subprocess.call([fix_path], shell=True) except: PrintException("...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def FindVbox(debug=False): try: if settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_VM": if len(settings.VBOXMANAGE_BINARY) > 0 and isFileExists( settings.VBOXMANAGE_BINARY ): return settings.VBOXMANAGE_BINARY if platform.system() == "Windows": ...
def FindVbox(debug=False): try: if settings.ANDROID_DYNAMIC_ANALYZER == "MobSF_VM": if len(settings.VBOXMANAGE_BINARY) > 0 and isFileExists( settings.VBOXMANAGE_BINARY ): return settings.VBOXMANAGE_BINARY if platform.system() == "Windows": ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def FindJava(debug=False): """Find Java""" # Maintain JDK Version java_versions = "1.7|1.8|1.9|2.0|2.1|2.2|2.3|8|9|10|11" """ This code is needed because some people are not capable of setting java path :-( """ win_java_paths = [ "C:/Program Files/Java/", "C:/Program File...
def FindJava(debug=False): """Find Java""" # Maintain JDK Version java_versions = "1.7|1.8|1.9|2.0|2.1|2.2|2.3|8|9|10|11" """ This code is needed because some people are not capable of setting java path :-( """ win_java_paths = [ "C:/Program Files/Java/", "C:/Program File...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def RunProcess(args): try: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) dat = "" while True: line = proc.stdout.readline() if not line: break dat += str(line)...
def RunProcess(args): try: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) dat = "" while True: line = proc.stdout.readline() if not line: break dat += str(line)...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def PrintException(msg, web=False): """Print Exception verbose""" exc_type, exc_obj, tb = sys.exc_info() f = tb.tb_frame lineno = tb.tb_lineno filename = f.f_code.co_filename linecache.checkcache(filename) line = linecache.getline(filename, lineno, f.f_globals) dat = ( "\n" ...
def PrintException(msg, web=False): try: LOGPATH = settings.LOG_DIR except: LOGPATH = os.path.join(settings.BASE_DIR, "logs/") if not os.path.exists(LOGPATH): os.makedirs(LOGPATH) exc_type, exc_obj, tb = sys.exc_info() f = tb.tb_frame lineno = tb.tb_lineno filename = ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def print_n_send_error_response(request, msg, api=False, exp="Error Description"): """Print and log errors""" logger.error(msg) if api: api_response = {"error": msg} return api_response else: context = {"title": "Error", "exp": exp, "doc": msg} template = "general/error.h...
def print_n_send_error_response(request, msg, api, exp="Error Description"): """Print and log errors""" logger.error(Color.BOLD + Color.RED + "[ERROR] " + msg + Color.END) time_stamp = time.time() formatted_tms = datetime.datetime.fromtimestamp(time_stamp).strftime( "%Y-%m-%d %H:%M:%S" ) ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def isInternetAvailable(): try: proxies, verify = upstream_proxy("https") except: PrintException("Setting upstream proxy") try: requests.get( "https://www.google.com", timeout=5, proxies=proxies, verify=verify ) return True except requests.exceptions.H...
def isInternetAvailable(): try: proxies, verify = upstream_proxy("https") except: PrintException("[ERROR] Setting upstream proxy") try: requests.get( "https://www.google.com", timeout=5, proxies=proxies, verify=verify ) return True except requests.exce...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def zipdir(path, zip_file): """Zip a directory.""" try: logger.info("Zipping") # pylint: disable=unused-variable # Needed by os.walk for root, _sub_dir, files in os.walk(path): for file_name in files: zip_file.write(os.path.join(root, file_name)) e...
def zipdir(path, zip_file): """Zip a directory.""" try: logger.info("Zipping") # pylint: disable=unused-variable # Needed by os.walk for root, _sub_dir, files in os.walk(path): for file_name in files: zip_file.write(os.path.join(root, file_name)) e...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def getADB(): """Get ADB binary path""" try: if len(settings.ADB_BINARY) > 0 and isFileExists(settings.ADB_BINARY): return settings.ADB_BINARY else: adb = "adb" if platform.system() == "Darwin": adb_dir = os.path.join(settings.TOOLS_DIR, "adb/m...
def getADB(): """Get ADB binary path""" try: if len(settings.ADB_BINARY) > 0 and isFileExists(settings.ADB_BINARY): return settings.ADB_BINARY else: adb = "adb" if platform.system() == "Darwin": adb_dir = os.path.join(settings.TOOLS_DIR, "adb/m...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def adb_binary_or32bit_support(): """Check if 32bit is supported. Also if the binary works""" adb_path = getADB() try: fnull = open(os.devnull, "w") subprocess.call([adb_path], stdout=fnull, stderr=fnull) except: msg = ( "\nYou don't have 32 bit execution support enab...
def adb_binary_or32bit_support(): """Check if 32bit is supported. Also if the binary works""" adb_path = getADB() try: fnull = open(os.devnull, "w") subprocess.call([adb_path], stdout=fnull, stderr=fnull) except: msg = ( "\n[WARNING] You don't have 32 bit execution su...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def check_basic_env(): """Check if we have basic env for MobSF to run""" logger.info("MobSF Basic Environment Check") try: import capfuzz except ImportError: PrintException("CapFuzz not installed!") os.kill(os.getpid(), signal.SIGTERM) try: import lxml except Impo...
def check_basic_env(): """Check if we have basic env for MobSF to run""" logger.info("MobSF Basic Environment Check") try: import capfuzz except ImportError: PrintException("[ERROR] CapFuzz not installed!") os.kill(os.getpid(), signal.SIGTERM) try: import lxml exc...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def search(request): """ Search Scan by MD5 Route """ md5 = request.GET["md5"] if re.match("[0-9a-f]{32}", md5): db_obj = RecentScansDB.objects.filter(MD5=md5) if db_obj.exists(): return HttpResponseRedirect("/" + db_obj[0].URL) else: return HttpRespon...
def search(request): """ Search Scan by MD5 Route """ md5 = request.GET["md5"] if re.match("[0-9a-f]{32}", md5): db_obj = RecentScansDB.objects.filter(MD5=md5) if db_obj.exists(): return HttpResponseRedirect("/" + db_obj[0].URL) else: return HttpRespon...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def download(request): """ Download from MobSF Route """ msg = "Error Downloading File " if request.method == "GET": allowed_exts = settings.ALLOWED_EXTENSIONS filename = request.path.replace("/download/", "", 1) # Security Checks if "../" in filename: ret...
def download(request): """ Download from MobSF Route """ try: if request.method == "GET": allowed_exts = settings.ALLOWED_EXTENSIONS filename = request.path.replace("/download/", "", 1) # Security Checks if "../" in filename: logger...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def add_to_recent_scan(name, md5, url): """ Add Entry to Database under Recent Scan """ try: db_obj = RecentScansDB.objects.filter(MD5=md5) if not db_obj.exists(): new_db_obj = RecentScansDB(NAME=name, MD5=md5, URL=url, TS=timezone.now()) new_db_obj.save() exc...
def add_to_recent_scan(name, md5, url): """ Add Entry to Database under Recent Scan """ try: db_obj = RecentScansDB.objects.filter(MD5=md5) if not db_obj.exists(): new_db_obj = RecentScansDB(NAME=name, MD5=md5, URL=url, TS=timezone.now()) new_db_obj.save() exc...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_report(self, file_hash): """ :param file_hash: md5/sha1/sha256 :return: json response / None """ try: url = self.base_url + "report" params = {"apikey": settings.VT_API_KEY, "resource": file_hash} headers = {"Accept-Encoding": "gzip, deflate"} try: ...
def get_report(self, file_hash): """ :param file_hash: md5/sha1/sha256 :return: json response / None """ try: url = self.base_url + "report" params = {"apikey": settings.VT_API_KEY, "resource": file_hash} headers = {"Accept-Encoding": "gzip, deflate"} try: ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def upload_file(self, file_path): """ :param file_path: file path to upload :return: json response / None """ try: url = self.base_url + "scan" files = {"file": open(file_path, "rb")} headers = {"apikey": settings.VT_API_KEY} try: proxies, verify = upstrea...
def upload_file(self, file_path): """ :param file_path: file path to upload :return: json response / None """ try: url = self.base_url + "scan" files = {"file": open(file_path, "rb")} headers = {"apikey": settings.VT_API_KEY} try: proxies, verify = upstrea...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_result(self, file_path, file_hash): """ Uoloading a file and getting the approval msg from VT or fetching existing report :param file_path: file's path :param file_hash: file's hash - md5/sha1/sha256 :return: VirusTotal result json / None upon error """ try: logger.info("Viru...
def get_result(self, file_path, file_hash): """ Uoloading a file and getting the approval msg from VT or fetching existing report :param file_path: file's path :param file_hash: file's hash - md5/sha1/sha256 :return: VirusTotal result json / None upon error """ try: logger.info("[INF...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def res_analysis(app_dir): """Perform the elf analysis.""" try: logger.info("Static Android Resource Analysis Started") elf_desc = { "html_infected": ( "Found html files infected by malware.", "high", "The built environment was probably...
def res_analysis(app_dir): """Perform the elf analysis.""" try: logger.info("Static Android Resource Analysis Started") elf_desc = { "html_infected": ( "Found html files infected by malware.", "high", "The built environment was probably...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def elf_analysis(app_dir: str) -> list: """Perform the elf analysis.""" try: logger.info("Static Android Binary Analysis Started") elf_desc = { "elf_no_pi": ( "Found elf built without Position Independent Executable (PIE) flag", "high", ...
def elf_analysis(app_dir: str) -> list: """Perform the elf analysis.""" try: logger.info("Static Android Binary Analysis Started") elf_desc = { "elf_no_pi": ( "Found elf built without Position Independent Executable (PIE) flag", "high", ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def get_hardcoded_cert_keystore(files): """Returns the hardcoded certificate keystore.""" try: logger.info("Getting Hardcoded Certificates/Keystores") dat = "" certz = "" key_store = "" for file_name in files: ext = file_name.split(".")[-1] if re.s...
def get_hardcoded_cert_keystore(files): """Returns the hardcoded certificate keystore.""" try: logger.info("Getting Hardcoded Certificates/Keystores") dat = "" certz = "" key_store = "" for file_name in files: ext = file_name.split(".")[-1] if re.s...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def cert_info(app_dir, tools_dir): """Return certificate information.""" try: logger.info("Reading Code Signing Certificate") cert = os.path.join(app_dir, "META-INF/") cp_path = tools_dir + "CertPrint.jar" files = [f for f in os.listdir(cert) if os.path.isfile(os.path.join(cert, ...
def cert_info(app_dir, tools_dir): """Return certificate information.""" try: logger.info("Reading Code Signing Certificate") cert = os.path.join(app_dir, "META-INF/") cp_path = tools_dir + "CertPrint.jar" files = [f for f in os.listdir(cert) if os.path.isfile(os.path.join(cert, ...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError
def code_analysis(app_dir, perms, typ): """Perform the code analysis.""" try: logger.info("Static Android Code Analysis Started") api_rules = android_apis.APIS code_rules = android_rules.RULES code_findings = {} api_findings = {} email_n_file = [] url_n_fi...
def code_analysis(app_dir, perms, typ): """Perform the code analysis.""" try: logger.info("Static Android Code Analysis Started") api_rules = android_apis.APIS code_rules = android_rules.RULES code_findings = {} api_findings = {} email_n_file = [] url_n_fi...
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/861
[INFO] 08/Feb/2019 16:17:54 - VM Starting [INFO] 08/Feb/2019 16:17:55 - "POST /DynamicAnalyzer/ HTTP/1.1" 200 32400 [INFO] 08/Feb/2019 16:17:55 - "GET /static/css/devices.min.css HTTP/1.1" 200 44241 [INFO] 08/Feb/2019 16:17:55 - "GET /download/screen/screen.png HTTP/1.1" 302 0 [DEBUG] 08/Feb/2019 16:17:55 - Exception w...
KeyError