LaraRos / detect_xss

A quick example of detecting malicious XSS strings using kNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detect_xss

A quick example of detecting malicious XSS strings using kNN

training.txt contains the training data. The main-function then asks the user for an input, to which it will determine whether the string is malicious or not.

Made with Python.

Some quick examples

  • hello
  • <script>alert(${document.cookie})</script>
  • <IMG SRC=&#0000106&#0000097&#0000118&#0000097&#0000115&#0000099&#0000114&#0000105&#0000112&#0000116&#0000058&#0000097&#0000108&#0000101&#0000114&#0000116&#0000040&#0000039&#0000088&#0000083&#0000083&#0000039&#0000041>

About

A quick example of detecting malicious XSS strings using kNN


Languages

Language:Python 100.0%