honeynet/droidbot

Quotation marks being inserted around username and password fields

Sultan-Aloufi opened this issue · 2 comments

Greetings,

wanted to report a weird issue I encountered using droidbot. It will include quotation marks around the username and password fields from the json script when it encounters a login screen in the app.

I'm using a pixel 2 on android 11. I tried android 10 and its the same issue. It could be a pixel 2 specific issue but I don't have other devices to test on.

Would be appreciated if this issue can be looked at.

Sorry for the late reply.
Could you provide the script that ran into this issue?

Hi @Sultan-Aloufi, @yuanchun-li
I solved this problem by removing the double quotes from the below line.
input_cmd = "am broadcast -a DROIDBOT_INPUT_TEXT --es text \"%s\" --ei mode %d" % (text, mode)
to
input_cmd = "am broadcast -a DROIDBOT_INPUT_TEXT --es text %s --ei mode %d" % (text, mode)

in file adapter\droidbot_ime.py