Skip to content

(fix) Fix filesystem cat command missing parameter. #725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions objection/commands/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,10 @@ def cat(args: list):
_, destination = tempfile.mkstemp('.file')

if device_state.platform == Ios:
_download_ios(source, destination)
_download_ios(source, destination, False)

if device_state.platform == Android:
_download_android(source, destination)
_download_android(source, destination, False)

click.secho('====', dim=True)
with open(destination, 'r', encoding='utf-8', errors='ignore') as f:
Expand Down
2 changes: 1 addition & 1 deletion objection/commands/ios/keychain.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def remove(args: list) -> None:
click.secho('Service: {0}'.format(service), dim=True)

api = state_connection.get_api()
api.ios_keychain_remove(account, service);
api.ios_keychain_remove(account, service)
click.secho('Successfully removed matching keychain items', fg='green')


Expand Down
5 changes: 4 additions & 1 deletion objection/commands/mobile_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def patch_android_apk(source: str, architecture: str, pause: bool, skip_cleanup:
enable_debug: bool = True, gadget_version: str = None, skip_resources: bool = False,
network_security_config: bool = False, target_class: str = None,
use_aapt2: bool = False, gadget_config: str = None, script_source: str = None,
ignore_nativelibs: bool = True, manifest: str = None, skip_signing: bool = False, only_main_classes: bool = False) -> None:
ignore_nativelibs: bool = True, manifest: str = None, skip_signing: bool = False,
only_main_classes: bool = False) -> None:
"""
Patches an Android APK by extracting, patching SMALI, repackaging
and signing a new APK.
Expand All @@ -119,6 +120,8 @@ def patch_android_apk(source: str, architecture: str, pause: bool, skip_cleanup:
:param script_source:
:param manifest:
:param skip_signing:
:param ignore_nativelibs:
:param only_main_classes:

:return:
"""
Expand Down
2 changes: 1 addition & 1 deletion objection/commands/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_plugin(args: list = None) -> None:
return

spec = importlib.util.spec_from_file_location(str(uuid.uuid4())[:8], path)
plugin = spec.loader.load_module()
plugin = importlib.util.module_from_spec(spec)
spec.loader.exec_module(plugin)

namespace = plugin.namespace
Expand Down
2 changes: 1 addition & 1 deletion objection/utils/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def exports(self):
if not self.script:
raise Exception('Need a script created before reading exports()')

return self.script.exports
return self.script.exports_sync

def run(self):
"""
Expand Down
Loading