Skip to content

Commit

Permalink
Changed name to a more fitting one
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroferretti committed Apr 7, 2019
1 parent d45e36f commit 2d9a302
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 16 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# CTF Tools [![Build Status](https://travis-ci.org/pietroferretti/ctftools.svg?branch=master)](https://travis-ci.org/pietroferretti/ctftools) [![Coverage Status](https://coveralls.io/repos/github/pietroferretti/ctftools/badge.svg?branch=master)](https://coveralls.io/github/pietroferretti/ctftools?branch=master) [![pypi](https://img.shields.io/pypi/v/ctftools.svg?style=flat)](https://pypi.org/project/ctftools/) ![Python versions](https://img.shields.io/pypi/pyversions/ctftools.svg?style=flat)
# wedgedriver [![Build Status](https://travis-ci.org/pietroferretti/ctftools.svg?branch=master)](https://travis-ci.org/pietroferretti/ctftools) [![Coverage Status](https://coveralls.io/repos/github/pietroferretti/ctftools/badge.svg?branch=master)](https://coveralls.io/github/pietroferretti/ctftools?branch=master) [![pypi](https://img.shields.io/pypi/v/ctftools.svg?style=flat)](https://pypi.org/project/ctftools/) ![Python versions](https://img.shields.io/pypi/pyversions/ctftools.svg?style=flat)

I wrote some simple tools to make my life easier with the most common cookie-cutter ctfs.
`wedgedriver` drives wedges in insecure cryptography schemes.

All the tools are licensed under the MIT License.

## Installation

```
pip install ctftools
pip install wedgedriver
```

`wedgedriver` supports both Python 2 and 3.


## Usage
**TODO**

Expand Down
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ TODO:
- xortools function that takes a string we know exists in the plaintext to simplify things (e.g. 'flag{')
- rsatools
- prng: rand(), mersenne twister
rand() -> C e java
mersenne twister -> python, e aggiungere resilienza a output mancati (check di quanti ne mancano, trovare dove mancano, risoluzione SAT o qualcosa per output mancanti? prima casi semplici, es. ne manca uno)
- dsa: recovery of key from repeated nonce
- elgamal? paillier? diffie-hellman?
- documentation!
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
license_files = LICENSE

[bdist_wheel]
universal=1
universal=1
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
requirements = f.read().strip().split('\n')

setuptools.setup(
name="ctftools",
name="wedgedriver",
version="0.1.2",
author="Pietro Ferretti",
author_email="me@pietroferretti.com",
description="A small collection of tools for solving CTF challenges",
author_email="pietro.ferretti1@gmail.com",
description="A collection of tools to break common cryptography weaknesses",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pietroferretti/ctftools",
url="https://github.com/pietroferretti/wedgedriver",
license="MIT",
packages=setuptools.find_packages(exclude=["tests", "data"]),
package_data={"ctftools": ["data/english_words.txt"]},
package_data={"wedgedriver": ["data/english_words.txt"]},
install_requires=requirements,
extras_require={
"rsa": ["gmpy"],
"tests": ["pytest", "pycryptodome"]
},
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
Expand All @@ -43,6 +43,6 @@
],
keywords="ctf security cryptography",
project_urls={
"Source": "https://github.com/pietroferretti/ctftools"
"Source": "https://github.com/pietroferretti/wedgedriver"
},
)
2 changes: 1 addition & 1 deletion tests/aestools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from ctftools import aestools
from wedgedriver import aestools

import pytest
import random
Expand Down
2 changes: 1 addition & 1 deletion tests/rsatools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from ctftools import rsatools
from wedgedriver import rsatools

import pytest
import random
Expand Down
4 changes: 2 additions & 2 deletions tests/xortools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from ctftools import xortools
from ctftools.utils import xor, egcd
from wedgedriver import xortools
from wedgedriver.utils import xor, egcd

import pytest
import random
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ctftools/xortools.py → wedgedriver/xortools.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
PUNCTUATION = b('!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~')
PRINTABLE = LETTERS + DIGITS + PUNCTUATION + b(' \t\n\r\x0b\x0c')

with open(pkg_resources.resource_filename('ctftools', 'data/english_words.txt')) as f:
with open(pkg_resources.resource_filename('wedgedriver', 'data/english_words.txt')) as f:
ENGLISH_DICTIONARY = set(f.read().split('\n'))
ENGLISH_DISTRIBUTION = {b'a': 8.167, b'b': 1.492, b'c': 2.782, b'd': 4.253, b'e': 12.702, b'f': 2.228, b'g': 2.015,
b'h': 6.094, b'i': 6.966, b'j': 0.153, b'k': 0.772, b'l': 4.025, b'm': 2.406, b'n': 6.749,
Expand Down

0 comments on commit 2d9a302

Please sign in to comment.