repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
proxy-bypass.mdMarkdown115 lines3.8 KiBsource raw download

title: "Proxy Bypass" section: "Red Team" sectionSlug: "redteam" sourcePath: "docs/redteam/evasion/proxy-bypass.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/redteam/evasion/proxy-bypass.md" sha: "203bb0c0b290" isIndex: false#

Proxy Bypass#

An HTTP proxy server acts as an intermediary between a client (like a web browser) and a web server. It processes client requests for web resources, fetches them from the destination server, and returns them to the client.

Summary#

Methodology#

Discover Proxy Configuration#

PAC Proxy#

PAC (Proxy Auto-Configuration) is a method to automatically determine whether web traffic should go through a proxy server. It uses a .pac file that contains a JavaScript function called FindProxyForURL(url, host).

Example:

function FindProxyForURL(url, host) {
    if (dnsDomainIs(host, '.example.com')) {
        return 'DIRECT';
    }
    return 'PROXY proxy.example.com:8080';
}

Tools:

Common Bypass#

References#