Jump to content
UBot Underground

Http Post - Trouble With Bing Ads Login


Recommended Posts

I can't seem to login to bing ads using http requests.

 

You can login into bing ads with your microsoft (hotmail) account details:

 

Please could someone take a look at this code for me:

 

plugin command("HTTP post.dll", "http cookies folder", "C:\\")
set(#login page, $plugin function("HTTP post.dll", "$http get", "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0", "", "", "", ""), "Global")
set(#cookie, $plugin function("HTTP post.dll", "$http cookie response"), "Global")
plugin command("HTTP post.dll", "http cookies string", #cookie)
plugin command("HTTP post.dll", "http set headers", "Set-Cookie", #cookie)
set(#bing_login_ms, $plugin function("HTTP post.dll", "$http post", #login_url, "login=EMAIL%40ADDRESS&passwd=PASSWORDHERE&type=11&PPFT=ClgFK5JnCIIYUGXv2AbyimI*tC5eq4LukWzEjZgmHBG5gLhbF8kQshV8RFVykAJ*FQFo8UxuOzwtdtle5fP0RjXVdylXl9sK*3A%21WnNr5MG*pI0CdnZxfsIfOwkyUDss9B4dqYToViL3U*ryDY4KSNsHU2vktw1BZaXCBppojikoCQFp1u2ZBeCtVPgDT6Zt*zE61Ry6SJvpY0Rkc7562QuUPQ3DpoNXHZBilQlQaY4N&PPSX=PassportRN&idsbho=1&sso=0&NewUser=1&LoginOptions=3&i1=0&i2=1&i3=19745&i4=0&i7=0&i12=1&i13=0&i14=744&i15=2351&i17=0&i18=__Login_Strings%7C1%2C__Login_Core%7C1%2C", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0", "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1421581413&rver=6.1.6206.0&wp=MBI_SSL&wreply=https:%2F%2Fsecure.bingads.microsoft.com%2FLogin%2FLive%3FskipMigrationFilter%3Dtrue&lc=1033&id=288120", "", ""), "Global")
load html(#bing_login_ms)
Link to post
Share on other sites

I'm not sure whats going on with the cookie thing exactly but this will help you get the PPFT:

set(#PPFT, $find regular expression(#login page, "(?<=name\\=\\\"PPFT\\\"\\sid\\=\\\"[\\da-zA-Z][\\da-zA-Z][\\da-zA-Z][\\da-zA-Z][\\da-zA-Z]\\\"\\svalue\\=\\\").*?(?=\\\")"), "Global")

set(#bing_login_ms, $plugin function("HTTP post.dll", "$http post", #login_url, "login={$plugin function("HTTP post.dll", "$url encode", #email)}&passwd={#password}&type=11&PPFT={#PPFT}&PPSX=PassportRN&idsbho=1&sso=0&NewUser=1&LoginOptions=3&i1=0&i2=1&i3=19745&i4=0&i7=0&i12=1&i13=0&i14=744&i15=2351&i17=0&i18=__Login_Strings%7C1%2C__Login_Core%7C1%2C", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0", "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1421581413&rver=6.1.6206.0&wp=MBI_SSL&wreply=https:%2F%2Fsecure.bingads.microsoft.com%2FLogin%2FLive%3FskipMigrationFilter%3Dtrue&lc=1033&id=288120", "", ""), "Global")

Link to post
Share on other sites
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...