Text Classification
Transformers
Safetensors
English
distilbert
cybersecurity
xss
security
web
payload-detection
web-security
Instructions to use kd7979148/XSS_Payload_Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kd7979148/XSS_Payload_Detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kd7979148/XSS_Payload_Detector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kd7979148/XSS_Payload_Detector") model = AutoModelForSequenceClassification.from_pretrained("kd7979148/XSS_Payload_Detector") - Notebooks
- Google Colab
- Kaggle
Delete #readme.txt
Browse files- #readme.txt +0 -17
#readme.txt
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
*requirements:
|
| 2 |
-
|
| 3 |
-
install python first and
|
| 4 |
-
pip install torch
|
| 5 |
-
pip install transformers
|
| 6 |
-
pip install flask
|
| 7 |
-
|
| 8 |
-
*how to use:
|
| 9 |
-
|
| 10 |
-
python test_server.py
|
| 11 |
-
python moniter.py
|
| 12 |
-
open browser and enter:
|
| 13 |
-
http://127.0.0.1:8080/?q=abcde : OK
|
| 14 |
-
http://127.0.0.1:8080/?q=<img src='x' onerror='alert("xss")'> :this will be detected and logged.
|
| 15 |
-
|
| 16 |
-
*inference_bert_url.py
|
| 17 |
-
It's just a simple cli tool that judge your input contains xss payloads.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|