Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove ternary assignment

  • Loading branch information...
commit c0d746a36a0afdf863ef4b70bd4bb8dec51a9932 1 parent 94f8a41
RageLtMan authored
Showing with 20 additions and 16 deletions.
  1. +20 −16 modules/auxiliary/scanner/http/vhost_scanner.rb
View
36 modules/auxiliary/scanner/http/vhost_scanner.rb
@@ -51,22 +51,26 @@ def initialize(info = {})
end
def run_host(ip)
- valstr = ::File.file?(datastore['SUBDOM_LIST']) ?
- IO.readlines(datastore['SUBDOM_LIST']).map {|e| e.gsub(".#{datastore['DOMAIN']}", "").chomp} :
- [
- "admin",
- "services",
- "webmail",
- "console",
- "apps",
- "mail",
- "intranet",
- "intra",
- "spool",
- "corporate",
- "www",
- "web"
- ]
+ if ::File.file?(datastore['SUBDOM_LIST'])
+ valstr = IO.readlines(datastore['SUBDOM_LIST']).map {
+ |e| e.gsub(".#{datastore['DOMAIN']}", "").chomp
+ }
+ else
+ valstr = [
+ "admin",
+ "services",
+ "webmail",
+ "console",
+ "apps",
+ "mail",
+ "intranet",
+ "intra",
+ "spool",
+ "corporate",
+ "www",
+ "web"
+ ]
+ end
datastore['QUERY'] ? tquery = queryparse(datastore['QUERY']): nil
datastore['HEADERS'] ? thead = headersparse(datastore['HEADERS']) : nil
Please sign in to comment.
Something went wrong with that request. Please try again.