ATTACKMODE
accepts VID
and PID
parameters, in addition to SN
(Serial Number) and MAN
(Manufacturer). VID_XX
– Vendor ID
PID_XX
– Product ID
MAN_XX
– Manufacturer
SN_XX
– Serial Number
PROD_XX
– Product/tmp/mode
file. This may be queried in a payload in order to know which attack mode the device is currently operating. It may be useful to obtain VID
and PID
values from this file, or from /tmp/vidpid
, in order to maintain the same device identifier when changing attack modes. HID
option enabled, and the VID
and PID
values obtained from the connected keyboard. If a payload were to then enable the ECM_ETHERNET
option in addition to the HID
option, the following code may be used:/tmp/mode
file contained like the following:ECM_ETHERNET
option to an existing mode: