coffinxp / loxs

best tool for finding SQLi,XSS,LFi,OpenRedirect
281 stars 88 forks source link

can't initiate xss scan #34

Open CyberPro010 opened 4 hours ago

CyberPro010 commented 4 hours ago

when i start i see this error:

[i] Starting scan...

┌───────────────────────────────────────────────┐ │ → Scanning URL: https://site.com/search?q= │ └───────────────────────────────────────────────┘

Traceback (most recent call last): File "/home/user/tools/loxs/loxs.py", line 1754, in main() File "/home/user/tools/loxs/loxs.py", line 1747, in main handle_selection(choice) File "/home/user/tools/loxs/loxs.py", line 1724, in handle_selection run_xss_scanner() File "/home/user/tools/loxs/loxs.py", line 1153, in run_xss_scanner main() File "/home/user/tools/loxs/loxs.py", line 1143, in main vulnerable_urls, scanned = run_scan([url], payload_file, concurrency, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/tools/loxs/loxs.py", line 1003, in run_scan driver = webdriver.Chrome(service=driver_service, options=chrome_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init super().init( File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init super().init(command_executor=executor, options=options) File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 212, in init self.start_session(capabilities) File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.12/dist-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: This version of ChromeDriver only supports Chrome version 114 Current browser version is 129.0.6668.89 with binary path /usr/bin/chromium Stacktrace:

0 0x5642334134e3

1 0x564233142c76

2 0x56423317004a

3 0x56423316b4a1

4 0x564233168029

5 0x5642331a6ccc

6 0x5642331a647f

7 0x56423319dde3

8 0x5642331732dd

9 0x56423317434e

10 0x5642333d33e4

11 0x5642333d73d7

12 0x5642333e1b20

13 0x5642333d8023

14 0x5642333a61aa

15 0x5642333fc6b8

16 0x5642333fc847

17 0x56423340c243

18 0x7f65dc791732

HexShad0w commented 3 hours ago

Hello,

You didn't install chromedriver, download it and try again ;) also make sure to install all requirements :

pip install -r requirements.txt

hexsh1dow

ciznaa commented 3 hours ago

i have the same issue and i have chrome driver installed

HexShad0w commented 3 hours ago

Hello,

Can you send the version of chromedriver you have ?

Everything is explained on the readme file Make sure everything is good | If it still doesn't work, reinstall ChromeDriver and make sure to install all requirements

hexsh1dow

ciznaa commented 2 hours ago

ChromeDriver 126.0.6478.126

ciznaa commented 2 hours ago

when i reinstalled chromedriver while following the directions in the readme, it installs chromedriver 128.0.6613.119. with this version i get a different error message which reads as follows:

raceback (most recent call last): File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1754, in main() File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1747, in main handle_selection(choice) File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1724, in handle_selection run_xss_scanner() File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1153, in run_xss_scanner main() File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1143, in main vulnerable_urls, scanned = run_scan([url], payload_file, concurrency, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ciznaa/Documents/tools/loxs/loxs.py", line 1003, in run_scan driver = webdriver.Chrome(service=driver_service, options=chrome_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: WebDriver.init() got an unexpected keyword argument 'service'

this only happens when trying to do an XSS scan

HexShad0w commented 2 hours ago

Hey,

upgrade selenium :

pip install --upgrade selenium

hexsh1dow