Skip to content

Commit a3fbf27

Browse files
committed
Reinstated cleanup
1 parent b5b4715 commit a3fbf27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/local/always_install_elevated.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def cleanup
107107
if @executed
108108
begin
109109
print_status("Deleting MSI...")
110-
#file_rm(@msi_destination)
110+
file_rm(@msi_destination)
111111
rescue Rex::Post::Meterpreter::RequestError => e
112112
print_error(e.to_s)
113113
print_error("Failed to delete MSI #{@msi_destination}, manual cleanup may be required.")
114114
end
115115

116116
begin
117117
print_status("Deleting Payload...")
118-
#file_rm(@payload_destination)
118+
file_rm(@payload_destination)
119119
rescue Rex::Post::Meterpreter::RequestError => e
120120
print_error(e.to_s)
121121
print_error("Failed to delete payload #{@payload_destination}, this is expected if the exploit is successful, manual cleanup may be required.")

0 commit comments

Comments
 (0)