Fixed subdomain removal

This commit is contained in:
2025-04-01 16:19:07 +02:00
parent c80272906a
commit f948d72c4d

View File

@@ -200,13 +200,13 @@ class AlternCInterface:
csrf_token = self.extract_csrf_token(response.text) csrf_token = self.extract_csrf_token(response.text)
sub_domains = self.subdomain_regex.findall(response.text) sub_domains = self.subdomain_regex.findall(response.text)
sub_domain_id = [x for x in sub_domains if x[0] == domain][0][1] sub_domain_id = [x for x in sub_domains if x[0] == f"{source}.{domain}"][0][1]
response = requests.post( response = requests.post(
url=self.base_url + "/dom_subdel.php", url=self.base_url + "/dom_subdel.php",
data={ data={
"csrf": csrf_token, "csrf": csrf_token,
"sub_domain_id": "0", "sub_domain_id": sub_domain_id,
"confirm": "Oui" "confirm": "Oui"
}, },
cookies=self.cookies, cookies=self.cookies,