https://github.com/apogiatzis/powsolver
A proof of work puzzle solver for CTF challenges
https://github.com/apogiatzis/powsolver
challenge crypto cryptography ctf hashing pow proofofwork python solver
Last synced: 10 months ago
JSON representation
A proof of work puzzle solver for CTF challenges
- Host: GitHub
- URL: https://github.com/apogiatzis/powsolver
- Owner: apogiatzis
- License: mit
- Created: 2020-07-05T03:43:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:33:18.000Z (over 3 years ago)
- Last Synced: 2025-05-26T13:53:56.289Z (about 1 year ago)
- Topics: challenge, crypto, cryptography, ctf, hashing, pow, proofofwork, python, solver
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoWSolver (WIP)
[](https://badge.fury.io/py/powsolver)
[](https://github.com/psf/black)
[](http://makeapullrequest.com)
A proof of work puzzle solver mainly for CTF challenges and whatnot.
## Getting Started
You can get started using `powsolver` by installing it through pip.
```
pip install powsolver
```
## Usage
The main component of the powsolver package is the `PoWSolver` class which encapsulates the main functionality.
Here is a basic usage example of the powsolver:
```python
from powsovler import PoWSolver
solver = PoWSolver()
solver.parse(
"Please submit a printable string X, such that {alg}(X)[{start:d}:] = {target} and len(X) = {len}",
"Please submit a printable string X, such that sha256(X)[-6:] = 86d113 and len(X) = 11"
)
sol = solver.sol()
```
Exampled of more elaborated usage can be found in the [examples](./examples/) folder.
## Running the tests
### :TODO:
## Contributing
Any PRs are welcome!
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/apogiatzis/powsolver/tags).
## Authors
* **Antreas Pogiatzis** - *Initial work*
See also the list of [contributors](https://github.com/apogiatzis/powsolver/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details