剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 CTF思路 Crypton - Library consisting…
Crypton - Library consisting of explanation and implementati CTF思路 点击放大
作者:admin 发布:2026-10-05

Crypton - Library consisting of explanation and implementati

项目说明CryptonCrypton is an educational library to learn and practice Offensive and Defensi. It is basically a collection of explanation and implementati…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
380浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

Crypton - Library consisting of explanation and implementati

项目说明

Crypton

Crypton is an educational library to learn and practice Offensive and Defensi. It is basically a collection of explanation and implementation of all the existing and attacks on Encryption Systems (Symmetric and Asymmetric), Digital Signatures, Message Authentication Codes and Authenticated Encryption Systems. Each attack is also supplemented with example challenges from "Capture The Flag" contests and their respecti. Indi who are already acquainted (or are into CTFs) with this field can use Crypton as a tool to sol based on a particular existing .

The library will be continuously updated with attack explanations and CTF challenges! Feel free to email me regarding any suggestions!

I ha a blog post on the timeline of de of this library:

WARNING: The author in no way guarantees that the code is secure. The library is only meant for educational purposes and the code should not be used for implementing in real world. All the example scripts in the library are *trivial* implementations.

There are different sections in this README:
* _Moti What motivated me to create this library
* _Library Structure_- Directory structure of Crypton
* _Domain Co What all cryptosystems and attacks are covered in this library
* _Future Plans/TODO_- Attacks/concepts that are to be included soon

---

Moti


Help CTF players and indi interested in the field of Cryptography provide a platform for learning attacks in crypto and for experienced CTF players to practice challenges systematically divided into attacks associated with different sub-domains in crypto. Also, illustrate through attack explanations how proper implementation of protocols is crucial.

---

Library Structure

!picture

---

Domain Co

1. Block Ciphers

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Block Cipher Basics- working of block ciphers, padding etc.| <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 2 | Modes of Encryption- different modes of operation on block ciphers: ECB, CBC, CTR | <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 3 | Block Size Detection- detect blocksize of a block cipher encrypting data on a remote service| <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 4 | Mode Detection- detect type of mode of encryption: independent or dependent encryption of blocks| <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 5 | ECB Byte at a Time- byte at a time decryption of a secret string running on a remote service encrypting input+secret in ECB mode| <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [x] [\[link\]]() </li></ul> |
| 6 | CBC I- detect the value of Initialisation on a remote service that is encrypting our input using a block cipher in CBC mode| <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> | <ul><li>- [ ] </li></ul> |
| 7 | CBC Bit Flipping Attack- exploiting cookie generation mechanism to login as admin when cookie is generated using a block cipher in CBC mode| <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [x] [\[link\]]() </li></ul> |
| 8 | CBC Byte at a Time- byte at a time decryption of a secret string running on a remote service encrypting input+secret in ECB mode| <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> | <ul><li>- [ ] </li></ul> |
| 9 | CBC Padding Oracle Attack- decryption of data encrypted by a service pro encryption/decryption | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [x] [\[link\]]() </li></ul> |
| 10 | CTR Bit Flipping- exploiting cookie generation mechanism to login as admin when cookie is generated using a block cipher in CBC mode| <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [ ] </li></ul> | <ul><li>- [x] [\[link\]]() </li></ul> |

2. RSA Encryption

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Unpadded RSA Enc/Dec- key generation, distribution, encryption/decryption, of decryption formula and padding in RSA | <ul><li>- [x] [\[link\]]() </li></ul> | <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 2 | Direct Root Attack- attack on unpadded RSA with low public key exponent | <ul><li>- [x] [\[link\]]() </li></ul> | <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul>|
| 3 | Fermat's Factorisation- technique used to factor modulus n when p and q are in proximity | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 4 | Pollard's p-1 Factorisation- technique to factorise n when both of it's factors p & q, p-1 and q-1 have very small prime di| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 5 | Common Modulus Attack- decrypt ciphertext when it's corresponding plaintext is encrypted two different times with the same modulus n | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 6 | Common Prime Attack- retrie of moduli n1 and n2 when they have a common factor | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 7 | Wiener's Attack- get value of decryption key exponent d when d < N<sup>0.25</sup> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 8 | Wiener's Attack - get value of decryption key exponent d when d is a few bits greater than N<sup>0.25</sup> or d < N<sup>0.25</sup>| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 9 | Coppersmith's Attack- coppersmith's theorem, attack on stereotyped messages and factoring n with high bits known | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 10 | Franklin Reiter Related Message Attack- attack to retrie messages encrypted using the same modulus| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 11 | Hastad's Broadcast Attack- with extension- attack to retrieve a message broadcasted among different people, encrypted using same exponent but different moduli| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 12 | PKCS1-v1.5-Padded-RSA-Encryption/Decryption- ASN1 encoding, padded RSA encryption (needs to be fixed)| <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 13 | Least Significant Bit Oracle Attack- attack on RSA oracle leaking least significant bit value on decryption | <ul><li>-[x] [\[link\]]()</li></ul>| <ul><li>-[x] [\[link\]](RSA-encryption/Attack-LSBit-Oracle/lsbitoracle.py) </li></ul>| <ul><li>- [ ] </li></ul> |
| 14 | Attack-Retrie- attack on RSA oracle to extract value of modulus in case it is not public | <ul><li>-[x] [\[link\]]() </li></ul>| <ul><li>-[x] [\[link\]]() </li></ul> | <ul><li>-[x] [\[link\]]() </li></ul> |
| 15 | Intro-RSA-Challenges- basic challenges in RSA related to Number Theory| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |

