ecbzh 47 Posted May 29, 2015 Report Share Posted May 29, 2015 Hi Ubotters, I try to connect to my fiverr account using http plugin. I can't figure how to do it. I'm able to scrape security token, etc ... It seems the sample source code given with http plugin is outdated. I'm missing something .... Any help will be appreciated ! Thanks ! Manu ui stat monitor("auth token :",#auth token) ui stat monitor("timestamp :",#timestamp) ui stat monitor("spinner :",#spinner) ui stat monitor("login :",#login) divider set(#auth token,"","Global") set(#timestamp,"","Global") set(#spinner,"","Global") set(#login,"","Global") set(#get,"","Global") set(#post,"","Global") set(#get2,"","Global") set(#fiverr login,"","Global") divider divider plugin command("HTTP post.dll", "Clear Cookies", "http://www.fiverr.com") load html("") plugin command("HTTP post.dll", "http auto redirect", "No") divider set(#get,$plugin function("HTTP post.dll", "$http get", "https://fr.fiverr.com", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://www.fiverr.com/", "", ""),"Global") load html(#post) set(#get2,$plugin function("HTTP post.dll", "$http get", "https://fr.fiverr.com/login", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://fr.fiverr.com", "", ""),"Global") load html(#get2) set(#timestamp,$plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=name\\=\\\"timestamp\\\"\\ type\\=\\\"hidden\\\"\\ value\\=\\\").+(?=\\\"\\ \\/\\>\\<input\\ id\\=\\\"spinner\\\")"),"Global") set(#auth token,$plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=var\\ AUTH_TOKEN\\ \\=\\ \\\').+(?=\\\'\\;)"),"Global") set(#spinner,$plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=name\\=\\\"spinner\\\"\\ type\\=\\\"hidden\\\"\\ value\\=\\\").+(?=\\\"\\ \\/\\>)"),"Global") set(#login,$plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=\\<input\\ class\\=\\\"js\\-form\\-login\\\"\\ id\\=\\\").+(?=\\\"\\ maxlength\\=)"),"Global") divider set(#fiverr login,$plugin function("HTTP post.dll", "$http post", "https://www.fiverr.com/user_sessions", "utf8=%E2%9C%93&authenticity_token={#auth token}×tamp={#timestamp}&spinner={#spinner}=FIVERRUSERNAME&login={#login}=FIVERRPASSWORD&password=&user_session%5Bremember_me%5D=1", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://www.fiverr.com", "", 20),"Global") load html(#fiverr login) Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 29, 2015 Report Share Posted May 29, 2015 I started to make it a bit different, it may put you on the right path. But it isn't working right now for me. If nobody else can pick it up and finish it I may be able to take another look tomorrow when I have a bit more free time. ui text box("Email or Username", #login) ui text box("Password", #password) set(#fiverr_html, $plugin function("HTTP post.dll", "$http get", "https://www.fiverr.com/", $plugin function("HTTP post.dll", "$http useragent string", "Firefox 27.0 Win7 64-bit"), "", "", ""), "Global") set(#utf8, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@name=\'utf8\'])[1]", "value", "HTML"), "Global") set(#auth token, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@name=\'authenticity_token\'])[1]", "value", "HTML"), "Global") set(#timestamp, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@id=\'timestamp\'])[1]", "value", "HTML"), "Global") set(#spinner, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@id=\'spinner\'])[1]", "value", "HTML"), "Global") set(#login_id, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@class=\'js-form-login\'])[1]", "id", "HTML"), "Global") set(#password_id, $plugin function("HTTP post.dll", "$xpath parser", #fiverr_html, "(//input[@class=\'js-form-password\'])[1]", "id", "HTML"), "Global") set(#login_post, $plugin function("HTTP post.dll", "$http post", "https://www.fiverr.com/user_sessions", "utf8={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #utf8)}&authenticity_token={#auth token}×tamp={#timestamp}&spinner={#spinner}&{#login_id}={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #login)}&login=&{#password_id}={#password}&password=&user_session%5Bremember_me%5D=1", $plugin function("HTTP post.dll", "$http useragent string", "Firefox 27.0 Win7 64-bit"), "", "", ""), "Global") load html(#login_post) 2 Quote Link to post Share on other sites
ecbzh 47 Posted May 30, 2015 Author Report Share Posted May 30, 2015 Thanks HelloInsomnia for your help ... Will take a look at your code now. Thanks again ! Quote Link to post Share on other sites
ecbzh 47 Posted May 31, 2015 Author Report Share Posted May 31, 2015 Hmm ... I have compared both code above. I’m still trying but I’m unable to sign in to fiverr using http plugin. Seems easy to code but I’m missing something important... Quote Link to post Share on other sites
Black Automation 20 Posted June 1, 2015 Report Share Posted June 1, 2015 I don't see any cookies being used..May this be the issue?I know ive ran into this issue before, because i was not using cookies. Quote Link to post Share on other sites
ecbzh 47 Posted June 9, 2015 Author Report Share Posted June 9, 2015 I have spend hours on it now ... But still failed I would be grateful if someone could take a look at my script below ... The http parameters needed are : utf8=%E2%9C%93&authenticity_token=9A8rmHS%2BKOIrnBJ6%2FR%2BjuDmZbCEpRUzdCvFJMl8Lbow%3D×tamp=1433856218&spinner=f27a98d6e053bd07e02983e26c95feef&ed708b32bb579d95026a3e411b1b4419=YOURUSERNAME&login=&87cea62ef1ee78b6980dccbf937ec542=YOURPASSWORD&password=&user_session%5Bremember_me%5D=1 My ubot code : ui text box("username :", #username)ui text box("password :", #password)ui stat monitor("uft8 :", "{#utf8}")ui stat monitor("auth token :", #auth token)ui stat monitor("timestamp :", #timestamp)ui stat monitor("spinner :", #spinner)ui stat monitor("login :", #login)ui stat monitor("jsformlogin :", #jsformlogin)ui stat monitor("jsformpassword :", #jsformpassword)dividerset(#auth token, "", "Global")set(#timestamp, "", "Global")set(#spinner, "", "Global")set(#login, "", "Global")set(#get, "", "Global")set(#post, "", "Global")set(#get2, "", "Global")set(#fiverr login, "", "Global")set(#utf8, "%E2%9C%93", "Global")set(#jsformlogin, "", "Global")set(#jsformpassword, "", "Global")dividerplugin command("HTTP post.dll", "Clear Cookies", "http://www.fiverr.com")load html("")plugin command("HTTP post.dll", "http set encoding", "UTF8")plugin command("HTTP post.dll", "http max redirects", 50)dividerset(#get, $plugin function("HTTP post.dll", "$http get", "https://fiverr.com", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://www.fiverr.com/", "", ""), "Global")load html(#post)set(#get2, $plugin function("HTTP post.dll", "$http get", "https://fr.fiverr.com/login", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://fiverr.com", "", ""), "Global")load html(#get2)set(#timestamp, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=name\\=\\\"timestamp\\\"\\ type\\=\\\"hidden\\\"\\ value\\=\\\").+(?=\\\"\\ \\/\\>\\<input\\ id\\=\\\"spinner\\\")"), "Global")set(#auth token, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=var\\ AUTH_TOKEN\\ \\=\\ \\\').+(?=\\\'\\;)"), "Global")set(#spinner, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=name\\=\\\"spinner\\\"\\ type\\=\\\"hidden\\\"\\ value\\=\\\").+(?=\\\"\\ \\/\\>)"), "Global")set(#login, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=\\<input\\ class\\=\\\"js\\-form\\-login\\\"\\ id\\=\\\").+(?=\\\"\\ maxlength\\=)"), "Global")set(#jsformlogin, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=\\<input\\ class\\=\\\"js\\-form\\-login\\\"\\ id\\=\\\").+(?=\\\"\\ maxlength\\=\\\"70\\\")"), "Global")set(#jsformpassword, $plugin function("File Management.dll", "$Find Regex First", #get2, "(?<=\\<input\\ class\\=\\\"js\\-form\\-password\\\"\\ id\\=\\\").+(?=\\\"\\ placeholder\\=\\\")"), "Global")set(#jsformpassword, $replace(#jsformpassword, "name=\"", ""), "Global")set(#jsformpassword, $replace(#jsformpassword, "\"", ""), "Global")add list to list(%jsformpassword, $list from text(#jsformpassword, " "), "Delete", "Global")set(#jsformpassword, $list item(%jsformpassword, 0), "Global")clear list(%jsformpassword)pause scriptdividerplugin command("HTTP post.dll", "http max redirects", 50)set(#fiverr login, $plugin function("HTTP post.dll", "$http post", "https://fiverr.com/user_sessions", "utf8={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #utf8)}&authenticity_token={$plugin function("HTTP post.dll", "$http text encoder", "url decode", #auth token)}×tamp={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #timestamp)}&spinner={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #spinner)}&{$plugin function("HTTP post.dll", "$http text encoder", "url encode", #jsformpassword)}={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #username)}&login={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #login)}={$plugin function("HTTP post.dll", "$http text encoder", "url encode", #password)}&password=&user_session%5Bremember_me%5D=1", "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36", "https://www.fiverr.com", "", 20), "Global")load html(#fiverr login) THANKS ! Manu Quote Link to post Share on other sites
ecbzh 47 Posted June 17, 2015 Author Report Share Posted June 17, 2015 Hi Ubotters, I still need help and can’t connect to fiverr using http plugin. Any help will be appreciated. Thanks. Manu Quote Link to post Share on other sites
itexspert 47 Posted June 17, 2015 Report Share Posted June 17, 2015 If you remember i told you this was complex and Websites like fiverr are especially hard to crack using http post plugin! Personally i don't have an answer to this but i hope you find a solution! 1 Quote Link to post Share on other sites
Aymen 385 Posted June 24, 2015 Report Share Posted June 24, 2015 there is couple of headers that you may want to send : Accept: text/javascriptX-CSRF-Token: {token code here} give it a try 1 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.