File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
modules/exploits/windows/smb Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def exploit
81
81
fail_with ( Exploit ::Failure ::BadConfig , "Select an x86 target and payload with RUN_WOW64 enabled" )
82
82
end
83
83
84
- #Try and authenticate with given credentials
84
+ # Try and authenticate with given credentials
85
85
if connect
86
86
begin
87
87
smb_login
@@ -90,9 +90,8 @@ def exploit
90
90
fail_with ( Exploit ::Failure ::NoAccess , "#{ peer } - Unable to authenticate with given credentials: #{ autherror } " )
91
91
end
92
92
# Execute the powershell command
93
+ print_status ( "#{ peer } - Executing the payload..." )
93
94
begin
94
- print_status ( "#{ peer } - Executing the payload..." )
95
- vprint_good ( command )
96
95
return psexec ( command )
97
96
rescue StandardError => exec_command_error
98
97
disconnect
You can’t perform that action at this time.
0 commit comments