Skip to content

mangpo/cacheall-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caching proxy server caches all the responses of all http requests that go through the proxy server. If a client sends a HTTPS request, our proxy will not cache that. However, if the client sends a HTTP request which, in turn, redirects to a HTTPS request, our tool handles such scenario. If an original page contains HTTPS links, we rely on SSL Strip for modifying all HTTPS links to HTTP links.

Features

  • Cache every response regardless of internet caching policy.
  • Cache HTTPS responses when redirecting, but do not handle direct HTTPS requests. Rely on SSL Strip for this HTTPS support.

Installations

Download sslstrip. Run tar zxvf sslstrip-0.9.tar.gz

Running Caching Proxy Server

  • Start SSL Strip proxy server.
python sslstrip.py -l 1235
  • Start the proxy server.
python proxyserv.py

It will create default .cache directory to store cached pages from the current path you run. You can specify cache directory by running the program with -d flag.

python proxyserv.py -d path/to/cache/dir

Specify -i flag with string to be inserted as the element in . For example,

python proxyserv.py -i "<script>alert(\"I am an alert box.\");</script>"

Specify -c flag wihtout argument to make the proxy server dumps content-type.csv file that counts the numbers of requests categorized by Content-Type.

python proxyserv.py -c
  • Configure client programs to direct HTTP traffic through localhost port 1234. Do not direct HTTPS or SSL through the proxy. We only handle HTTPS using SSL Strip.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published