Skip to content

Commit f4c739c

Browse files
committed
check if running as system
1 parent 994f006 commit f4c739c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/exploits/windows/local/wmi_persistence.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def exploit
9191
return
9292
end
9393

94+
if is_system?
95+
print_error("This module cannot run as System")
96+
return
97+
end
98+
9499
host = session.session_host
95100
print_status('Installing Persistence...')
96101

0 commit comments

Comments
 (0)