UDdup - URLs Deduplication Tool
The tool gets a list of URLs, and removes "duplicate" pages in the sense of URL patterns that are probably repetitive and points to the same web template.
For example:
https://www.example.com/product/123
https://www.example.com/product/456
https://www.example.com/product/123?is_prod=false
https://www.example.com/product/222?is_debug=true
All the above are probably points to the same product "template". Therefore it should be enough to scan only some of these URLs by our various scanners.
The result of the above after UDdup should be:
https://www.example.com/product/123?is_prod=false
https://www.example.com/product/222?is_debug=true
Why do I need it?
Mostly for better (automated) reconnaissance process, with less noise (for both the tester and the target).
Examples
Take a look at demo.txt which is the raw URLs file which results in demo-results.txt.
Installation
With pip (Recommended)
pip install uddup
Manual (from code)
# Clone the repository.
git clone https://github.com/rotemreiss/uddup.git
# Install the Python requirements.
cd uddup
pip install -r requirements.txt
Usage
uddup -u demo.txt -o ./demo-result.txt
More Usage Options
uddup -h
| Short Form | Long Form | Description |
|---|---|---|
| -h | --help | Show this help message and exit |
| -u | --urls | File with a list of urls |
| -o | --output | Save results to a file |
| -s | --silent | Print only the result URLs |
| -fp | --filter-path | Filter paths by a given Regex |
Filter Paths by Regex
Allows filtering custom paths pattern.
For example, if we would like to filter all paths that starts with /product we will need to run:
# Single Regex
uddup -u demo.txt -fp "^product"
Input:
https://www.example.com/
https://www.example.com/privacy-policy
https://www.example.com/product/1
https://www.example2.com/product/2
https://www.example3.com/product/4
Output:
https://www.example.com/
https://www.example.com/privacy-policy
Advanced Regex with multiple path filters
uddup -u demo.txt -fp "(^product)|(^category)"
Contributing
Feel free to fork the repository and submit pull-requests.
Support
Want to say thanks? :) Message me on Linkedin
License
Metadata
Release files for uddup 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uddup-0.9.3.tar.gz | 4.9 kB | Without provenance | Details for uddup-0.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uddup-0.9.3-py3-none-any.whl | Python 3 | none | any | Details for uddup-0.9.3-py3-none-any.whl |
Total release size: 10.8 kB
Release files / uddup-0.9.3.tar.gz
| Download URL | uddup-0.9.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2822760db2c81fe5f509b6b6c4a45e9f50443cb29be5ffcfc46c7002b6a9c998
|
|
BLAKE2b-256 checksum How to use checksums |
04f86cd9b5c6b80025cd12a6ffe99c41306e4c4e27110f7946b1688ada07d42e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Release files / uddup-0.9.3-py3-none-any.whl
| Download URL | uddup-0.9.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb94a7a9bac0b8152a0c485819b893a74d1ddab82f900300c1f71346ad41ae38
|
|
BLAKE2b-256 checksum How to use checksums |
4ffd642340940f8f8f6e5cdd5008a8860e14b6e719a29abec7e7b933683b717a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Security for uddup 0.9.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.