iamunixtz / LazyXss

Automation tool to testing and confirm the xss vulnerability.
124 stars 27 forks source link

Error, help pls! #1

Closed yemrees closed 1 month ago

yemrees commented 1 month ago

Hi, I am getting an error like this.

Do you want to test a single URL or a file of URLs? (single/file): single Enter the single URL to test: https://jjjjjjjjjjjjjjjjjjjjjj.com/blog?s=test123 Enter the file path for payloads (default: payloads.txt): Enter the number of times to encode the payloads (or press Enter to skip encoding): Do you want to use a proxy? (y/n): n Enter delay between requests in seconds (0 for no delay):

2024-09-10 14:11:50,164 - INFO - [info] Loaded 1 URLs and 528 payloads. 2024-09-10 14:11:50,164 - INFO - [info] Server started on port 46969. 2024-09-10 14:11:50,164 - INFO - [info] Testing URL: https://jjjjjjjjjjjjjjjjjjjjjj.com/blog?s=test123 2024-09-10 14:11:50,167 - INFO - [info] Server started on port 46969. 2024-09-10 14:11:51,008 - WARNING - The chromedriver version (128.0.6613.119) detected in PATH at /usr/bin/chromedriver might not be compatible with the detected chrome version (120.0.6099.224); currently, chromedriver 120.0.6099.109 is recommended for chrome 120.*, so it is advised to delete the driver in PATH and retry Traceback (most recent call last): File "/root/Desktop/Tools/LazyXss/lazyxss.py", line 189, in main() File "/root/Desktop/Tools/LazyXss/lazyxss.py", line 180, in main test_xss(urls, payloads, proxies, encode_times, delay) File "/root/Desktop/Tools/LazyXss/lazyxss.py", line 113, in test_xss is_vuln, alert_text = check_xss_with_selenium(url, f"?search={test_payload}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/Desktop/Tools/LazyXss/lazyxss.py", line 82, in check_xss_with_selenium driver = webdriver.Chrome(service=service, options=chrome_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init super().init( File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init super().init(command_executor=executor, options=options) File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 212, in init self.start_session(capabilities) File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute self.error_handler.check_response(response) File "/root/Desktop/Tools/LazyXss/venv/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace:

0 0x55e1b0fda86a

1 0x55e1b0ca8e50

2 0x55e1b0ce0e05

3 0x55e1b0cdcc78

4 0x55e1b0d2964e

5 0x55e1b0d28e66

6 0x55e1b0d1d233

7 0x55e1b0ceb093

8 0x55e1b0cec09e

9 0x55e1b0fa1acb

10 0x55e1b0fa5a81

11 0x55e1b0f8d695

12 0x55e1b0fa65f2

13 0x55e1b0f7286f

14 0x55e1b0fc9668

15 0x55e1b0fc9832

16 0x55e1b0fd965c

17 0x7f95f84bcdbb

iamunixtz commented 1 month ago

Hi the problem u facing is ur using 2 differnt version of chrome drive and google chrome chromedriver version (128.0.6613.119) detected in PATH at /usr/bin/chromedriver might not be compatible with the detected chrome version (120.0.6099.224);

All must be same version .Thanks You

yemrees commented 1 month ago

ok,thanks. If there was a problem, I saw it. :)