Skip to content

Commit

Permalink
With feeling...
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatters-r7 committed Dec 18, 2019
1 parent f9fbe96 commit b36c191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/exploits/windows/local/comahawk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def initialize(info = {})
end

def exploit
exploit_name = datastore['EXPLOIT_NAME'] || Rex::Text.rand_text_alpha((rand(6..14)))
payload_name = datastore['PAYLOAD_NAME'] || Rex::Text.rand_text_alpha((rand(6..14)))
exploit_name = datastore['EXPLOIT_NAME'] || Rex::Text.rand_text_alpha(6..14)
payload_name = datastore['PAYLOAD_NAME'] || Rex::Text.rand_text_alpha(6..14)
exploit_name = "#{exploit_name}.exe" unless exploit_name.end_with?('.exe')
payload_name = "#{payload_name}.exe" unless payload_name.end_with?('.exe')
temp_path = datastore['WRITABLE_DIR'] || session.sys.config.getenv('TEMP')
Expand Down

0 comments on commit b36c191

Please sign in to comment.