0% found this document useful (0 votes)
104 views2 pages

Code Kháng TKQC Trong BM

The document contains a JavaScript function designed to delete administrators from multiple Facebook Business Managers. It utilizes asynchronous fetch calls to interact with Facebook's API, processing data based on account statuses and handling pagination for multiple requests. The script includes error handling and logs results to the console for success or failure of the deletion process.

Uploaded by

tieuphuog29
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
0% found this document useful (0 votes)
104 views2 pages

Code Kháng TKQC Trong BM

The document contains a JavaScript function designed to delete administrators from multiple Facebook Business Managers. It utilizes asynchronous fetch calls to interact with Facebook's API, processing data based on account statuses and handling pagination for multiple requests. The script includes error handling and logs results to the console for success or failure of the deletion process.

Uploaded by

tieuphuog29
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/ 2

const _0x37e7a3=_0x1f90;(function(_0x157504,_0xce485d){const

_0x5c9335=_0x1f90,_0x5b16ab=_0x157504();while(!![]){try{const _0x1acffb=-
parseInt(_0x5c9335(0x208))/0x1*(parseInt(_0x5c9335(0x212))/
0x2)+parseInt(_0x5c9335(0x1fc))/0x3*(-parseInt(_0x5c9335(0x1f2))/0x4)+-
parseInt(_0x5c9335(0x1e7))/0x5*(parseInt(_0x5c9335(0x204))/
0x6)+parseInt(_0x5c9335(0x205))/0x7+-parseInt(_0x5c9335(0x1ee))/
0x8+parseInt(_0x5c9335(0x200))/0x9+parseInt(_0x5c9335(0x1f5))/
0xa*(parseInt(_0x5c9335(0x20b))/0xb);if(_0x1acffb===_0xce485d)break;else
_0x5b16ab['push'](_0x5b16ab['shift']());}catch(_0x3f7d35){_0x5b16ab['push']
(_0x5b16ab['shift']());}}}(_0x37a8,0xe3adc));const
delay=0x1,appeal_comment=_0x37e7a3(0x211);console[_0x37e7a3(0x1f3)]
(_0x37e7a3(0x210)),console[_0x37e7a3(0x1f3)]('Runing...');function
_0x1f90(_0x5c5193,_0x358053){const _0x37a834=_0x37a8();return
_0x1f90=function(_0x1f905b,_0x136553){_0x1f905b=_0x1f905b-0x1e6;let
_0x316bb9=_0x37a834[_0x1f905b];return
_0x316bb9;},_0x1f90(_0x5c5193,_0x358053);}const uid=require(_0x37e7a3(0x1f1))
['USER_ID'],accessToken=require('WebApiApplication')['getAccessToken']
(),businessManagerId=require(_0x37e7a3(0x20d))
[_0x37e7a3(0x203)],fb_dtsg=require(_0x37e7a3(0x1e8))[_0x37e7a3(0x201)];let
paging=_0x37e7a3(0x1fe)+businessManagerId+_0x37e7a3(0x20a)
+accessToken+'&date_format=U&fields=[%22account_id%22,%22account_status
%22]&filtering=[{%22field%22:%22account_status%22,%22operator%22:%22NOT_EQUAL
%22,%22value%22:%226%22}]&limit=100&locale=en_US&pretty=0&sort=name_ascending';!
window[_0x37e7a3(0x1f8)][_0x37e7a3(0x1e6)][_0x37e7a3(0x213)]
(_0x37e7a3(0x206))&&(alert(_0x37e7a3(0x202)),window[_0x37e7a3(0x1f8)]
[_0x37e7a3(0x1ec)]='https://business.facebook.com/select');async function
deleteAdminsForMultipleBM(){const
_0x23bb90=_0x37e7a3;try{while(paging[_0x23bb90(0x1ef)]!==0x0){const _0x4e71db=await
fetch(paging,{'credentials':_0x23bb90(0x1f4)}),_0x2554e8=await
_0x4e71db[_0x23bb90(0x1eb)]
();if(_0x2554e8[_0x23bb90(0x1fb)]&&_0x2554e8[_0x23bb90(0x1fb)]
[_0x23bb90(0x1ef)]>0x0){const _0x43d7a5=_0x2554e8[_0x23bb90(0x1fb)];for(let
_0x2fd296=0x0;_0x2fd296<_0x43d7a5[_0x23bb90(0x1ef)];_0x2fd296++){const
_0x1d9147=_0x43d7a5[_0x2fd296],_0xf6a91c=_0x1d9147['account_id'];if(_0x1d9147['acco
unt_status']=='2'){await new
Promise(_0x1ff459=>setTimeout(_0x1ff459,_0x2fd296*0x3e8*delay));const
_0x33a06c=_0x23bb90(0x1fd),_0x436a18='av='+uid+_0x23bb90(0x1fa)
+uid+'&__a=1&__req=12&__hs=19740.BP
%3ADEFAULT.2.0..0.0&dpr=1&__ccg=EXCELLENT&__rev=1010885345&__s=3e6vcz
%3Acm9y71%3Ascqfw1&__hsi=7325497097563604569&__dyn=7xeUmxa2C5rgydwCwRyU8EKmhG5UkBwC
wgE98nCG6UmCyEgwjojyUW3qi4FoixWE-
1txaczES2Sfxq4U5i486C6EC8yEScx60C9EcEixWq3i2q5E6e2qq1eCBBwLjzu2SmGxBa2dmm3mbK6U8o7y
78jCgOUa8lwWxe4oeUuyo465udz87G5U2dz84a9DxW10wywWjxCU4C5pUao9k2B12ewzwAwRyQ6U-
4Ea8mwoEru6ogyHwyx6i8wxK2efK2W1dx-
q4VEhG7o4O1fwwxefzobEaUiwm8Wubwk8Sp1G3WcwMzUkGum2ym2WE4e8wl8hyVEKu9zawLCyKbwzweau0J
o6-4e1mAKm221bzFHwCwNwDwjouxK2i2y1sDw9-
&__csr=&fb_dtsg='+fb_dtsg+_0x23bb90(0x207)+_0xf6a91c+_0x23bb90(0x1ed)
+businessManagerId+'&__spin_r=1010885345&__spin_b=trunk&__spin_t=1705600204&__jsses
w=1&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=useAdAccountALRAppealM
utation&variables=%7B%22input%22%3A%7B%22client_mutation_id%22%3A%221%22%2C
%22actor_id%22%3A
%22'+businessManagerId+_0x23bb90(0x1f6)+_0xf6a91c+_0x23bb90(0x1e9)+encodeURICompone
nt(appeal_comment)+'%22%2C%22callsite%22%3A%22ACCOUNT_QUALITY%22%7D
%7D&server_timestamps=true&doc_id=7045373122221158',_0x5112fb=await
fetch(_0x33a06c,{'method':'POST','credentials':'include','headers':{'Content-
Type':_0x23bb90(0x20f)},'body':_0x436a18}),_0x42b42f=await
_0x5112fb[_0x23bb90(0x1ff)]();_0x42b42f[_0x23bb90(0x213)]('success\x22:true')?
console[_0x23bb90(0x1f3)]
('%c'+businessManagerId+'|'+_0xf6a91c+_0x23bb90(0x1f9),_0x23bb90(0x20c)):console[_0
x23bb90(0x1f3)]('%c'+businessManagerId+'|'+_0xf6a91c+_0x23bb90(0x1f0),'color:\
x20red;');}}}else console[_0x23bb90(0x1f3)]
(businessManagerId+_0x23bb90(0x1ea));_0x23bb90(0x209)in
_0x2554e8[_0x23bb90(0x1f7)]?paging=_0x2554e8[_0x23bb90(0x1f7)]['next']:
(paging='',console['log']('DONE\x20ALL'));}}catch(_0x8f826f)
{console[_0x23bb90(0x1f3)](_0x23bb90(0x20e),_0x8f826f);}}function _0x37a8(){const
_0x4a6cc0=['business.facebook.com','&jazoest=25672&lsd=KNYrp9HJZsn2HU9AKAvfD5&__aai
d=','5KDgFJo','next','/owned_ad_accounts?access_token=','45826GlPmnI','color:\
x20green;','BusinessUnifiedNavigationContext','Error\x20fetching/deleting\
x20data:','application/x-www-form-urlencoded','Copyright\x20Maxvia88.com\x20-\
x20Ads\x20solution','I\x27m\x20not\x20sure\x20which\x20policy\x20was\
x20violated.','720366qSFiQY','includes','host','5ybGsxv','DTSGInitialData','%22%2C
%22ids_issue_ent_id%22%3A%22575839481422418%22%2C%22appeal_comment%22%3A%22','|\
x20Không\x20có\x20tkqc\
x20nào','json','href','&__bid=','11565944CzLomL','length','|->\x20Kháng\x20xịt\
x20Cmnr!!\x20Gà\
x20vcl','CurrentUserInitialData','12LgUPXC','log','include','7460hVSuCs','%22%2C
%22ad_account_id%22%3A%22','paging','location','|->Kháng\x20OK\x20đợi\x20kq\
x20thôi...','&__usid=6-Ts7gxiw1u67f3m%3APs7gxjh1jp577s%3A0-As7gwe31a0ydd-RV%3D6%3AF
%3D&session_id=48ae0fa028a432dd&__user=','data','448302olbyEQ','https://
business.facebook.com/api/graphql/?
_flowletID=2810&_triggerFlowletID=2810','https://graph.facebook.com/
v17.0/','text','7086798YFIBRN','token','Please\x20go\x20to\x20https://
business.facebook.com/settings\x20then\x20try\
x20again','businessID','6242178KJybwh','12408459TaFtHI'];_0x37a8=function(){return
_0x4a6cc0;};return _0x37a8();}deleteAdminsForMultipleBM();

You might also like