Skip to content

Commit

Permalink
modify script, omitting README in path
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieflyX committed Oct 21, 2019
1 parent e71a46b commit 0a2551a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 46 deletions.
90 changes: 45 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,48 @@ Some of my ctf pwn challenge collections.

## Index

- [Car Market - ASIS CTF 2016 Finals](./heap/off-by-one/carmarket/README.md)
- [PoE - Hitcon Quals 2019](./escape/PoE/README.md)
- [Defcon CTF 2019 Finals - Aoool](./type-confusion/aoool/README.md)
- [Defcon CTF 2019 Finals - Babi](./heap/heap-multi/babi/README.md)
- [Gnote - TWCTF 2019](./escape/gnote/README.md)
- [LCARS - DEF CON CTF Quals 2019](./escape/LCARS/README.md)
- [ASIS CTF Finals 2018 - Modern KeX](./escape/KeX/README.md)
- [HXP 2018 - Green Computing I](./escape/GreenComputing/README.md)
- [\*CTF Finals 2019 - Hack Me](./escape/hackme/README.md)
- [P4 Teaser CONFidence CTF - p4fmt](./escape/p4fmt/README.md)
- [0CTF 2019 - Baby Heap 2019](./heap/off-by-one/babyheap2019/README.md)
- [0CTF 2019 - babyaegis](./others/babyaegis/README.md)
- [CG_CASINO - Codegate 2019 Preliminary](./environ-tricks/cg_casino/README.md)
- [X-nuca 2018 - SSD](./escape/ssd/README.md)
- [SECCON 2018 - Q-Escape](./escape/q-escape/README.md)
- [Hitcon 2018 - Abyss](./escape/abyss/README.md)
- [Hack.lu 2018 - Heap Hell](./heap/fsop/heap_hell/README.md)
- [Heap tech - tcahce](./heap/heap-tcache/README.md)
- [Hack.lu 2018 - Slot Machine](./heap/heap-tcache/slot_machine/README.md)
- [Hack.lu 2018 - Heap Heaven II](./heap/heap-unlink/heap_heaven_2/README.md)
- [Faststorage - Teaser Dragon Sector CTF 2018](./heap/heap-multi/faststorage/README.md)
- [Production - Teaser Dragon Sector CTF 2018](./others/production/README.md)
- [Neighbor C - TWCTF 4th 2018](./format-string/neighbor_c/README.md)
- [BBQ - TWCTF 4th 2018](./heap/heap-multi/BBQ/README.md)
- [Bufoverflow_B - SCTF 2018](./heap/fsop/bufoverflow_b/README.md)
- [Heap tech - largebin attack](./heap/heap-largebin/README.md)
- [Heap Storm II - 0ctf quals 2018](./heap/heap-largebin/heapstorm2/README.md)
- [It's me (Mario) - Defcon quals 2018](./heap/heap-trival/mario/README.md)
- [Vertical Takeoff Vertical Landing - CodeBlue 2017](./environ-tricks/VTVL/README.md)
- [House of Card - 0ctf 2018](./environ-tricks/house_of_c4rd/README.md)
- [Heaps of print - Hack.lu 2017](./format-string/heapsofprint/README.md)
- [Heapstar - Asis CTF 2016 Finals](./format-string/heapstar/README.md)
- [Heap tech - fastbin attack](./heap/heap-fastbin/README.md)
- [Heap exploit - using multiple technique](./heap/heap-multi/README.md)
- [Dmail - Blaze CTF 2016](./heap/heap-multi/dmail/README.md)
- [House of scepticism - Hack.lu 2017](./heap/heap-multi/houseofscepticism/README.md)
- [Hungman - CSAW CTF 2016](./heap/heap-trival/hungman/README.md)
- [Heap tech - unlink](./heap/heap-unlink/README.md)
- [note3 - ZCTF 2016](./heap/heap-unlink/note3/README.md)
- [Seccon 2017 quals - Candy Store](./heap/house-of/candy_store/README.md)
- [Off-by-one vulnerability](./heap/off-by-one/README.md)
- [Asis CTF 2016 - B00ks](./heap/off-by-one/b00ks/README.md)
- [CandyStore - MMA CTF 2016](./heap/off-by-one/candystore/README.md)
- [Mult-o-flow - Hack.lu 2017](./rop-strict/mult-o-flow/README.md)
- [Asis CTF 2016 - Funpwn](./type-confusion/funpwn/README.md)
- [Car Market - ASIS CTF 2016 Finals](./heap/off-by-one/carmarket)
- [PoE - Hitcon Quals 2019](./escape/PoE)
- [Defcon CTF 2019 Finals - Aoool](./type-confusion/aoool)
- [Defcon CTF 2019 Finals - Babi](./heap/heap-multi/babi)
- [Gnote - TWCTF 2019](./escape/gnote)
- [LCARS - DEF CON CTF Quals 2019](./escape/LCARS)
- [ASIS CTF Finals 2018 - Modern KeX](./escape/KeX)
- [HXP 2018 - Green Computing I](./escape/GreenComputing)
- [\*CTF Finals 2019 - Hack Me](./escape/hackme)
- [P4 Teaser CONFidence CTF - p4fmt](./escape/p4fmt)
- [0CTF 2019 - Baby Heap 2019](./heap/off-by-one/babyheap2019)
- [0CTF 2019 - babyaegis](./others/babyaegis)
- [CG_CASINO - Codegate 2019 Preliminary](./environ-tricks/cg_casino)
- [X-nuca 2018 - SSD](./escape/ssd)
- [SECCON 2018 - Q-Escape](./escape/q-escape)
- [Hitcon 2018 - Abyss](./escape/abyss)
- [Hack.lu 2018 - Heap Hell](./heap/fsop/heap_hell)
- [Heap tech - tcahce](./heap/heap-tcache)
- [Hack.lu 2018 - Slot Machine](./heap/heap-tcache/slot_machine)
- [Hack.lu 2018 - Heap Heaven II](./heap/heap-unlink/heap_heaven_2)
- [Faststorage - Teaser Dragon Sector CTF 2018](./heap/heap-multi/faststorage)
- [Production - Teaser Dragon Sector CTF 2018](./others/production)
- [Neighbor C - TWCTF 4th 2018](./format-string/neighbor_c)
- [BBQ - TWCTF 4th 2018](./heap/heap-multi/BBQ)
- [Bufoverflow_B - SCTF 2018](./heap/fsop/bufoverflow_b)
- [Heap tech - largebin attack](./heap/heap-largebin)
- [Heap Storm II - 0ctf quals 2018](./heap/heap-largebin/heapstorm2)
- [It's me (Mario) - Defcon quals 2018](./heap/heap-trival/mario)
- [Vertical Takeoff Vertical Landing - CodeBlue 2017](./environ-tricks/VTVL)
- [House of Card - 0ctf 2018](./environ-tricks/house_of_c4rd)
- [Heaps of print - Hack.lu 2017](./format-string/heapsofprint)
- [Heapstar - Asis CTF 2016 Finals](./format-string/heapstar)
- [Heap tech - fastbin attack](./heap/heap-fastbin)
- [Heap exploit - using multiple technique](./heap/heap-multi)
- [Dmail - Blaze CTF 2016](./heap/heap-multi/dmail)
- [House of scepticism - Hack.lu 2017](./heap/heap-multi/houseofscepticism)
- [Hungman - CSAW CTF 2016](./heap/heap-trival/hungman)
- [Heap tech - unlink](./heap/heap-unlink)
- [note3 - ZCTF 2016](./heap/heap-unlink/note3)
- [Seccon 2017 quals - Candy Store](./heap/house-of/candy_store)
- [Off-by-one vulnerability](./heap/off-by-one)
- [Asis CTF 2016 - B00ks](./heap/off-by-one/b00ks)
- [CandyStore - MMA CTF 2016](./heap/off-by-one/candystore)
- [Mult-o-flow - Hack.lu 2017](./rop-strict/mult-o-flow)
- [Asis CTF 2016 - Funpwn](./type-confusion/funpwn)
6 changes: 5 additions & 1 deletion index.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

sed -i "" -e '/## Index/,$d' ./README.md
echo "## Index" >> ./README.md
echo "" >> ./README.md

mds=$(find . -name "README.md" | xargs ls -1t)

for md in $mds; do
head -n1 $md | grep -q "-" && echo "- ["$(head -n1 $md | sed 's/# //g')"]("$md")"
head -n1 $md | grep -q "-" && echo "- ["$(head -n1 $md | sed 's/# //g')"]("$(echo $md | sed 's/\/README.md//g')")" >> ./README.md
done

0 comments on commit 0a2551a

Please sign in to comment.