Skip to content

Commit

Permalink
issue-49 continue iterate on all version-identifying URLs until a ver…
Browse files Browse the repository at this point in the history
…sion is actually found

Change-Id: I9ee4ff217cb69e62cf058a5a9bbf89c94da1efb1
  • Loading branch information
iammyr committed Oct 17, 2018
1 parent 6138cae commit 9bf691f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drupalgeddon2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,11 @@ def verbose(text)
end

# Done! ...if a full known version, else keep going... may get lucky later!
break if not $drupalverion.end_with?("x")
break if not $drupalverion.end_with?("x") and not $drupalverion.empty?
end

# Check request response, not allowed
elsif response.code == "403"
if response.code == "403" and $drupalverion.empty?
tmp = $verbose ? " [HTTP Size: #{response.size}]" : ""
puts success("Found : #{uri} (HTTP Response: #{response.code})#{tmp}")

Expand Down

0 comments on commit 9bf691f

Please sign in to comment.