Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c0ny1/ascii-jar
构造字节在ASCII范围内的jar
https://github.com/c0ny1/ascii-jar
Last synced: about 2 months ago
JSON representation
构造字节在ASCII范围内的jar
- Host: GitHub
- URL: https://github.com/c0ny1/ascii-jar
- Owner: c0ny1
- Created: 2022-02-13T06:53:37.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-14T04:40:13.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T17:44:25.170Z (5 months ago)
- Language: Python
- Size: 520 KB
- Stars: 70
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - c0ny1/ascii-jar - 构造字节在ASCII范围内的jar (Python)
README
## 0x01 简介
该项目是为了解决[RWCTF 4th Desperate Cat](https://github.com/voidfyoo/rwctf-4th-desperate-cat),基于[ascii-zip](https://github.com/Arusekk/ascii-zip)进行修改,生成字节均在ASCII范围的特殊jar。
#### 1.1 生成包含class的ascii jar
```bash
➜ ascii-jar python3 ascii-jar-1.py
[-] CRC:False RDL:False CDL:True CDAFL:False Padding data: 1*A
[-] CRC:False RDL:False CDL:True CDAFL:False Padding data: 2*A
[-] CRC:False RDL:False CDL:True CDAFL:False Padding data: 3*A
......
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 247*A
[+] CRC:True RDL:True CDL:True CDAFL:True Padding data: 248*A
[+] Generate ascii01.jar success
```#### 1.2 生成包含`META-INF/resources/`的ascii jar
```bash
➜ ascii-jar python3 ascii-jar-2.py
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 1*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 2*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 3*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 4*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 5*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 6*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 7*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 8*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 9*A
[-] CRC:False RDL:True CDL:False CDAFL:True Padding data: 10*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 11*A
[-] CRC:False RDL:True CDL:True CDAFL:True Padding data: 12*A
[+] CRC:True RDL:True CDL:True CDAFL:True Padding data: 13*A
[+] Generate ascii02.jar success
```## 0x02 更多
* [RWCTF 4th Desperate Cat Writeup](https://mp.weixin.qq.com/s/QQ2xR32Fxj_nnMsFCucbCg)
* [RWCTF 4th Desperate Cat ASCII Jar Writeup](https://gv7.me/articles/2022/rwctf-4th-desperate-cat-ascii-jar-writeup/)