Skip to content

Commit 48a88c9

Browse files
committed
Aux doesn't have rand_text_alpha
1 parent 5fccf98 commit 48a88c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/smb/psexec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def initialize(info = {})
3636
# @return service_name [String] the name of the service.
3737
def service_name
3838
@service_name ||= datastore['SERVICE_NAME']
39-
@service_name ||= rand_text_alpha(8)
39+
@service_name ||= Rex::Text.rand_text_alpha(8)
4040
end
4141

4242
# Retrieve the SERVICE_DISPLAY_NAME option, generate a random
@@ -45,7 +45,7 @@ def service_name
4545
# @return service_display_name [String] the display name of the service.
4646
def display_name
4747
@display_name ||= datastore['SERVICE_DISPLAY_NAME']
48-
@display_name ||= rand_text_alpha(16)
48+
@display_name ||= Rex::Text.rand_text_alpha(16)
4949
end
5050

5151
# Retrieve the SERVICE_DESCRIPTION option

0 commit comments

Comments
 (0)