jamesfar 15 Posted February 24, 2014 Report Share Posted February 24, 2014 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 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted February 24, 2014 Report Share Posted February 24, 2014 You can ignore that parameter. Even the timestamp. It will work even without it. Quote Link to post Share on other sites
jamesfar 15 Posted February 25, 2014 Author Report Share Posted February 25, 2014 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§ion=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§ion=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§ion=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? Quote Link to post Share on other sites
Aymen 385 Posted February 25, 2014 Report Share Posted February 25, 2014 you have to send the parameter but you don't have to send a value , if you can't find it on the page , send it empty! 1 Quote Link to post Share on other sites
jamesfar 15 Posted February 25, 2014 Author Report Share Posted February 25, 2014 you have to send the parameter but you don't have to send a value , if you can't find it on the page , send it empty! solved. thanks Aymen Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.