Skip to content

Commit f804a58

Browse files
Add getsystem technique 6 Named Pipe Impersonation (Efs variant - AKA EfsPotato)
1 parent 47fcf54 commit f804a58

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/rex/post/meterpreter/extensions/priv/priv.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def self.extension_id
3030
named_pipe_2: 2,
3131
token_dup: 3,
3232
named_pipe_rpcss: 4,
33-
named_pipe_print_spooler: 5
33+
named_pipe_print_spooler: 5,
34+
named_pipe_efs: 6
3435
}.freeze
3536

3637
#

lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/elevate.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Console::CommandDispatcher::Priv::Elevate
2424
ELEVATE_TECHNIQUE_SERVICE_TOKENDUP = 3
2525
ELEVATE_TECHNIQUE_SERVICE_NAMEDPIPE_RPCSS = 4
2626
ELEVATE_TECHNIQUE_NAMEDPIPE_PRINTSPOOLER = 5
27+
ELEVATE_TECHNIQUE_NAMEDPIPE_EFS = 6
2728

2829
ELEVATE_TECHNIQUE_DESCRIPTION =
2930
[
@@ -32,7 +33,8 @@ class Console::CommandDispatcher::Priv::Elevate
3233
'Named Pipe Impersonation (Dropper/Admin)',
3334
'Token Duplication (In Memory/Admin)',
3435
'Named Pipe Impersonation (RPCSS variant)',
35-
'Named Pipe Impersonation (PrintSpooler variant)'
36+
'Named Pipe Impersonation (PrintSpooler variant)',
37+
'Named Pipe Impersonation (EFSRPC variant - AKA EfsPotato)'
3638
]
3739

3840
#

modules/post/windows/escalate/getsystem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(info = {})
3333
)
3434

3535
register_options([
36-
OptInt.new('TECHNIQUE', [false, "Specify a particular technique to use (1-5), otherwise try them all", 0])
36+
OptInt.new('TECHNIQUE', [false, "Specify a particular technique to use (1-6), otherwise try them all", 0])
3737
])
3838
end
3939

0 commit comments

Comments
 (0)