Skip to content
Open
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
13 changes: 11 additions & 2 deletions fridump.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,22 @@ def MENU():
session = None
try:
if USB:
session = frida.get_usb_device().attach(APP_NAME)
logging.debug("Attempting to get USB device...")
device = frida.get_usb_device(timeout=5)
session = device.attach(APP_NAME)
else:
logging.debug("Attempting to attach to process on local device...")
session = frida.attach(APP_NAME)
except frida.ServerNotRunningError:
print("Frida server is not running. Please start the frida server on the device.")
sys.exit(1)
except frida.ProcessNotFoundError:
print(f"Process '{APP_NAME}' not found. Make sure the process is running.")
sys.exit(1)
except Exception as e:
print("Can't connect to App. Have you connected the device?")
logging.debug(str(e))
sys.exit()
sys.exit(1)


# Selecting Output directory
Expand Down