Skip to content

Setup

Setup

Set Windows Code Scanner:

SET HTTPS_PROXY=proxy.example.com:8080

REM Windows Java Home
$Env:JAVA_HOME = "C:\Program Files\JDK\1.8\"
set JAVA_OPTS="-Dcom.sun.security.enableAIAcaIssuers=true"

REM Install python packages without admin
./Scripts/pip.exe install requests --user

CLOC

Latest Release
Faster Cloc

Fortify

Install again and specify the proxy server and port

sourceanalyzer -b mybuild clang -ObjC HelloWorld.m

C:\Fortify\Fortify_SCA_and_Apps_18.20\bin\sourceanalyzer.exe -b android2 .\gradlew -a bundleRelease
C:\Fortify\Fortify_SCA_and_Apps_18.20\bin\sourceanalyzer.exe -b android2 -scan

Dependency Checker

  1. Download from https://owasp.org/www-project-dependency-check/
  2. Run ./bin/dependency-check.sh --updateonly --proxyserver=127.0.0.1 --proxyport=8080

Maven

Run command:

mvn org.owasp:dependency-check-maven:5.3.1:check

If run in to Failed to initialize the RetireJS repo error run version 3.2.1

Cygwin Package Manager

Install The Package Manager:

setup-x86_64.exe -q -P wget,tar,qawk,bzip2,subversion,vim

wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin

Gradle

Add proxy settings to the gradle.properties file

# Add proxy settings 
systemProp.http.proxyHost=proxy.example.com
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=proxy.example.com
systemProp.https.proxyPort=8080

Android

Run Emulator:

PS C:\Users\user1\AppData\Local\Android\Sdk\emulator> .\emulator.exe -avd Nexus_5X_API_19

Setting up Proxy on a Emulator

Node

Run Node Audit through burp to forward proxy:

npm config set proxy http://127.0.0.1:8080
npm config set https-proxy http://127.0.0.1:8080
npm config set strict-ssl false --global

npm audit --registry=https://registry.npmjs.org/ --parseable

Gems

Install through proxy:

sudo gems install cocoapods --https-proxy=http://proxy.example.com:8080

Checkmarx

Link