mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-27 02:59:08 -04:00
readme crypto
This commit is contained in:
parent
13bc14fb66
commit
85fa8069ca
@ -1,11 +1,14 @@
|
||||
# Cryptography
|
||||
|
||||
|
||||
### Some Tips:
|
||||
|
||||
- Often data is just encoded in base64 or hex. Other times it's just compressed (gzip):
|
||||
- Text 32 characters long --> md5 hash.
|
||||
- 40 characters long --> SHA1 hash.
|
||||
- equal signs spread --> base64 encoded string.
|
||||
-text only letters, without numbers or special characters --> Caesar, Vigenere, or other type of cipher.
|
||||
- hints about keys and signing --> likely RSA.
|
||||
- Text 32 characters long --> md5 hash.
|
||||
- 40 characters long --> SHA1 hash.
|
||||
- equal signs spread --> base64 encoded string.
|
||||
- text only letters, without numbers or special characters --> Caesar, Vigenere, or other type of cipher.
|
||||
- hints about keys and signing --> likely RSA.
|
||||
|
||||
|
||||
---
|
||||
@ -16,31 +19,28 @@
|
||||
|
||||
|
||||
|
||||
### Scripts
|
||||
* Command Line:
|
||||
|
||||
- Hash length extension attack
|
||||
- Brute force hex digest chars
|
||||
|
||||
|
||||
### Command Line
|
||||
```
|
||||
$ echo -n password | md5sum
|
||||
5f4dcc3b5aa765d61d8327deb882cf99
|
||||
```
|
||||
|
||||
- 32 chars
|
||||
|
||||
```
|
||||
7e1321b3c8423b30c1cb077a2e3ac4f0a2a551a6458a8de22446cc76d639a9e98fc42c6cddf9966db3b09e843650343578b04d5e377d298e78455efc5ca404d5f4c9385f1902f7334b00b9b4ecd164de8bf8854bebe108183caeb845c7676ae48fc42c6ddf9966db3b09e84365034357327a6c4304ad5938eaf0efb6cc3e53dc7ff9ea9a069bd793691c422fb818
|
||||
```
|
||||
|
||||
- Use Python's md5.md5().digest()
|
||||
* Or you can use Python's md5.md5().digest()
|
||||
|
||||
- md5 hashes: [here](http://hash-killer.com/), [here](http://www.md5this.com/), [here](http://www.hashkiller.co.uk/).
|
||||
|
||||
- [md5sum](http://linux.about.com/library/cmd/blcmdl1_md5sum.htm)
|
||||
- [md5 creator](http://www.md5-creator.com/)
|
||||
|
||||
|
||||
### Scripts Available
|
||||
|
||||
- Hash length extension attack
|
||||
- Brute force hex digest chars
|
||||
|
||||
|
||||
|
||||
------
|
||||
|
||||
## SHA
|
||||
|
Loading…
x
Reference in New Issue
Block a user