Giter VIP home page Giter VIP logo

anmolksachan / crossinjector Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 9.0 8 KB

Cross Injector — A Python Script for Cross-Site Scripting (XSS) Detection

Home Page: https://anmolksachan.medium.com/cross-injector-a-python-script-for-cross-site-scripting-xss-detection-c8f097941c32

License: MIT License

Python 100.00%
automation pentest-tool pentesters pentesting tool waybackurls xss xss-detection

crossinjector's Introduction

CrossInjector by @FR13ND0x7f

DEMO

CrossInjector is a Python tool to scan a list of URLs for Cross-Site Scripting (XSS) vulnerabilities. It uses Selenium WebDriver and ChromeDriver to execute JavaScript code and identify if a given URL is vulnerable to XSS attacks.

Prerequisites

To use CrossInjector, you need to have the following installed:

  • Python 3
  • Google Chrome browser
  • ChromeDriver
  • Selenium Python bindings
  • webdriver_manager
  • termcolor

You can install the required Python packages by running:

pip install -r requirements.txt
Usage

To use CrossInjector, run the following command:

python CrossInjector.py -p <path-to-payloads-file> -u <path-to-urls-file>
Replace <path-to-payloads-file> with the path to a file containing XSS payloads, and <path-to-urls-file> with the path to a file containing a list of URLs to scan.

Contact

Shoot my DM : @FR13ND0x7F

Special Thanks

Lots of online resources.

Note

There are none so far.

Want to support my work?

Give me a Star in the repository or follow me @FR13ND0x7F , thats enough for me :P

License

CrossInjector is licensed under the MIT License.

Free Software, Hell Yeah!

crossinjector's People

Contributors

anmolksachan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

crossinjector's Issues

how to fix this issue in kalilinux

Traceback (most recent call last):
File "/home/kali/Downloads/CrossInjector/CrossInjector.py", line 178, in
main()
File "/home/kali/Downloads/CrossInjector/CrossInjector.py", line 158, in main
driver = webdriver.Chrome(service=s)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in init
super().init(
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in init
super().init(
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/kali/.local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
Stacktrace:
#0 0x55e84cbcc243
#1 0x55e84c9907a6
#2 0x55e84c9b794a
#3 0x55e84c9b549b
#4 0x55e84c9f72a7
#5 0x55e84c9f68cf
#6 0x55e84c9ede53
#7 0x55e84c9c09ea
#8 0x55e84c9c1b2e
#9 0x55e84cc20d5e
#10 0x55e84cc24a80
#11 0x55e84cc068b0
#12 0x55e84cc25b63
#13 0x55e84cbf7f75
#14 0x55e84cc48998
#15 0x55e84cc48b27
#16 0x55e84cc63c23
#17 0x7fc4a218dfd4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.