joelsernamoreno / EvilCrow-Keylogger

WiFi keylogger with Micro SD slot, based on the Atmega32U4 microcontroller and the ESP32-PICO module
Creative Commons Attribution 4.0 International
207 stars 36 forks source link

Not logging Caps or special characters - shift key #20

Open squirreltech2 opened 10 months ago

squirreltech2 commented 10 months ago

Everything is working great but it's not capturing caps or special characters...it's just logging as if the shift key wasn't pressed...am I missing some setting I need to specify in the code to enable that? same result in the log file in the card and on the web page of the keylogger when connected.

squirreltech2 commented 10 months ago

Tried with two different keyboards and 3 different operating systems on 2 computers, all the same results

squirreltech2 commented 10 months ago

Full log of programming:

┌──(squirrel㉿kaliLaptop)-[~/keylogger-pio] └─$ ./flash.sh Processing LilyPadUSB (platform: atmelavr; framework: arduino; board: LilyPadUSB)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/LilyPadUSB.html PLATFORM: Atmel AVR (4.2.0) > Arduino LilyPad USB HARDWARE: ATMEGA32U4 8MHz, 2.50KB RAM, 28KB Flash DEBUG: Current (simavr) External (simavr) PACKAGES:

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file ".pio/build/LilyPadUSB/firmware.hex"
avrdude: writing flash (4580 bytes):

Writing | ################################################## | 100% 0.37s

avrdude: 4580 bytes of flash written
avrdude: verifying flash memory against .pio/build/LilyPadUSB/firmware.hex:
avrdude: load data flash data from input file .pio/build/LilyPadUSB/firmware.hex:
avrdude: input file .pio/build/LilyPadUSB/firmware.hex contains 4580 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.06s

avrdude: verifying ...
avrdude: 4580 bytes of flash verified

avrdude: safemode: Fuses OK (E:CE, H:D8, L:FF)

avrdude done. Thank you.

=========================================== [SUCCESS] Took 2.83 seconds =========================================== Processing keylogger (platform: espressif32@6.1.0; framework: arduino; board: pico32)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/pico32.html PLATFORM: Espressif 32 (6.1.0) > ESP32 Pico Kit HARDWARE: ESP32 80MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Leaving... Hard resetting via RTS pin... ========================================== [SUCCESS] Took 52.87 seconds ========================================== Processing LilyPadUSB (platform: atmelavr; framework: arduino; board: LilyPadUSB)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/LilyPadUSB.html PLATFORM: Atmel AVR (4.2.0) > Arduino LilyPad USB HARDWARE: ATMEGA32U4 8MHz, 2.50KB RAM, 28KB Flash DEBUG: Current (simavr) External (simavr) PACKAGES:

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file ".pio/build/LilyPadUSB/firmware.hex"
avrdude: writing flash (28208 bytes):

Writing | ################################################## | 100% 2.29s

avrdude: 28208 bytes of flash written
avrdude: verifying flash memory against .pio/build/LilyPadUSB/firmware.hex:
avrdude: load data flash data from input file .pio/build/LilyPadUSB/firmware.hex:
avrdude: input file .pio/build/LilyPadUSB/firmware.hex contains 28208 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.35s

avrdude: verifying ...
avrdude: 28208 bytes of flash verified

avrdude: safemode: Fuses OK (E:CE, H:D8, L:FF)

avrdude done. Thank you.

=========================================== [SUCCESS] Took 5.60 seconds ===========================================

joelsernamoreno commented 10 months ago

Hello!

Are you pressing the key combination too fast?

Try pressing and holding the shift key, then press and release a key (e.g. the letter a), then release the shift key

Let me know if this works and I will give you a solution

squirreltech2 commented 10 months ago

did not work... this is what I typed on the keyboard connected to the keylogger: "This is a test of CAPS and Specal Characters 1234567890 !@#$%^&*()" and this is what the log shows on the web page and on the actual log file in the memory card: "this is a test of caps and special characters 1234567890 1234567890"

So it's logging but not exactly useful. For info I'm in North America and we don't have Alt GR keys on keyboards. I've tried 3 keyboards and all the same result on two different computers so I'm 95% sure it's something in the code or keyboard files.

joelsernamoreno commented 9 months ago

This is very strange. What is the layout of your keyboard and what is the layout you are using in the keylogger? This is the first time someone reports this problem

liquidgasair commented 5 months ago

the same issue, capslock key is not registered (tried on different keyboards with EN_US layout)