theblackside support

This commit is contained in:
√(noham)²
2025-02-17 01:47:58 +01:00
parent 49375f3dd1
commit 0c5d60856f
5 changed files with 261 additions and 12 deletions

22
main.py
View File

@@ -1,12 +1,13 @@
from src.platforms.hackropole import HackropolePlatform
from src.platforms.theblackside import TheBlackSidePlatform
from src.generator import WriteupGenerator
from pathlib import Path
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/'
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/'
def main():
platform = HackropolePlatform()
generator = WriteupGenerator(platform, Path("./writeups"))
@@ -14,5 +15,14 @@ def main():
print(generator.challenges)
generator.generate_writeup_structure(hugo_header=True, translated=True)
if __name__ == "__main__":
main()
def theblackside():
challenge_url = 'https://theblackside.fr/challenges/steganographie/Meow'
platform = TheBlackSidePlatform(cookies_file="cookies.json")
generator = WriteupGenerator(platform, Path("./writeups"))
generator.fetch_challenge(challenge_url=challenge_url)
print(generator.challenges)
generator.generate_writeup_structure(hugo_header=True, translated=True)
theblackside()
# hackropole()