3. Message Authentication Codes (MACs)

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Message Authentication Code- internals and security analysis of MACs| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 2 | CBC MAC Forgery- generating two message M1 and M2 having the same CBC-MAC authentication tag| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 3 | Length Extension Attack on CBC-MAC- generate a valid authentication tag of message M1 \|\| M2 (concatenation) given MAC(M1) | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [ ] </li></ul> |

4. Discrete Logarithm Problem

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | DLP- Cyclic Groups, Discrete Logarithm Problem| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |
| 2 | Pollard's Rho Algorithm to solve DLP | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> |
| 3 | Baby Step Giant Step Algorithm to solve DLP| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul> |
| 4 | Pohlig Hellman Algorithm to solve DLP| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul> |
| 5 | Elliptic Curve DLP- defining identity element, inverse of a point, cyclic groups o on an EC, Hasse's theorem, ECDLP | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 6 | Baby Step Giant Step Algorithm to sol Curve DLP | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul> |
| 7 | Pollard's Rho Algorithm to sol Curve DLP | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> |

5. ElGamal Encryption

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | ElGamal Cryptosystem- Encryption/Decryption- key generation, encryption, decryption in ElGamal Cryptosystem| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [x] [\[link\]]()</li></ul> |

6. Authenticated Encryption (AE)

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | AE basics & internals- working of authenticated encryption| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 2 | AE with MACs- different techniques of implementing AE with MACs: Encrypt and MAC, MAC then encrypt and encrypt then MAC| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 3 | Authenticated Ciphers| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 4 | AE with Associated Data| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 5 | AES-GCM- encryption in AES-GCM, Wegman-Carter MAC| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]() </li></ul>| <ul><li>- [ ] </li></ul> |
| 6 | Forbidden Attack on AES-GCM- attack on AES-GCM due to nonce-reuse| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [x] [\[link\]]() </li></ul> |

7. Elliptic Curves

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Elliptic Cur- defining Elliptic Curves, point addition, point doubling and scalar multiplication | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[python\]](), [\[sage\]]()</li></ul> | <ul><li>- [ ] </li></ul> |

8. Digital Signatures

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | ElGamal Signatures- key generation, signature generation, signature and correctness of ElGamal Signature scheme| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [x] [\[link\]]()</li></ul> |
| 2 | Elliptic Curve DSA- signature generation, signature and correctness of signature algorithm| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 3 | Attack k-reuse ECDSA- forging of ECDSA signatures due to reuse of k | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul>| <ul><li>- [ ] </li></ul> |
| 4 | Unpadded RSA Digital Signatures- signature generation and in RSA digital signature scheme| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> |
| 5 | PKCS1-v1.5 padded RSA Digital Signatures| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [ ] </li></ul> |
| 6 | e=3 Bleichenbacher's Attack| <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul>| <ul><li>- [x] [\[link\]]()</li></ul> |

9. Identification

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Identification Internals | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| 2 | Ephemeral Key Authentication | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [ ] </li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> |

10. Diffie Hellman Key Exchange

| S.No. | Topic | Explanation | Impl./Exploit | Challenge# |
|-------|:---------------------------:|:-----------------------------------------------------------------------------------------------:|:------------:|:----------:|
| 1 | Diffie Hellman Key Exchange Internals | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/README.md)</li></ul> | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/example.py)</li></ul> | <ul><li>- [ ] </li></ul> |
| 2 | Small Subgroup Confinement Attacks | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/Attack-Small-Subgroup-Confinement/README.md)</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/Attack-Small-Subgroup-Confinement/Challenges/)</li></ul> |
| 3 | Invalid Cur Attack | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/Attack-In/README.md)</li></ul> | <ul><li>- [x] [\[link\]]()</li></ul> | <ul><li>- [x] [\[link\]](Diffie-Hellman-Key-Exchange/Attack-In/Challenges/)</li></ul> |

TODO


1. RSA Encryption
+ PKCS1-v1.5 Padded RSA encryption
+ ~~Chosen Ciphertext Attack on RSA Cryptosystem- LSB Decryption Oracle~~ [\[Done\]]()
+ Padding Oracle Attack on PKCS1 padded RSA encryption system
+ Fermat's Factorisation
+ Sie
+ Coppersmith's Attack
+ Boneh Durfee Attack
+ Hastad's Broadcast Attack
+ Implementation of HBA on padded messages
2. Pseudo-Random-Number-Generators
+ Linear Congruential Generator
+ Mersenne Twister PRNG
+ Linear Feedback Shift Register
3. Digital Signatures
+ Blinding Attack on RSA Digital Signatures
4. ~~Diffie Hellman Key Exchange~~[\[Done\]]()
+ Elliptic Cur Hellman
5. [More to be added]

Author


Ashutosh Ahelleya
+ Twitter:
+ Blog:
+ EmailID:

项目信息

开发语言:Python

Star 数:1626

技术要点

该项目属于CTF思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Library consisting of explanation and implementation of all the existing attacks on various Encryption Systems, Digital Signatures, Key Exchange, Authentication methods along with example challenges from CTFs展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

使用与学习建议

1. 下载源码压缩包,解压到本地环境。

2. 根据项目类型准备对应的运行环境与依赖。

3. 按照 README 中的步骤完成配置与部署。

4. 在隔离的测试环境中运行验证,避免影响生产系统。

免责声明

本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

资源标题Crypton - Library consisting of explanation and implementati
所属分类CTF思路
发布作者admin
发布时间2026-10-05 23:36:44
下载权限 免费下载
附件数量2 个下载链接
浏览次数380
讨论数量0
主题状态正常讨论中

本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
还没有讨论,快来抢沙发~
登录 后才能参与讨论
下载链接
会员才能下载
登录后开通会员
同分类推荐
暂无同类资源
免费登录即可下载
查看会员
放大预览

© 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

Powered by 酷像SEOv3.0

网站地图 Sitemap.xml
首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册