Commit Graph

19 Commits

Author SHA1 Message Date
Lonami Exo
bc72e52834 Reuse the AESModeCTR class on CdnDecrypter 2017-08-28 20:30:33 +02:00
Lonami Exo
5404670469 Implement and use TCP obfuscated as a PoC (#112)
Credits to MadelineProto/Connection.php by @danog
2017-08-28 20:25:44 +02:00
Lonami Exo
8afcd0b91f Turn HashChecker into CdnDecrypter to abstract CDN-specific aspects 2017-08-28 16:25:10 +02:00
Lonami Exo
b504ce14bc Verify the files downloaded from CDNs and raise on sha256 mismatch 2017-08-28 14:17:31 +02:00
Lonami Exo
98bbcb6cd6 Favour rsa module over PyCrypto since the former is pure Python 2017-08-24 18:41:48 +02:00
Lonami Exo
d5fd147881 Add a few more default RSA public keys from Telegram 2017-08-23 21:50:33 +02:00
Lonami Exo
66876b6722 Use pycrypto's RSA instead the old weird RSA implementation 2017-08-23 21:49:27 +02:00
Lonami Exo
88ec9c297e Improve libssl.py's file formatting 2017-08-22 23:05:07 +02:00
Lonami Exo
274e16ac66 Avoid defining Python's AES class if libssl's is available 2017-08-22 23:05:07 +02:00
Christian Stemmle
ffb1cf483d Faster crypto by using libssl (closes #199) 2017-08-20 01:21:11 +02:00
Lonami Exo
afcddfd7c1 Remove seemingly useless array copies on aes.py (#199) 2017-08-17 18:12:19 +02:00
Lonami Exo
9f812d83a9 Use sympy for faster factorization if available (#199) 2017-08-17 17:37:27 +02:00
Lonami Exo
7adb4f09d6 Slightly reorganise the project structure 2017-06-09 16:13:39 +02:00
Lonami Exo
153cbfd350 Use more straightforward calls of hashlib.sha1/sha256 2017-06-02 16:49:03 +02:00
Lonami Exo
02a847b64a Make lint happier 2017-05-21 13:59:16 +02:00
Lonami Exo
63c89af983 Use relative imports always where possible 2017-05-21 13:02:54 +02:00
Lonami Exo
ca80b05694 Add shebangs and set proper file permissions 2017-05-20 15:58:44 +02:00
Fadi Hadzh
d087941bd0 Many code-style improvements 2016-11-30 00:29:42 +03:00
Lonami
51a531225f Totally refactored source files location
Now it *should* be easier to turn Telethon
into a pip package
2016-09-17 20:45:12 +02:00