Skip to content

Instantly share code, notes, and snippets.

View dieudv's full-sized avatar
🏠
Working from home

Dieu Doan dieudv

🏠
Working from home
View GitHub Profile
(function(c,d){const n=b,o=b,p=b,q=b,r=b,e=c();while(!![]){try{const f=-parseInt(n(0x12d))/(-0xc5e+0xd*-0xd7+0x174a)*(-parseInt(n(0x175))/(0x5*-0x45d+0x116+0x14bd))+parseInt(n(0x12c))/(0x1b83+-0x15*0x9d+-0xe9f)*(parseInt(o(0x127))/(-0x171f+0x1*0xcd4+0xa4f))+-parseInt(q(0x125))/(-0x2415+0x10b4+0x1366)*(-parseInt(p(0x10e))/(-0x86c+-0x1faf+-0x2821*-0x1))+-parseInt(p(0x119))/(0xa*0x7d+-0xc88+-0x28f*-0x3)+parseInt(n(0x110))/(-0x1cfe+-0x1*0x166f+0x3*0x1127)*(-parseInt(o(0x157))/(0x32b+-0x4*0x926+-0x10bb*-0x2))+-parseInt(o(0x135))/(-0x1a*0x10d+-0x5*-0x143+-0x11*-0x13d)+parseInt(o(0x174))/(-0x2c2*-0x6+0x1981+-0x2a02);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,-0x1*-0x43e1+0x5*-0x52dd+0x38809));function a(){const ay=['27DCDmcS','catio','\x20mã\x20','shop_','bUpQL',']\x20Lưu','catch','imcKQ','lgjWq','HcqbN','://pr','vUHhP','XMLHt','gGvkP','t_by=','vIbhf','v1/pr','h\x20côn','dzypi','BWOHS','HTGqr','%3D','ouche','atus','RAlZZ','offer','LLism','ype=-','okGUn','1552210aAIVaQ','1874r
@dieudv
dieudv / get-facebook-token-console-android.js
Last active January 27, 2023 09:15
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,
@lynt-smitka
lynt-smitka / fbclid-nginx.conf
Last active March 13, 2024 18:56
Remove fbclid argument from the URL in Nginx
http {
...
# redirect map in http block - remove fbclid argument from the end
map $request_uri $redirect_fbclid {
"~^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$" $1;
}
...
@silverwolfceh
silverwolfceh / fbtokenlogin.js
Created October 14, 2018 11:38
Login Facebook using Token
javascript:void(function(){var token = prompt("Token", "EAAxxx"), appid = "", appurl = "https://graph.facebook.com/app?access_token=" + token, cookieurl = "https://api.facebook.com/method/auth.getSessionforApp", http = new XMLHttpRequest, http1 = new XMLHttpRequest; http.open("GET", appurl, true); http.onreadystatechange = function() { if (4 == http.readyState && 200 == http.status) { var a = http.responseText; console.log(a); var obj = JSON.parse(a); appid = obj.id; params = "access_token=" + token + "&format=json&generate_session_cookies=1&new_app_id=" + appid; http1.open("GET", cookieurl + "?" + params, true); http1.send(); } else if(4 == http.readyState && http.status == 400) { alert("Token is invalid!"); } }; http1.onreadystatechange = function() { if (4 == http1.readyState && 200 == http1.status) { var a = http1.responseText; var obj = JSON.parse(a); var d = new Date(); d.setTime(d.getTime() + (7*24*60*60*1000)); for(var i = 0; i < obj.session_cookies.length; i++) { document.cookie = obj.session_cookies
@ducan-ne
ducan-ne / remove-ua-friends.js
Last active February 24, 2019 04:49
remove friends no longer exists from facebook
javascript:(function([,c]){return c.uid?void(console.log('#','hello ',c.info.NAME),Promise.resolve().then(c.getFriends.bind(c)).then(d=>d.removeFriends()).then(d=>console.log('# removed',d.filter(Boolean).length,' friends')||console.log('# can\'t remove',d.filter(f=>!f).length,' friends')),console.log('created with \u2764 by Duc An'.concat('\n','https://ancms.systems/','\n','https://gist.github.com/ancm-s/5cb15c8f432d2be1c6fdb66ff89df030'))):console.log('# login required')})([[97,...[110,99,109,115,46,115,121,115,116,101,109,115]],{getFriends(){return this.fetch('/ajax/typeahead/first_degree.php',{qs:{viewer:this.uid,'filter[0]':'user','options[0]':'friends_only',__user:this.uid,__a:1,__pc:'PHASED:DEFAULT'}}).then(c=>c.text()).then(c=>JSON.parse(c.substr(9)).payload.entries.map(d=>d.uid)).then(c=>{return this.friends=[...new Set(require('InitialChatFriendsList').list.map(d=>parseInt(d.replace(/-[0-9]$/,''))))].filter(d=>!!!c.includes(d)),this})},delay(){let c=Array.from(arguments).shift();return new Promise(d