Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilals12/tlscipher
https://github.com/bilals12/tlscipher
cipher tls
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bilals12/tlscipher
- Owner: bilals12
- License: gpl-3.0
- Created: 2023-11-22T20:10:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-24T19:35:03.000Z (12 months ago)
- Last Synced: 2024-07-30T20:54:28.383Z (4 months ago)
- Topics: cipher, tls
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tls cipher grabber
dives into ciphersuite.info and brings back pearls of info about tls cipher suites, sorting them into neat piles of 'secure', 'weak', and 'not-so-great'.
## what's this all about?
- **grabbing tls ciphers**: you can pick a tls version (like tls1.2 or tls1.3) and a security level ('secure', 'weak', etc) and this script fetches those ciphers for you.
- **saving the results**: the script can save them in a json file.
- **easy!**: it's all CLI, straightforward, great for quick lookups or slotting into bigger projects.## how to run
1. **clone this repo**
2. **fire up the script**: something like `python3 tls_cipher_fetcher.py -t tls12 -s secure` gets you all the secure tls1.2 ciphers.
3. **save your finds**: `-f yourfilename.json` to save the output in a json file.## stuff you need
- python3
- requests
- beautifulsoup4
- lxml
- argparsethere's a requirements file in here. just run `pip install -r requirements.txt` and you're good.
## examples
```bash
python3 tls_cipher_fetcher.py -t tls12 -s secure
```
```css
secure: {'tls12': ['TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384', 'TLS_DHE_RSA_WITH_AES_256_GCM_SHA384', ... ]}
``````bash
python3 tls_cipher_fetcher.py -t tls13 -s weak
```
```css
weak: {'tls13': ['TLS_AES_128_GCM_SHA256', 'TLS_CHACHA20_POLY1305_SHA256', ... ]}
``````bash
python3 tls_cipher_fetcher.py -t tls12 -s secure -f secure_tls12.json
```
```css
File saved to secure_tls12.json
```