Skip to content

Instantly share code, notes, and snippets.

View justhyped's full-sized avatar

justhyped

View GitHub Profile
@justhyped
justhyped / sec_cpt.js
Created April 22, 2024 08:43
This script shows how to solve Akamai's Crypto Challenge using the Hyper Solutions SDK
import {
destroySession,
freeMemory,
getCookiesFromSession, request,
requestWithAutoHeaderOrder,
SEC_CH_UA,
USER_AGENT
} from "../http.js";
import {parseChallengeHTML} from "hyper-sdk-js/akamai/sec_cpt.js";
@justhyped
justhyped / sec_cpt.py
Created April 21, 2024 13:09
This script shows how to solve Akamai's Crypto Challenge using the Hyper Solutions SDK
import time
from typing import Optional
from urllib.parse import urlparse
from tls_client import Session
from tls_client.response import Response
from hyper_sdk.akamai import SecCptChallenge
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
@justhyped
justhyped / sec_cpt.go
Created April 21, 2024 12:59
This script shows how to solve Akamai's Crypto Challenge using the Hyper Solutions SDK
package main
import (
"errors"
"fmt"
"github.com/Hyper-Solutions/hyper-sdk-go/akamai"
customHttp "github.com/bogdanfinn/fhttp"
tls_client "github.com/bogdanfinn/tls-client"
"github.com/bogdanfinn/tls-client/profiles"
"io"