Open Ahmex000 opened 9 months ago
USER_AGENTS = [ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Edge/91.0.864.37", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Firefox/89.0",
] link = https://mywebsite.com result = detect_xss(link) def detect_xss(link): try: response = requests.head(link, timeout=5) response.raise_for_status()
And Respons is $ python3 Detection_Functions_XSS.py File "/home/kali/Vulnerability-detection-functions/Detection_Functions_XSS/Detection_Functions_XSS.py", line 16 link = https://mywebsite.com ^ SyntaxError: invalid syntax
┌──(kali㉿kali)-[~/Vulnerability-detection-functions/Detection_Functions_XSS]
Hello Ahmed. I am happy that you are using my program I have fixed the error. Now re-download the file Detection_Functions_XSS.py Or open the file and edit line 27 and replace it with the following line encoded_payload = '">"'
$ python3 Detection_Functions_XSS.py -u https://www.vulnweb.com/search?q=123 File "/home/kali/Vulnerability-detection-functions/Detection_Functions_XSS/Detection_Functions_XSS.py", line 27 encoded_payload = "">"" ^ SyntaxError: invalid syntax
i dont know how use it *tryed write url as var in python code [ link = www.exa.com ] i dont find any respons