Use el shell adb para simular la operación manual del teléfono móvil para ingresar el código de verificación y resolver violentamente el problema de desvincular el teléfono móvil de West Wind y Westward Journey

1. Problema: el número de teléfono móvil vinculado a Xifeng Westward Journey ya no está en uso y se debe ingresar el código de verificación para desvincular el teléfono móvil

2. Solución: El código de verificación de Western Journey to the West tiene 4 dígitos, y puede usar 1000~9999 para ingresar datos de fuerza bruta.

3. Usa herramientas:

1. anuncio

Ejecute adb shell para ingresar a la interfaz de terminal del teléfono móvil, escriba windows cmd y linux terminal

Use el comando getevents para capturar los eventos de operación del teléfono móvil, y podemos obtener las instrucciones correspondientes haciendo clic en la interfaz del teléfono móvil

Use sentevents para enviar comandos para simular clics, ingresar códigos de verificación y otras operaciones.

Las instrucciones obtenidas por getevents están en hexadecimal y deben convertirse a decimal en sendevents

2. sistema ubuntu

4. Pasos

1. Adb, sudo apt-get install android-tools-adb

2. Encienda la función de depuración USB en el teléfono móvil (puede buscar en Baidu los pasos para habilitar la depuración USB de teléfonos móviles de varias marcas)

3. Use dispositivos adb para verificar si está conectado al teléfono móvil (el teléfono móvil mostrará un mensaje emergente para autorizar el funcionamiento de la computadora)

4. Escribir guiones para fuerza bruta

#!/bin/bash
echo "po jie start"
i=7532
while ((i < 10000))
echo
"ejecutar el ${i} tiempo hasta pojie"
#1. 点击验证码的输入框
shell adb sendevent /dev/input/event1 3 57 26854
shell adb sendevent /dev/input/event1 1 330 1
shell adb sendevent /dev/input/event1 3 50 3
shell adb sendevent /dev/input/ event1 3 53 169
adb shell sendevent /dev/input/event1 3 54 360
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 57 4294967295
adb shell sendevent /dev/input/event1 1 330 0
adb shell sendevent /dev/input/event1 0 0 0

#2. Ingrese el código de verificación
#Mueva el cursor hasta el final
#adb shell input keyevent 123
#Retroceso
adb shell input keyevent 112
adb shell input keyevent 112
adb shell input keyevent 112
adb shell input keyevent 112 adb
shell input text "${i} "
((i++))

#3.
Adb shell sendevent /dev/input/event1 3 57 26854
adb shell sendevent /dev/input/event1 1 330 1 adb shell
sendevent /dev/input/event1 3 50 3
#adb shell sendevent /dev/input/event1 3 53 308
#adb shell sendevent /dev/input/event1 3 54 731
adb shell sendevent /dev/input/event1 3 53 304
adb shell sendevent /dev/input/event1 3 54 1219
adb shell sendevent /dev/input/event1 0 0 0
shell adb sendevent /dev/input/event1 3 57 4294967295
shell adb sendevent /dev/input/event1 1 330 0
shell adb sendevent /dev/input/event1 0 0 0

#4. 点击确定进行验证
shell adb sendevent /dev/input/event1 3 57 26854
shell adb sendevent /dev/input/event1 1 330 1 shell
adb sendevent /dev/input/event1 3 50 3
shell adb sendevent /dev/input/event1 3 53 140
shell adb sendevent /dev/input/event1 3 54 479
shell adb sendevent /dev/input/event1 0 0 0
shell adb sendevent /dev/input/event1 3 57 4294967295
shell adb sendevent /dev/input/event1 1 330 0
adb shell sendevent /dev/input/event1 0 0 0

N.º 5. Error de verificación Haga clic en Aceptar para volver a entrar en
suspensión 1
adb shell sendevent /dev/input/event1 3 57 26854
adb shell sendevent /dev/input/event1 1 330 1
adb shell sendevent /dev/input/event1 3 50 3
adb shell sendevent /dev/input/event1 3 53 555
adb shell sendevent /dev/input/event1 3 54 888
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 57 4294967295
adb shell sendevent event /dev /input/event1 1 330 0
adb shell sendevent /dev/input/event1 0 0 0
done
echo "pojie end"

Supongo que te gusta

Origin blog.csdn.net/qq_39298227/article/details/92834585
Recomendado
Clasificación