We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fccf98 commit 48a88c9Copy full SHA for 48a88c9
lib/msf/core/exploit/smb/psexec.rb
@@ -36,7 +36,7 @@ def initialize(info = {})
36
# @return service_name [String] the name of the service.
37
def service_name
38
@service_name ||= datastore['SERVICE_NAME']
39
- @service_name ||= rand_text_alpha(8)
+ @service_name ||= Rex::Text.rand_text_alpha(8)
40
end
41
42
# Retrieve the SERVICE_DISPLAY_NAME option, generate a random
@@ -45,7 +45,7 @@ def service_name
45
# @return service_display_name [String] the display name of the service.
46
def display_name
47
@display_name ||= datastore['SERVICE_DISPLAY_NAME']
48
- @display_name ||= rand_text_alpha(16)
+ @display_name ||= Rex::Text.rand_text_alpha(16)
49
50
51
# Retrieve the SERVICE_DESCRIPTION option
0 commit comments