Bot-Factory 602 Posted June 18, 2014 Report Share Posted June 18, 2014 Update: Looks like some other cookie characters also don't work correctly: Browser: Http Plugin: Here is the cookie strong(slightly modified for security reasons)GAPS=1:8pQ-Qxxxx-xxxxx_GQExxxxxXA:Fc1u2y_t_VlCEJAK; GALX=xxxxxx; NID=67=lV5Yir0qFpM1h3iByB0qPl_kFAszSjlp-xxxxx-l3kSszjABLNHe-xxxxxx-xxxxxx As you can see the NID cookie string should be:67=lV5.... A fix for this would be really great! Dan Quote Link to post Share on other sites
Bot-Factory 602 Posted June 18, 2014 Report Share Posted June 18, 2014 Another thing I noticed: In Advanced cookie mode the http plugin sometimes duplicates cookies: Quote Link to post Share on other sites
Bot-Factory 602 Posted June 18, 2014 Report Share Posted June 18, 2014 Test Script for cookie cut off: plugin command("HTTP post.dll", "http container") { plugin command("HTTP post.dll", "http cookiecontainer mode", "Basic") plugin command("HTTP post.dll", "http cookies string", "aymen=66=66&aymen2=\"HalloWorldCookie=99\"") set(#get, $plugin function("HTTP post.dll", "$http get", "http://www.google.com", $plugin function("HTTP post.dll", "$http useragent string", "Chrome 32.0 Win7 64-bit"), "", "", ""), "Global")}plugin command("HTTP post.dll", "http container") { plugin command("HTTP post.dll", "http cookiecontainer mode", "Basic") plugin command("HTTP post.dll", "http cookies string", "aymen2=\"HalloWorldCookie=99\"&aymen=66=66") set(#get, $plugin function("HTTP post.dll", "$http get", "http://www.google.com", $plugin function("HTTP post.dll", "$http useragent string", "Chrome 32.0 Win7 64-bit"), "", "", ""), "Global")}plugin command("HTTP post.dll", "http container") { plugin command("HTTP post.dll", "http cookiecontainer mode", "Basic") plugin command("HTTP post.dll", "http cookies string", "aymen2=\"HalloWorldCookie=99\"") set(#get, $plugin function("HTTP post.dll", "$http get", "http://www.google.com", $plugin function("HTTP post.dll", "$http useragent string", "Chrome 32.0 Win7 64-bit"), "", "", ""), "Global")} Just sniff the http traffic with fiddler and you will see that the cookies are not sent correctly. They are stripped of after the second " and/or the second = Not sure if other characters are also affected. I just looked at some of the websites where I had login issues in the past, and ALL of them have this cookie issue. So I think this is a very critical bug for all http plugin users. Dan Quote Link to post Share on other sites
Bot-Factory 602 Posted June 19, 2014 Report Share Posted June 19, 2014 @Aymen: Here's a better test script. You will see the response in the browser directly. No need to sniff the http commuinication with fiddler or anything: ui drop down("Cookie Test String", "normal=normal,nid=67=123123", #teststring)ui button("Start Test") { TestHttpCookie(#teststring)}define TestHttpCookie(#cookiestring) { plugin command("HTTP post.dll", "http container") { plugin command("HTTP post.dll", "http cookiecontainer mode", "Basic") plugin command("HTTP post.dll", "http cookies string", #cookiestring) set(#get, $plugin function("HTTP post.dll", "$http get", "http://echo.httpkit.com/", $plugin function("HTTP post.dll", "$http useragent string", "Chrome 32.0 Win7 64-bit"), "", "", ""), "Global") load html(#get) }} The 3 test cases that I found who are not working with http plugin (working fine with Curl): Quote Link to post Share on other sites
Aymen 385 Posted June 19, 2014 Author Report Share Posted June 19, 2014 Got it Dan i'll look into it,I'll see if it is my code or a limitation of the HttpWebRequest class Quote Link to post Share on other sites
Bot-Factory 602 Posted June 19, 2014 Report Share Posted June 19, 2014 Got it Dan i'll look into it,I'll see if it is my code or a limitation of the HttpWebRequest classGreat. Thanks Aymen. I C# it's working fine for me as well: private void MakeRequests(){HttpWebResponse response; if (Request_echo_httpkit_com(out response)){response.Close();}} private bool Request_echo_httpkit_com(out HttpWebResponse response){response = null; try{HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://echo.httpkit.com/"); request.UserAgent = "curl/7.37.0";request.Accept = "*/*";request.Headers.Set(HttpRequestHeader.Cookie, @"nid=pel=99878979"); response = (HttpWebResponse)request.GetResponse();}catch (WebException e){if (e.Status == WebExceptionStatus.ProtocolError) response = (HttpWebResponse)e.Response;else return false;}catch (Exception){if(response != null) response.Close();return false;} return true;} Not sure if that's what you use as well in the plugin? Dan Quote Link to post Share on other sites
Aymen 385 Posted June 20, 2014 Author Report Share Posted June 20, 2014 Ok hopefully everything has been fixed , i'll test everything tomorrow , if everything looks good i'll send out the update! Quote Link to post Share on other sites
Bot-Factory 602 Posted June 20, 2014 Report Share Posted June 20, 2014 Ok hopefully everything has been fixed , i'll test everything tomorrow , if everything looks good i'll send out the update! Awesome Aymen! As soon as I get my hands on it, I will release some additional tutorial videos. They are currently on hold because I can not login to those sites because of the cookie error. CheersDan Quote Link to post Share on other sites
jamesfar 15 Posted June 21, 2014 Report Share Posted June 21, 2014 Ok hopefully everything has been fixed , i'll test everything tomorrow , if everything looks good i'll send out the update! Awesome Aymen! As soon as I get my hands on it, I will release some additional tutorial videos. They are currently on hold because I can not login to those sites because of the cookie error. CheersDan WOW cool. Can't wait Quote Link to post Share on other sites
runsoftware 14 Posted June 21, 2014 Report Share Posted June 21, 2014 what does this error mean? during a http get loading the html it shows me this: "The underlying connection was closed: An unexpected error occurred on a receive." When using a private proxy btw with user and pass... Quote Link to post Share on other sites
devpro 4 Posted June 21, 2014 Report Share Posted June 21, 2014 Ok hopefully everything has been fixed , i'll test everything tomorrow , if everything looks good i'll send out the update! Great news. Thank you for updating all the stuff. Quote Link to post Share on other sites
Bot-Factory 602 Posted June 21, 2014 Report Share Posted June 21, 2014 what does this error mean?during a http getloading the html it shows me this:"The underlying connection was closed: An unexpected error occurred on a receive." When using a private proxy btw with user and pass... The cookie error I mentioned in this thread is related to some special cookie strings who are not passed correctly by the http plugin. For get and post requests. But your error message sounds like something different. Without seeing your code it's hard to tell what the problem is. I highly recommend to look at the http communication with a webdebugger like fiddler. That will give you a lot of details for troubleshooting. Dan Quote Link to post Share on other sites
runsoftware 14 Posted June 21, 2014 Report Share Posted June 21, 2014 The cookie error I mentioned in this thread is related to some special cookie strings who are not passed correctly by the http plugin. For get and post requests. But your error message sounds like something different. Without seeing your code it's hard to tell what the problem is. I highly recommend to look at the http communication with a webdebugger like fiddler. That will give you a lot of details for troubleshooting. Danbro the code is not anything special, its just a set variable with a http get inside of it, and inside this get request the target site and a ip:port:user:pass proxy set(#a, $plugin function("HTTP post.dll", "$http get", "http://twitter.com", "", "", "put your private proxy here", ""), "Global") load html(#a) Quote Link to post Share on other sites
Bot-Factory 602 Posted June 21, 2014 Report Share Posted June 21, 2014 bro the code is not anything special, its just a set variable with a http get inside of it, and inside this get request set(#a, $plugin function("HTTP post.dll", "$http get", "http://twitter.com", "", "", "put your private proxy here", ""), "Global") load html(#a) I did not mean that your code is special :-) I thought you asked for the cookie error. But I understood your first post wrong. Sorry. I just tested http get with one of my proxy servers and it worked fine. So this is probably related to your proxy server somehow. Try to use the proxy in your browser and test if you can access some websites. Dan Quote Link to post Share on other sites
runsoftware 14 Posted June 21, 2014 Report Share Posted June 21, 2014 I did not mean that your code is special :-) I thought you asked for the cookie error. But I understood your first post wrong. Sorry. I just tested http get with one of my proxy servers and it worked fine. So this is probably related to your proxy server somehow. Try to use the proxy in your browser and test if you can access some websites. DanDid you test with a private proxy?btw my proxy works with a normal browser Quote Link to post Share on other sites
drhum 3 Posted June 21, 2014 Report Share Posted June 21, 2014 I think that could be the problem. Public proxies always have an issue. And it's not one of the top things looked upon too. Quote Link to post Share on other sites
runsoftware 14 Posted June 21, 2014 Report Share Posted June 21, 2014 I think that could be the problem. Public proxies always have an issue. And it's not one of the top things looked upon too. mate i was refering to private proxies, public ones work well for me Quote Link to post Share on other sites
Bot-Factory 602 Posted June 21, 2014 Report Share Posted June 21, 2014 Did you test with a private proxy?btw my proxy works with a normal browser I just tested it with a private proxy yes. It's working fine for me With authentication and also without proxy authentication. Dan Quote Link to post Share on other sites
Aymen 385 Posted June 23, 2014 Author Report Share Posted June 23, 2014 Http Post Plugin Update 2.5.2 Log :-Removed container mode - plugin should work without the container (command still exists so you can update your current projects , but will be removed in the next version)-Fixed cookies duplication issue-Fixed cookies sometimes trimming second '=' in the cookie string-Added command http clear objects (used to collect used objects in threads to reduce memory usage , should be called just before closing a thread)-Some minor fixes and improvementsPS : make sure to run a fair amount of tests on this version before deploying in your current projects , I've done my tests but there may be few problems i left behind! Quote Link to post Share on other sites
Bot-Factory 602 Posted June 23, 2014 Report Share Posted June 23, 2014 Http Post Plugin Update 2.5.2 Log : -Removed container mode - plugin should work without the container (command still exists so you can update your current projects , but will be removed in the next version)-Fixed cookies duplication issue-Fixed cookies sometimes trimming second '=' in the cookie string-Added command http clear objects (used to collect used objects in threads to reduce memory usage , should be called just before closing a thread)-Some minor fixes and improvements PS : make sure to run a fair amount of tests on this version before deploying in your current projects , I've done my tests but there may be few problems i left behind!Thanks Aymen. I will run a couple of tests :-) Dan Quote Link to post Share on other sites
jamesfar 15 Posted June 23, 2014 Report Share Posted June 23, 2014 Http Post Plugin Update 2.5.2 Log : -Removed container mode - plugin should work without the container (command still exists so you can update your current projects , but will be removed in the next version)-Fixed cookies duplication issue-Fixed cookies sometimes trimming second '=' in the cookie string-Added command http clear objects (used to collect used objects in threads to reduce memory usage , should be called just before closing a thread)-Some minor fixes and improvements PS : make sure to run a fair amount of tests on this version before deploying in your current projects , I've done my tests but there may be few problems i left behind! what is this "used objects" is all about Aymen? Quote Link to post Share on other sites
Aymen 385 Posted June 23, 2014 Author Report Share Posted June 23, 2014 what is this "used objects" is all about Aymen? C# is an object oriented programming language when you create a new variable you pretty much created a new object! Quote Link to post Share on other sites
Team_LX 3 Posted June 23, 2014 Report Share Posted June 23, 2014 i still have not got this plugin to work for me ui text etc.. will not show after i compile idk why it does it one other plugins as well even if this plugin is the only one i have installed Quote Link to post Share on other sites
Bot-Factory 602 Posted June 23, 2014 Report Share Posted June 23, 2014 i still have not got this plugin to work for me ui text etc.. will not show after i compile idk why it does it one other plugins as well even if this plugin is the only one i have installed Upload your code and the compiled bot. Dan Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 23, 2014 Report Share Posted June 23, 2014 Hi Aymen, Just to be clear we don't need to use the HTTP Container command anymore? 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.