Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages