EmpireProject/Empire

osx prompt and keylogger lang issue

Open

#1,175 opened on Jul 3, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PowerShell (7,836 stars) (2,920 forks)batch import
enhancementhelp wanted

Description

the osx prompt and keylogger work fine, except one important thing which is the following: the keyboard layout isn't taken into account so while the key pressed returned might be correct on a default US keyboard I presume, on another one it isn't It's quite easy to "translate" for simple key like a > q but some combos like @ on some keyboards are very different. that command return the layout used but I fail to find a way to properly translate what Empire returns given the layout any idea ?

defaults read /Library/Preferences/com.apple.HIToolbox.plist  AppleEnabledInputSources
(
        {
        InputSourceKind = "Keyboard Layout";
        "KeyboardLayout ID" = 251;
        "KeyboardLayout Name" = "ABC-AZERTY";
    }
)

Contributor guide

osx prompt and keylogger lang issue · EmpireProject/Empire#1175 | Good First Issue