Defangs and refangs malicious URLs
Usage
As a script: use the defang command to defang or “refang” content, supporting both stdin/stdout streams as well as to/from files on disk:
$ echo http://evil.example.com/malicious.php | defang hXXp://evil.example[.]com/malicious.php
As a library:
>>> from defang import defang >>> url = "http://evil.example.com/malicious.php" >>> defang(url) 'hXXp://evil.example[.]com/malicious.php'
Releases
- 0.3.0:
added some regex fixes and arbitrary protocol defanging
Release files for defang 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| defang-0.3.0.tar.gz | 3.3 kB | Details |
Release files / defang-0.3.0.tar.gz
| Download URL | defang-0.3.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c5810cb46ae6f76b9e35f68d5a71a1e502dc6d3b7a3f661986eaef01bd12309
|
|
BLAKE2b-256 checksum How to use checksums |
ed814e4c8b9ef4ffe6ad1a89bd6dec516e5255e2598884fb32a57be9fa6e7027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |