Skip to content

Commit 795ea5b

Browse files
Royce DavisRoyce Davis
authored andcommitted
Fix randomize of dislayname and removed filename from command.rb
1 parent 7fa8717 commit 795ea5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/smb/command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ def check_cleanup(smbshare, ip, text)
153153
# This code was stolen straight out of psexec.rb. Thanks very much HDM and all who contributed to that module!!
154154
# Instead of uploading and runing a binary. This method runs a single windows command fed into the #{command} paramater
155155
def psexec(smbshare, command)
156-
filename = "filename"
157156
servicename = "servicename"
158157
simple.disconnect(smbshare)
159158

@@ -180,7 +179,8 @@ def psexec(smbshare, command)
180179
return
181180
end
182181

183-
displayname = "displayname"
182+
#displayname = "displayname"
183+
displayname = Rex::Text.rand_text_alpha(16)
184184
holdhandle = scm_handle
185185
svc_handle = nil
186186
svc_status = nil

0 commit comments

Comments
 (0)