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
Update README.md
Browse files
README.md
CHANGED
|
@@ -90,7 +90,7 @@ Run the example Flask server:
|
|
| 90 |
```bash
|
| 91 |
python test_server.py
|
| 92 |
```
|
| 93 |
-
|
| 94 |
Then open:
|
| 95 |
|
| 96 |
```text
|
|
@@ -102,11 +102,10 @@ Example XSS payload:
|
|
| 102 |
```text
|
| 103 |
http://127.0.0.1:8080/?q=<img src='x' onerror='alert("xss")'>
|
| 104 |
```
|
| 105 |
-
|
| 106 |
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
The request will be reflected by the test page and analyzed by the monitoring service.
|
| 111 |
|
| 112 |
## Model Files
|
|
|
|
| 90 |
```bash
|
| 91 |
python test_server.py
|
| 92 |
```
|
| 93 |
+

|
| 94 |
Then open:
|
| 95 |
|
| 96 |
```text
|
|
|
|
| 102 |
```text
|
| 103 |
http://127.0.0.1:8080/?q=<img src='x' onerror='alert("xss")'>
|
| 104 |
```
|
| 105 |
+

|
| 106 |
|
| 107 |
|
| 108 |
+

|
|
|
|
| 109 |
The request will be reflected by the test page and analyzed by the monitoring service.
|
| 110 |
|
| 111 |
## Model Files
|