All Questions
20 questions
0
votes
1
answer
263
views
Downloaded PDF is corrupted, how can I download it correctly using Python?
I am trying to download pdf using requests(python 2.7), and, this is the code that I am using:
file_resp = requests.post(file_url, data=payload, headers={"Referer":file_referer_url})
with ...
0
votes
1
answer
4k
views
Scapy HTTPS\TLS packets
I'm trying to use Scapy to sniff my HTTPS network packets. I've already installed scapy_ssl_tls:
Requirement already satisfied: scapy-ssl_tls in path\python36\lib\site-packages (2.0.0)
Requirement ...
0
votes
1
answer
251
views
Python ssl/https requests.get call fails
I have the following snippet of python (2.7.14) which is throwing an exception on the requests.get call. This is running on a FreeBSD server, with an apache front end and all http traffic being ...
0
votes
1
answer
487
views
pycurl error: Transfer-Encoding in 200 response from HTTPS proxy
I am trying to write an HTTP client using pycurl library which talks to a origin server via a proxy.
Expecting below flow -
1. HTTP Client -> Proxy: SSL Exchange ## SUCCESS
2. HTTP Client -> ...
1
vote
1
answer
11k
views
Python SOCKS5 proxy client HTTPS
I am trying to make request through a SOCKS5 proxy server over HTTPS but it fails or returns the empty string. I am using PySocks library.
Here is my example
WEB_SITE_PROXY_CHECK_URL = "...
2
votes
1
answer
8k
views
"ssl.SSLError: ... No shared cipher" when trying to handle HTTPS requests webserver
I'm trying to extend a web server I made to handle HTTPS requests via SSL.
My prof said we should use ssl.wrap_socket and gave us the cipher to use.
Here is what I have so far:
from socket import *
...
0
votes
0
answers
220
views
Is it possible to create dynamic HTTP Handlers?
I've browsed through a ton of the material here at Stackoverflow and you've all done an amazing job of answering all the questions I've had. However, I am currently writing my own handlers for my ...
5
votes
2
answers
9k
views
How to set trust-store used by Python's httplib?
Per default, Python's httplib.HTTPSConnection is using the system's trust store to validate a HTTPS certificate. (How) is it possible to set a different CA list to do the validation, replacing the ...
1
vote
1
answer
624
views
Not receiving response from HTTPS site using request module
I am trying to access
https://www.exploit-db.com/remote
Using request module of python, however not getting the response from page. I want to visit all the links from above page.
mfun():
...
3
votes
1
answer
1k
views
How to connect with SSL to HTTPS server in Python 2.7.10+ and make certificate trusted?
I wan to connect to https server using ssl with certificate verification and host name validation (do not suggest to switch off verification since it working). How to do it with this code?
import ssl
...
2
votes
1
answer
7k
views
python ssl error violation of protocols
I'm trying to use python to login and download some files, using the code:
import sys
import urllib
import urllib2
import httplib, ssl, socket
class HTTPSConnectionV3(httplib.HTTPSConnection):
...
2
votes
0
answers
257
views
urllib2 - post request returns 'your browser does not support iframes' error
Im performing a simple post request with urllib2 on a HTTPS url, i have one parameter and a JSESSIONID from a logged-in user. However when i Post i get 'your browser does not support iframes' error, ...
1
vote
1
answer
736
views
Not able to login to https site(https://malwr.com) through python script
I need to login to malwr site through python script
I tried with various modules like machanize module,request module, however no success to login to site using scrpt.
I want to create automation ...
7
votes
4
answers
11k
views
Test an HTTPS proxy in python
I manage a lot of HTTPS proxys (That's proxies which have an SSL connection of their own). I'm building a diagnostic tool in python that attempts to connect to a page through each proxy and email me ...
0
votes
1
answer
117
views
How to ensure timeout exception is thrown in HTTPS request
The timeout subject has been covered many times for HTTP, but I'm trying to test a HTTPS connection through a proxy.
urllib2, mechanize, httplib, requests are just some of the libraries that are ...