A simple Python package for validation
Project description
DCValidator
dcvalidator is a Python package designed for educational purposes to showcase Dependency Confusion attacks. It is not intended for real-world use and should not be used in production systems.
Installation
pip install dcvalidator
Iran National Code Validation
The package provides a function is_nationalcode for validating Iran National Codes. The function takes a string representing the National Code and returns True if the code is valid and False otherwise.
Executing the is_nationalcode function in this package will simulate a Dependency Confusion attack for educational purposes. As part of this simulation, the code intentionally runs an OS command to obtain directory information.
Please Note:
- This simulated attack is for educational use only.
- Do not use this tool in a production environment.
- The project maintainers are not responsible for any misuse of this tool.
from dcvalidator import is_nationalcode
# Validate Iran National Code
result = is_nationalcode('1234567890')
if result:
print("Valid National Code")
else:
print("Invalid National Code")
Important Notes
-
Educational Purpose Only: This project is meant for educational purposes and should not be used with malicious intent.
-
Responsible Disclosure: If you discover any security vulnerabilities or potential risks, please follow responsible disclosure practices and report them to the maintainers.
Contributing
Contributions are welcome! If you find issues or have improvements, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dcvalidator-1.0.1.tar.gz.
File metadata
- Download URL: dcvalidator-1.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4a76a5db025e895d4d6911b9f2ee0e3fbbb0630730a0f0087fe76877eb8ef2
|
|
| MD5 |
d3ba211908fdb3fc0f7a10859362d212
|
|
| BLAKE2b-256 |
ce1b76adcad2c138c2a73f753c0e9e223baf5841006e4e02dda10775af5e9cc5
|
File details
Details for the file dcvalidator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: dcvalidator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b9f6b0fe56fc421a2efd829569714339ab3251e449841a22ef215a1379816af
|
|
| MD5 |
e1cda42ea753347c8d4864722f65bc82
|
|
| BLAKE2b-256 |
023868f9ea09c473cc39d17bc2a23bd4d77fbe7688959fe2a179584ea3655483
|