Quantcast

Jump to content


Photo

Strange POST trouble


  • Please log in to reply
6 replies to this topic

#1 Kway

Kway
  • Proud to be a Brony

  • 1242 posts


Users Awards

Posted 27 November 2016 - 10:47 PM

I'm playing around and trying to build a FR bot but having an issue when trying to login. What I'm using:

  • Windows
  • Python 2.7
  • Tornado 4.4 (SimpleAsyncHTTPClient)
  • unicode_literals
  • urllib.urlencode

FR constantly returns incorrect username/password. There is an account lock that I know works however I haven't been able to trigger once during debugging.

 

I have copy and pasted my setup, replaced tornado with mechanize and it works without issue.

 

Hardcoding the body generated from my tornado client fails whereas hardcoding the body generated by mechanize client works perfectly. Both used urllib.urlencode and generate completely identical bodies. Enabling unicode_literals didn't affect mechanize and FR.

 

I am completely lost so if anybody has any ideas, please post.



#2 Nano

Nano
  • a delicious kiwi

  • 325 posts


Users Awards

Posted 27 November 2016 - 11:24 PM

What I normally do in situations like these is open up Fiddler2 and log the working request and not working request, then compare everything, generated postdata, headers etc.



#3 Kway

Kway
  • Proud to be a Brony

  • 1242 posts


Users Awards

Posted 27 November 2016 - 11:34 PM

What I normally do in situations like these is open up Fiddler2 and log the working request and not working request, then compare everything, generated postdata, headers etc.

 

Proxy isn't an option. Wireshark isn't an option either as it is a pain to decrypt the requests. Also tried capturing the requests with a https debug service but all the request data is exactly the same.



#4 Nano

Nano
  • a delicious kiwi

  • 325 posts


Users Awards

Posted 27 November 2016 - 11:59 PM

Proxy isn't an option. Wireshark isn't an option either as it is a pain to decrypt the requests. Also tried capturing the requests with a https debug service but all the request data is exactly the same.

 

Shouldn't need to set a proxy up for it. I don't when using python.



#5 Kway

Kway
  • Proud to be a Brony

  • 1242 posts


Users Awards

Posted 28 November 2016 - 01:23 AM

Shouldn't need to set a proxy up for it. I don't when using python.

Checked and Tornado completely bypasses it.



#6 Daviid

Daviid
  • 73 posts


Users Awards

Posted 30 November 2016 - 03:47 AM

Checked and Tornado completely bypasses it.

I use Charles Proxy and set my proxy to 127.0.0.1



#7 txtsd

txtsd
  • 33 posts

Posted 10 December 2016 - 09:39 AM

Charles is the way to go




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users