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.
2 parents d75525e + 6877f39 commit 7af6c33Copy full SHA for 7af6c33
metasploit/peass.rb
@@ -270,7 +270,7 @@ def load_peass
270
if datastore['CUSTOM_URL'] != ""
271
url_peass = datastore['CUSTOM_URL']
272
else
273
- url_peass = datastore['WINPEASS'] ? "https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany_ofs.exe" : "https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh"
+ url_peass = datastore['WINPEASS'].to_s.strip.downcase == 'true' ? "https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASany_ofs.exe" : "https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh"
274
end
275
# If URL is set, check if it is a valid URL or local file
276
if url_peass.include?("http://") || url_peass.include?("https://")
0 commit comments