Skip to content

Commit 1d0d558

Browse files
committed
Remove datastore options
1 parent 7004c50 commit 1d0d558

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/exploits/windows/smb/psexec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def initialize(info = {})
7777
OptBool.new('MOF_UPLOAD_METHOD', [true, "Use WBEM instead of RPC, ADMIN$ share will be mandatory. ( Not compatible with Vista+ )", false]),
7878
OptBool.new('ALLOW_GUEST', [true, "Keep trying if only given guest access", false]),
7979
OptString.new('SERVICE_FILENAME', [false, "Filename to to be used on target for the service binary",nil]),
80-
OptString.new('SERVICE_DESCRIPTION', [false, "Service description to to be used on target for pretty listing",nil]),
81-
OptString.new('SERVICE_NAME', [false, "Servicename to to be used on target for the service binary and manager",nil]),
82-
OptString.new('SERVICE_DISPLAYNAME', [false, "Service displayname to to be used on target for the service manager",nil])
8380
], self.class)
8481
end
8582

@@ -226,7 +223,7 @@ def exploit
226223
file_location = "\\\\127.0.0.1\\#{smbshare}\\#{fileprefix}\\#{filename}"
227224
end
228225

229-
psexec(file_location, false, servicedescription, servicename, displayname)
226+
psexec(file_location, false)
230227

231228
unless datastore['SERVICE_PERSIST']
232229
print_status("Deleting \\#{filename}...")

0 commit comments

Comments
 (0)