HTTP Proxy Override

Set up a HTTP proxy forwarding for your app. Usually with combination of Burp Suite web proxy.

OS Linux - Terminal

The app or a library has to be coded to reflect these specific environment variables. Otherwise, explore a specific app configuration or CLI parameters for HTTP proxy features.

export http_proxy=''    
export https_proxy=''

You can unset back the variables by

unset http_proxy
unset https_proxy


msf> set Proxies http:

There are different types of proxies you can define.

set Proxies socks4:
set Proxies socks5:

Java (VM)

Forward HTTP/HTTPS traffic for your Java app to Burp Suite Proxy. The same analogy applies to FTP, explore the following Java documentation.


Before you start your java application, add the following parameters to JVM.

java -Dhttp.proxyHost= -Dhttp.proxyPort=8080



HTTPS Troubleshooting - add the following JVM parameter to track SSL/TLS handshake and certificate look up errors,handshake

Create Java Keystore

Briefly, Java Key Store (JKS) is a secured storage protected by password (trustStorePassword).

cd %JAVA_HOME%/bin
keytool.exe -keystore C:/Users/Administrator/.keystore -genkey -alias client

Import certificate (CER or DER)

keytool.exe -importcert -file certificate.cer -keystore C:\Users\Administrator\.keystore -alias "BurpCert" 

Visual Studio 2015|2019

Find VS software home (installation directory)

%ProgramFiles%\Microsoft Visual Studio\2019\Enterprise\Common7\IDE%

edit devenv.exe.config file

<defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy bypassonlocal="true" proxyaddress="" />

with authentication option

<defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy bypassonlocal="true" proxyaddress="" />

Last updated