small fixes

This commit is contained in:
√(noham)²
2025-02-18 17:20:56 +01:00
parent 427993d0e6
commit aaf5439810
7 changed files with 13 additions and 7 deletions

4
crackmy.json.example Normal file
View File

@@ -0,0 +1,4 @@
{
"email": "email",
"password": "password"
}

4
hackropole.json.example Normal file
View File

@@ -0,0 +1,4 @@
{
"token": "eyJhbGciOiJBMTI4S.....",
"provider": "github"
}

View File

@@ -5,12 +5,10 @@ from ..models import Challenge, File
from ..utils.config_handler import load_config from ..utils.config_handler import load_config
from ..utils.challenge_handler import download_files from ..utils.challenge_handler import download_files
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
import unicodedata
from datetime import datetime from datetime import datetime
import textwrap import textwrap
import requests import requests
import re import re
from pprint import pprint
class CatTheFlagPlatform(CTFPlatform): class CatTheFlagPlatform(CTFPlatform):
def __init__(self, url: str = "https://cattheflag.org", config_file: str | Path = None): def __init__(self, url: str = "https://cattheflag.org", config_file: str | Path = None):

View File

@@ -3,10 +3,8 @@ from pathlib import Path
import requests import requests
from .base import CTFPlatform from .base import CTFPlatform
from ..models import Challenge, File from ..models import Challenge, File
from ..utils.config_handler import load_config
from ..utils.challenge_handler import download_files from ..utils.challenge_handler import download_files
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
import unicodedata
from datetime import datetime from datetime import datetime
import textwrap import textwrap
import re import re

View File

@@ -4,8 +4,6 @@ from .base import CTFPlatform
from ..models import Challenge, File from ..models import Challenge, File
from ..utils.config_handler import load_config from ..utils.config_handler import load_config
from ..utils.challenge_handler import download_files from ..utils.challenge_handler import download_files
from bs4 import BeautifulSoup
import unicodedata
from datetime import datetime from datetime import datetime
import textwrap import textwrap
import requests import requests

View File

@@ -6,7 +6,6 @@ from ..models import Challenge, File
from ..utils.cookie_handler import load_cookies_from_file from ..utils.cookie_handler import load_cookies_from_file
from ..utils.challenge_handler import download_files from ..utils.challenge_handler import download_files
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
import unicodedata
from datetime import datetime from datetime import datetime
import textwrap import textwrap
import re import re

View File

@@ -0,0 +1,5 @@
{
"PHPSESSID": "",
"cf_clearance": "",
"o2s-chl": ""
}