2020年10月20日 星期二

CJMCU-3212 BADUSB board introduction and resource

In order to do the virtual keyboard study, I bought a CJMCU-3212(also called WiFi-Ducky) from Taobao(not yet reach me this moment). As I knew, it is an evaluation board to integrate ATMEGA32U4(Arduino), ESP8266(WiFi) and SD card reader. The well-known BADUSB board is Rubber Ducky USB from HAK5 and it is well documented and easy to find a lot of resources from Web page, Github and Youtube. For CJMCU-3212, no official document and website to mention and support it. I can only collect some information from Chinese website and see some videos from Youtube or Youtube-like site. Here are the information I organized and translated to English for people who interested about it.

Hardware(it integrate three modules)

a. Main module, ATMEGA32U4 to be identified as Arduino Leonardo

b. WiFi module, ESP8266-ESP-12E, to communicate with the system with WiFi

c. SD card module, to read the script inside the SD card for execution

The WiFi module provide an interactive method to input the script and the SD card can store the script for execution instead of the EEPROM of ATMEGA32U4


Pinout(to be updated)


Software

It borrows many codes from Rubber Ducky USB project

a. USB-Rubber-Ducky, for main module

b. wifi_ducky, for WiFi module

c. Duckduino-microSD, for SD card reader

*the default COM setting for ATMEGA32U4 Leonardo 9600N81

*the SD card need to be format as FAT32 and the start-up script name is "script.txt"

*the default WiFi hotspot is called "WiFi Duck" and the default password to access is "quackquack" and the default IP is "192.168.4.1"

*the flasher program for ESP8266 "ESP8266 Flasher_x64", the ROM file for WiFi "esp8266_wifi_duck_4mb.bin”, baudrate setting "115200"






Usage(to be continued... when I got the module)


Reference

https://www.lemonsys.cn/tech_110/

https://www.bilibili.com/read/cv5472965

https://hackaday.com/2014/10/05/badusb-means-were-all-screwed/

https://www.youtube.com/watch?v=G-Z2rf_AN-c