Coder Social home page Coder Social logo

doomguy / xsscan Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 25 KB

A simple script to detect unescaped characters in a web application for e.g. Cross Site Scripting (XSS) attacks.

License: The Unlicense

Python 76.92% Shell 23.08%
hacking security security-tools security-scanner cross-site-scripting xss xss-detection xss-scanner bugbounty injection

xsscan's Introduction

xsscan

A simple script to detect unescaped characters in a web application for e.g. Cross Site Scripting (XSS) attacks.

Only GET requests are supported at the moment.

Usage

To scan for a single character just use something like this:

$ ./xsscan.py lib/less_than.lst "http://example.com/page.php?param=" | uniq -c
      2 <|<
      2 <|%3c
      2 <|%3C 

The format is as follows: number of found insertion points, the searched for character, the used payload.

To scan for all special characters use the bash script xsscan_all.sh:

$ ./xsscan_all.sh 'example.com/search?q='
[*] Scanning: example.com/search?q=
      2 &|&
      1 &|%26
      2 @|@
      2 @|%40
      2 :|:
      2 :|%3a
      2 :|%3A
      2 $|$
      2 $|%24
      1 "|"
      1 "|%22
      5 =|=
      2 !|!
      2 !|%21
      2 `|`
      2 `|%60
      7 -|-
      7 -|%2d
      7 -|%2D
      2 %|%
      2 %|%25
      7 .|.
      7 .|%2e
      7 .|%2E
      5 +|+
      2 +|%2b
      2 +|%2B
      7 ?|?
      2 ?|%3f
      2 ?|%3F
      2 ;|;
      2 ;|%3b
      2 ;|%3B
      2 '|'
      2 '|%27
      7 /|/
      2 /|%2f
      2 /|%2F
[*] All done. Exiting..

xsscan's People

Contributors

doomguy avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

xsscan's Issues

Escaping problems with parenthesis

XSS)XSS
Traceback (most recent call last):
File "./xsscan.py", line 24, in
if re.search('XSS'+char+'XSS', line) :
File "/usr/lib/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
File "/usr/lib/python2.7/re.py", line 251, in _compile
raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis


XSS(XSS
Traceback (most recent call last):
File "./xsscan.py", line 24, in
if re.search('XSS'+char+'XSS', line) :
File "/usr/lib/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
File "/usr/lib/python2.7/re.py", line 251, in _compile
raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis

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.