Jump to content
UBot Underground

dyn parameter on facebook


Recommended Posts

Anyone doing facebook using aymen http post plugin?

 

Have you noticed that in facebook post method there are dyn parameter that it seems dynamically generated on the fly. Because i can't find this value on the page

 

How you solve this?

 

Please help

Link to post
Share on other sites

You can ignore that parameter. Even the timestamp. It will work even without it.

 

Thanks Kreatus but i try it and not working

 

For example i want to simulate click "End All Activity" on the security page and here is my code :

set(#facebook user, $plugin function("HTTP post.dll", "$url encode", "user@email.com"), "Global")
set(#facebook pass, "password", "Global")
plugin command("HTTP post.dll", "Clear Cookies", "https://facebook.com/")
set(#facebook get, $plugin function("HTTP post.dll", "$http get", "https://www.facebook.com/", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", "", "", ""), "Global")
load html(#facebook get)
wait($rand(5, 10))
set(#lsd, $find regular expression(#facebook get, "(?<=name=\\\"lsd\\\" value=\\\")[0-9a-zA-Z_]+(?=\\\")"), "Global")
set(#lgnrnd, $find regular expression(#facebook get, "(?<=name=\\\"lgnrnd\\\" value=\\\")[0-9a-zA-Z_]+(?=\\\")"), "Global")
set(#lgnjs, $find regular expression(#facebook get, "(?<=name=\\\"lgnjs\\\" value=\\\")[0-9a-zA-Z_]+(?=\\\")"), "Global")
set(#facebook post, $plugin function("HTTP post.dll", "$http post", "https://www.facebook.com/login.php?login_attempt=1", "lsd={#lsd}&email={#facebook user}&pass={#facebook pass}&persistent=1&default_persistent=1&timezone=-60&lgnrnd={#lgnrnd}&lgnjs={#lgnjs}&locale=en_US", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", "https://www.facebook.com/index.php", "", ""), "Global")
load html(#facebook post)
wait($rand(5, 10))
set(#SettingPage, $plugin function("HTTP post.dll", "$http get", "https://www.facebook.com/settings", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", #AboutURL, "", ""), "Global")
load html(#SettingPage)
wait($rand(5, 10))
set(#SecurityPage, $plugin function("HTTP post.dll", "$http get", "https://www.facebook.com/settings?tab=security", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", "https://www.facebook.com/settings", "", ""), "Global")
load html(#SecurityPage)
wait($rand(5, 10))
set(#CekLogin, $plugin function("HTTP post.dll", "$http get", "https://www.facebook.com/settings?tab=security&section=sessions&view", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", "https://www.facebook.com/settings?tab=security", "", ""), "Global")
load html(#CekLogin)
wait($rand(5, 10))

To simulate End All Activity click it has to made a post to a page https://www.facebook.com/ajax/settings/security/sessions/stop_all.php with the parameters :

__user={#User}&__a=1&__dyn=7n8apij35CCzpQ9UoHaHyG85oCiq2W8GAdBGejheCu&__req=h&fb_dtsg={#fb_dtsg}&ttstamp=2658166122101659966&__rev={#Revision}

As you can see i only found these parameters on the https://www.facebook.com/settings?tab=security&section=sessions&view page

user=
fb_dtsg=
rev=

And when i try not using dyn as Kreatus suggest then my code is :

set(#Revision, $replace regular expression($plugin function("File Management.dll", "$Find Regex First", #CekLogin, "revision\":.*,\"tier\""), "revision|\"|tier| |:|,", ""), "Global")
set(#User, $substring($replace regular expression($plugin function("File Management.dll", "$Find Regex First", #CekLogin, "\"id\":\".*Eagle"), "id|:|\"|\}", ""), 0, $find index($replace regular expression($plugin function("File Management.dll", "$Find Regex First", #CekLogin, "\"id\":\".*Eagle"), "id|:|\"|\}", ""), ",")), "Global")
set(#fb_dtsg, $substring($replace($plugin function("File Management.dll", "$Find Regex First", $plugin function("File Management.dll", "$Find Regex First", #CekLogin, "fb_dtsg\" value=\".*\" autocomplete"), "value=.*\""), "value=\"", ""), 0, $find index($replace($plugin function("File Management.dll", "$Find Regex First", $plugin function("File Management.dll", "$Find Regex First", #CekLogin, "fb_dtsg\" value=\".*\" autocomplete"), "value=.*\""), "value=\"", ""), "\"")), "Global")
set(#EndAllActivity, $plugin function("HTTP post.dll", "$http post", "https://www.facebook.com/ajax/settings/security/sessions/stop_all.php", "__user={#User}&__a=1&__req=h&fb_dtsg={#fb_dtsg}&__rev={#Revision}", "Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0", "https://www.facebook.com/settings?tab=security&section=sessions&view", "", ""), "Global")
load html(#EndAllActivity)

And the result is :

for (;;{"__ar":1,"payload":{"success":true},"bootloadable":{},"ixData":[]}

Any suggestion what i do wrong Kreatus? or maybe from other member?

Link to post
Share on other sites

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...