Aux doesn't have rand_text_alpha
parent
5fccf986f8
commit
48a88c91d9
|
@ -36,7 +36,7 @@ module Exploit::Remote::SMB::Psexec
|
||||||
# @return service_name [String] the name of the service.
|
# @return service_name [String] the name of the service.
|
||||||
def service_name
|
def service_name
|
||||||
@service_name ||= datastore['SERVICE_NAME']
|
@service_name ||= datastore['SERVICE_NAME']
|
||||||
@service_name ||= rand_text_alpha(8)
|
@service_name ||= Rex::Text.rand_text_alpha(8)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Retrieve the SERVICE_DISPLAY_NAME option, generate a random
|
# Retrieve the SERVICE_DISPLAY_NAME option, generate a random
|
||||||
|
@ -45,7 +45,7 @@ module Exploit::Remote::SMB::Psexec
|
||||||
# @return service_display_name [String] the display name of the service.
|
# @return service_display_name [String] the display name of the service.
|
||||||
def display_name
|
def display_name
|
||||||
@display_name ||= datastore['SERVICE_DISPLAY_NAME']
|
@display_name ||= datastore['SERVICE_DISPLAY_NAME']
|
||||||
@display_name ||= rand_text_alpha(16)
|
@display_name ||= Rex::Text.rand_text_alpha(16)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Retrieve the SERVICE_DESCRIPTION option
|
# Retrieve the SERVICE_DESCRIPTION option
|
||||||
|
|
Loading…
Reference in New Issue