使用Android模拟Rubber Ducky攻击目标Android设备或PC
使用Android模拟Rubber Ducky攻击Android或Windows。这不是新技术,只是演示如何使用Android代替rubber ducky进行HID攻击。对于目标Android设备,不需要设备已root、启用ADB/USB调试并授权,因为攻击者的智能手机表现为已连接的键盘。
hid_attack - 脚本包含针对目标Android设备执行(输入)的自定义命令 hid_pc - 脚本包含针对目标Windows 10执行(输入)的自定义命令
Android: https://youtu.be/aOWr6rWhsIs
PC: https://youtu.be/PJbqZm73MOc
视频中使用了"part1/msf_install" PoC脚本。测试的载荷已被移除。
USB Gadget Tool: https://github.com/tejado/android-usb-gadget
HID小工具: https://github.com/pelya/android-keyboard-gadget/tree/master/hid-gadget-test
为方便访问,我将USB Gadget Tool和HID小工具复制到了https://github.com/androidmalware/android_hid/tree/main/part2
这是自定义脚本,可能不适用于你的测试场景。因此,你必须自行调整发送给目标设备的按键。包含我测试载荷的网站已不再活跃。所有可能的按键列表可在下方链接中找到。
bash hid_attack bash hid_pc
https://github.com/pelya/android-keyboard-gadget
https://github.com/urbanadventurer/Android-PIN-Bruteforce
https://github.com/anbud/DroidDucky/blob/master/droidducky.sh