Giter VIP home page Giter VIP logo

escobar's Introduction

Hi there ๐Ÿ‘‹

I am a software and security engineer!

Savely Krasovsky's stats

escobar's People

Contributors

ctophs avatar dependabot-preview[bot] avatar dependabot[bot] avatar savely-krasovsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

escobar's Issues

proxy response 407 when using http instead of https

Hi,

downstream proxy answers with 407 even though at least req in ServeHTTP contains the header so I assume it is indeed sent to the proxy (cannot sniff).

When I use a https target using CONNECT method it works.

escobar mode == auto

pip cannot read response from proxy connection: malformed HTTP status code "html"

$ escobar -d http://proxy.evil.corp:3128 -vvv
{"level":"info","ts":1706514562.1366453,"msg":"Listening socket","address":"127.0.0.1:3128"}
{"level":"info","ts":1706514562.1369123,"msg":"Serving HTTP requests","address":"127.0.0.1:3128"}
{"level":"info","ts":1706514562.1369123,"msg":"Listening and serving HTTP requests","address":"127.0.0.1:3129"}
{"level":"debug","ts":1706514562.1409388,"msg":"Request started","http_proto":"HTTP/1.1","http_method":"CONNECT","user_agent":"Go-http-client/1.1","uri":"www.google.com:443"}
{"level":"debug","ts":1706514562.2087035,"msg":"CONNECT tunnel opened","http_proto":"HTTP/1.1","http_method":"CONNECT","user_agent":"Go-http-client/1.1","uri":"www.google.com:443"}
$ export | grep proxy
declare -x http_proxy="http://127.0.0.1:3128"
declare -x https_proxy="http://127.0.0.1:3128"
declare -x no_proxy=".evil.corp,localhost,127.0.0.1
$ pip install yt-dlp -vvv
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Using pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-iq8ggh
Created temporary directory: /tmp/pip-req-tracker-fK4gKe
Initialized build tracking at /tmp/pip-req-tracker-fK4gKe
Created build tracker: /tmp/pip-req-tracker-fK4gKe
Entered build tracker: /tmp/pip-req-tracker-fK4gKe
Created temporary directory: /tmp/pip-install-1VeclH
1 location(s) to search for versions of yt-dlp:
* https://pypi.org/simple/yt-dlp/
Fetching project page and analyzing links: https://pypi.org/simple/yt-dlp/
Getting page https://pypi.org/simple/yt-dlp/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/yt-dlp/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/yt-dlp/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 502 Bad Gateway',))': /simple/yt-dlp/
{"level":"debug","ts":1706514592.1841815,"msg":"Request started","http_proto":"HTTP/1.0","http_method":"CONNECT","user_agent":"","uri":"pypi.org:443"}
{"level":"error","ts":1706514592.1899867,"msg":"https: proxy error","http_proto":"HTTP/1.0","http_method":"CONNECT","user_agent":"","uri":"pypi.org:443","error":"cannot read response from proxy connection: malformed HTTP status code \"html\""}

an option to not die on errors?

Hi,
can I tell escobar to not die on errors reaching downstream proxy but retry? On my system there is a timeframe when escobar is already started but network flaps once or twice which often leads to escobar shutting down.

It is started from within wsl2 (and I do not use a service supervisor like systemd there that would be able to fix it by itsself). Yes, wsl is a pain..

Add PAC support for upstream proxy

Hello!
Having PAC support on upstream proxies would be super handy
We're using PAC to nail down local services, and it takes the load off the proxy server
It would be cool to see support for this

NTLM support

Any chance to support NTLM v2 authentication using https://github.com/Azure/go-ntlmssp? This would make escobar a complete solution for most of corporate environments using authenticated proxies. cntlm is not reliable enough and not really updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.