Skip to content
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

Can't connect to certain apps #30

Open
cromatkastar opened this issue Oct 8, 2020 · 3 comments
Open

Can't connect to certain apps #30

cromatkastar opened this issue Oct 8, 2020 · 3 comments

Comments

@cromatkastar
Copy link

My fridump is connected to the device for sure, because the command

python fridump.py -U -s keystore

works.

however any other processes, especially the ones that start with com.xxx.yyy don't work

is there any reason?

thank you.

@poldenais
Copy link

Was there any spaces in the package name? Enclose with " " if there is.

@0x4ngK4n
Copy link

Hi I think this might be because the frida.get_usb_device().attach("com.xxx.yyyy") does not work in the first try.
It tries once and gives up due to error at line 73 of fridump.py and moves to the catch statement.

For me I would get the error: device not found or Can't connect to App. Have you connected the device? when it failed in the try statement of fridump.py.
So I modified the part of script to constantly probe for the USB device and try attach to process and it worked for me.

I modified "fridump.py" from line 69 to 79 as below:

session = None
while True:
	try:
		if USB:
			session = frida.get_usb_device().attach(APP_NAME)
			print("pass")
			break
		else:
			session = frida.attach(APP_NAME)
	except Exception as e:
		print("Can't connect to App. Have you connected the device?")
		logging.debug(str(e))
		print("fail")

Hope it helps you!

@CristiVlad25
Copy link

Hi I think this might be because the frida.get_usb_device().attach("com.xxx.yyyy") does not work in the first try.
It tries once and gives up due to error at line 73 of fridump.py and moves to the catch statement.

For me I would get the error: device not found or Can't connect to App. Have you connected the device? when it failed in the try statement of fridump.py.
So I modified the part of script to constantly probe for the USB device and try attach to process and it worked for me.

I modified "fridump.py" from line 69 to 79 as below:

session = None
while True:
	try:
		if USB:
			session = frida.get_usb_device().attach(APP_NAME)
			print("pass")
			break
		else:
			session = frida.attach(APP_NAME)
	except Exception as e:
		print("Can't connect to App. Have you connected the device?")
		logging.debug(str(e))
		print("fail")

Hope it helps you!

this does the trick! well thought!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants