Skip to content

Instantly share code, notes, and snippets.

View Lucia361's full-sized avatar
🎯
Focusing

Lucia Fuskova Lucia361

🎯
Focusing
View GitHub Profile
@Lucia361
Lucia361 / gettoken.php
Created January 27, 2023 09:32 — forked from dvygolov/gettoken.php
Get App Token By Login and Password
<?php
$email = "email";
$password = "password";
/*
438142079694454|fc0a7caa49b192f64f6f5a6d9643bb28 β€” Ads Manager Android
350685531728|62f8ce9f74b12f84c123cc23437a4a32 β€” Facebook Android
6628568379|c1e620fa708a1d5696fb991c1bde5662 β€” Facebook iPhone
- 1479723375646806|afb3e4a6d8b868314cc843c21eebc6ae β€” Ads Manager App for iOS
*/
@Lucia361
Lucia361 / get-facebook-token-console-android.js
Created January 27, 2023 09:15 — forked from dieudv/get-facebook-token-console-android.js
Press F12 -> Console and patse this code for android or for ios. (Cre: dieudv)
var email = "youremail";
var password = "yourpassword";
var BASE_URL = "https://api.facebook.com/restserver.php";
var API_SECRET = "62f8ce9f74b12f84c123cc23437a4a32";
var md5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,