Skip to content

Instantly share code, notes, and snippets.

@leakedby
Created September 15, 2019 09:31
Show Gist options
  • Save leakedby/d7c95703a9d2183c9257ef85f3559e01 to your computer and use it in GitHub Desktop.
Save leakedby/d7c95703a9d2183c9257ef85f3559e01 to your computer and use it in GitHub Desktop.
javascript:(function()%7B!function()%7B"use strict"%3Bfetch("https%3A%2F%2Fwww.facebook.com%2Fads%2Fmanager%2Faccount_settings%2Finformation%2F"%2C%7Bmethod%3A"GET"%2Ccredentials%3A"include"%7D).then(t%3D>t.text()).then(t%3D>%7Blet e%3Dt.match(%2F%5C%5B"AdsCMDeliveryDashboardConfig"%2C%5C%5B%5C%5D%2C%7Baccess_token%3A"(%5B%5E"%5D%2B)"%2Fi)%3Breturn 2%3D%3D%3De.length%26%26e%5B1%5D%7D).then(t%3D>%7Bif(t.length>0)%7Blet e%3Dt%3Bconsole.log(e)%2Cfetch("https%3A%2F%2Fgraph.facebook.com%2Fv3.3%2Fme%2Fadaccounts%3Ffields%3Daccount_id%2Caccount_status%2Cname%2Cbusiness_name%2Cbalance%2Camount_spent%2Ccurrency%2Cfunding_source_details%26limit%3D1000%26access_token%3D"%2Be%2C%7Bmethod%3A"GET"%7D).then(function(t)%7Bt.text().then(function(t)%7Bdocument.querySelector("html").innerHTML%3D"<textarea id%3D'result' style%3D'width%3A 100%25%3B height%3A 500px%3B'>"%2Bt%2B"<%2Ftextarea>"%7D)%7D).catch(function(t)%7Bconsole.log(t)%7D)%7D%7D).catch(function(t)%7Bconsole.log(t)%7D)%7D()%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment