fix + cattheflag support + crackmy support

This commit is contained in:
√(noham)²
2025-02-18 17:15:16 +01:00
parent 6c1ed3230c
commit 9ac8125be0
6 changed files with 565 additions and 18 deletions

30
main.py
View File

@@ -1,14 +1,13 @@
from src.platforms.hackropole import HackropolePlatform
from src.platforms.theblackside import TheBlackSidePlatform
from src.platforms.crackmes import CrackmesPlatform
from src.platforms.crackmy import CrackmyPlatform
from src.platforms.cattheflag import CatTheFlagPlatform
from src.generator import WriteupGenerator
from pathlib import Path
def hackropole():
challenge_url = 'https://hackropole.fr/fr/challenges/reverse/fcsc2023-reverse-chaussette-xs/'
# challenge_url = 'https://hackropole.fr/fr/challenges/crypto/fcsc2022-crypto-t-rex/'
# challenge_url = 'https://hackropole.fr/fr/challenges/crypto/fcsc2022-crypto-a-laise/'
platform = HackropolePlatform()
generator = WriteupGenerator(platform, Path("./writeups"))
@@ -33,6 +32,29 @@ def crackmes():
print(generator.challenges)
generator.generate_writeup_structure(hugo_header=True, translated=True)
def crackmy():
challenge_url = 'https://crackmy.app/crackmes/yet-another-packer-v1-5514'
# platform = CrackmyPlatform(config_file="crackmy.json")
platform = CrackmyPlatform()
generator = WriteupGenerator(platform, Path("./writeups"))
generator.fetch_challenge(challenge_url=challenge_url)
print(generator.challenges)
generator.generate_writeup_structure(hugo_header=True, translated=True)
def cattheflag():
challenge_url = 'https://cattheflag.org/defis/reverse2.php'
platform = CatTheFlagPlatform(config_file="catthefile.json")
generator = WriteupGenerator(platform, Path("./writeups"))
generator.fetch_challenges() # Mandatory to get every information about a specific challenge for this platform
generator.fetch_challenge(challenge_url=challenge_url)
print(generator.challenges)
generator.generate_writeup_structure(hugo_header=True, translated=True)
# theblackside()
# hackropole()
crackmes()
# crackmes()
# crackmy()
# cattheflag()