EmpireProject/Empire

osx prompt and keylogger lang issue

Open

#1175 aperta il 3 lug 2018

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)PowerShell (2920 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (7836 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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";
    }
)

Guida contributor