This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Language support/args input for keyseed.py
hid-all.py takes language/os arguments. Example: python hid-all.py --es -w7 Will run Windows 7 elevated for spanish keyboards. This will need to be handled by Nethunter application for passing arguments. Also removed -- arguments since they were removed from hid-keyboard application. Signed-off-by: binkybear <binkybear@nethunter.com>
- Loading branch information
Showing
2 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/python | ||
import argparse | ||
import sys | ||
sys.path.append("/sdcard/files/modules/") | ||
from keyseed import * | ||
|
||
parser = argparse.ArgumentParser(description='Nethunter HID language/launcher') | ||
parser.add_argument('--us', help='Select US keyboard mapping', action='store_true') | ||
parser.add_argument('--fr', help='Select FR keyboard mapping', action='store_true') | ||
parser.add_argument('--es', help='Select ES keyboard mapping', action='store_true') | ||
parser.add_argument('--de', help='Select DE keyboard mapping', action='store_true') | ||
parser.add_argument('--wincmd', '-w', help='Windows CMD', action='store_true') | ||
parser.add_argument('--win7cmd', '-w7', help='Windows 7 CMD', action='store_true') | ||
parser.add_argument('--win8cmd','-w8', help='Windows 8 CMD', action='store_true') | ||
|
||
args = parser.parse_args() | ||
|
||
if (args.us): | ||
locale='us' | ||
elif (args.fr): | ||
locale='fr' | ||
elif (args.de): | ||
locale='de' | ||
elif (args.es): | ||
locale='es' | ||
|
||
if (args.wincmd): | ||
wincmd(locale) | ||
elif (args.win7cmd): | ||
win7cmd_elevated(byte, locale) | ||
elif (args.win8cmd): | ||
win8cmd_elevated(byte, locale) | ||
|
||
# open up payload file | ||
f = open("/sdcard/files/hid-cmd.conf", "rb") | ||
try: | ||
byte = f.read(1) | ||
while byte != "": | ||
byte = f.read(1) | ||
findinlist(byte, locale) | ||
|
||
finally: | ||
f.close() | ||
|
||
#Hit enter | ||
enterb() | ||
|
||
|
||
|