Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcvalidator-1.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcvalidator-1.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file dcvalidator-1.0.2.tar.gz.

File metadata

  • Download URL: dcvalidator-1.0.2.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

Hashes for dcvalidator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a60993819775c6a85d56305b259deb46444d315b7b8dd85b7bf91e6089f59cf0
MD5 9ce1c5f3fd2ffbd7fc3d922274dea50e
BLAKE2b-256 7a43663272e63e5234c07431c8edca2e368964577309c048419c88d7011e9f2d

See more details on using hashes here.

File details

Details for the file dcvalidator-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dcvalidator-1.0.2-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

Hashes for dcvalidator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8ecccd2ace3d455b7174af889e63efd1c08c4b9437d05157e2d63d50a44e25
MD5 44e157ee3c41b08df632b71dacbb2fe7
BLAKE2b-256 21e458895fb892db0cfb8c55ca087a08976bd044837ed233119d5ba96f7e5a1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page