def get_flash_version(user_agent): url = "https://www.whatismybrowser.com/detect/flash" headers = {"User-Agent": user_agent} response = requests.get(url, headers=headers) soup = BeautifulSoup(response.text, "html.parser") flash_version = soup.find("span", {"class": "flash-version"}).text.strip() return flash_version
* **GET /flash-version** ```http GET /flash-version HTTP/1.1 Host: example.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3 ```http HTTP/1.1 200 OK Content-Type: application/json
### Request/Response Examples
{ "vulnerable": true, "alertMessage": "Your Flash version is vulnerable to attacks!" }
* **POST /compare-flash-version** ```http POST /compare-flash-version HTTP/1.1 Host: example.com Content-Type: application/json haveubeenflashed new
* **GET /flash-version**: Retrieves the user's Flash version * **POST /compare-flash-version**: Compares the user's Flash version with known vulnerable versions
### Endpoints
if __name__ == "__main__": main() function getFlashVersion() { var flashVersion = navigator.plugins["Shockwave Flash"].version; return flashVersion; }
Информация, размещенная на сайте, не является публичной офертой
Copyright © 2005-2026 by WWW.FORSIGN.RU