RagsFTW Posted December 27, 2017 Share Posted December 27, 2017 Hey all, first post here! I am working on a payload that, when connected to an unlocked Android device, will open the Gmail, attach a number of files, and then send the email. I am having issues with opening the "attach files" menu (the paperclip icon) because I cannot seem to see a way to get the keyboard to tab over to it. Here is what I have so far, tested on a Pixel XL, latest version, with a HP USB Keyboard. Windows + G > Opens Gmail CTRL + N > Create new emailsomeone@domain.com > Enter in the desired destination email. ENTER > Confirms the email address you entered TAB TAB > Moves cursor to Subject Line > Add an email subject. TAB > Moves cursor to body. Text. > Add text to body. Magic happens? This is where I cannot click the paperclip icon, but if I do it on the touch screen, I can finish it out with the keyboard... SHIFT + DOWN ARROW > Selects file(s). SHIFT + ENTER > Attaches files. CTRL + ENTER > Send the email. Any help or thoughts would be greatly appreciated! Cheers! Quote Link to comment Share on other sites More sharing options...
RagsFTW Posted December 27, 2017 Author Share Posted December 27, 2017 Sorry, not sure why it formatted that all as a link... Windows + G > Opens Gmail. CTRL + N > Create new email. Text. > Enter in the desired destination email. ENTER > Confirms the email address you entered. TAB TAB > Moves cursor to Subject Line. Text. > Add an email subject. TAB > Moves Cursor to body. Text. > Add text to body. Magic happens? SHIFT + DOWN ARROW > Selects file(s). SHIFT + ENTER > Attaches files. CTRL + ENTER > Send the email. Quote Link to comment Share on other sites More sharing options...
vini Posted January 9, 2018 Share Posted January 9, 2018 i dont get it. you say u tried this on android yet the first line of your code says windows???? Quote Link to comment Share on other sites More sharing options...
RagsFTW Posted January 9, 2018 Author Share Posted January 9, 2018 Well, it's the Windows key on the keyboard I am connecting to the phone. In DuckyScript, I think it is called the GUI key. Quote Link to comment Share on other sites More sharing options...
vini Posted January 9, 2018 Share Posted January 9, 2018 ok so perhaps u might help me i wanto to script a hello world thing for android after the inital delay what command should i use and which app should be called for the next line: "STRING Hello World" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.