absholi7ly / Vulnerability-detection-functions

Vulnerability detection funcVulnerability-detection-functions Vulnerability Detection Functionality The script currently focuses on detecting cross-site scripting (XSS) vulnerabilities in web links. Additional functions will be developed to detect vulnerabilities so you can incorporate them into your script.
GNU General Public License v2.0
6 stars 1 forks source link

SyntaxError: invalid syntax #1

Open Ahmex000 opened 9 months ago

Ahmex000 commented 9 months ago

$ 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

Ahmex000 commented 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",

... Add more user agents as neede

] 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]

absholi7ly commented 9 months ago

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 = '">"'