Created
April 12, 2019 08:30
-
-
Save zweite/baa228c38e973553203bedb9c53a9539 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell | |
//电源键 | |
adb shell input keyevent 26 | |
//菜单键 | |
adb shell input keyevent 82 | |
//home键 | |
adb shell input keyevent 3 | |
//返回键 | |
adb shell input keyevent 4 | |
//打开微信 | |
adb shell am start -n com.tencent.mm/.ui.LauncherUI | |
//模拟点击 100 300是坐标 | |
adb shell input tap 100 300 | |
//模拟滑动 300 1000 300 500 分别表示起始点x坐标 起始点y坐标 结束点x坐标 结束点y坐标。 | |
adb shell input swipe 300 1000 300 500 | |
//模拟输入 hello | |
adb shell input text hello | |
//拨打电话 10086 | |
adb shell am start -a android.intent.action.CALL tel:10086 | |
//编辑短信hello(不支持中文,不过好像有方法做到,貌似需要在手机安装特殊的输入法,暂不搞) | |
adb shell am start -a android.intent.action.SENDTO -d sms:10086 --es sms_body hello | |
adb shell input keyevent 22 //焦点去到发送按键 | |
adb shell input keyevent 66 //回车,就是按下发送键 | |
微信adb爬虫 | |
1、adb shell | |
2、am start -n com.tencent.mm/.ui.LauncherUI | |
3、uiautomator dump /data/local/tmp/uidump.xml | |
4、adb pull /data/local/tmp/uidump.xml | |
5、分析坐标 | |
sample | |
<node NAF="true" index="0" text="" resource-id="" class="android.widget.RelativeLayout" package="com.tencent.mm" content-desc="" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[786,63][933,189]"> | |
坐标为786, 63 | |
6、input tap 786 63 | |
7、input text dadaozhijian // 搜索公众号 | |
8、循环4、5分析坐标 | |
9、input tap 218 368 进入公众号 | |
10、类似前面分析自动点击、中间人攻击方式抓包 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment