Betwixt : Web Debugging Proxy Based On Chrome Devtools Network Panel

Betwixt is a web Debugging Proxy based on Chrome DevTools Network panel.Betwixt will help you analyze web traffic outside the browser using familiar Chrome DevTools interface.

Installing

Download the latest release for your operating system, build your own bundle or run Betwixt from the source code.

Setting Up

In order to capture traffic, you’ll have to direct it to the proxy created by Betwixt in the background (http://localhost:8008).

If you wish to analyze traffic system wide:

  • on macOS – System Preferences → Network → Advanced → Proxies → Web Proxy (HTTP)
  • on Windows – Settings → Network & Internet → Proxy
  • on Ubuntu – All Settings → Network → Network Proxy

If you want to capture traffic coming from a single terminal use export http_proxy=http://localhost:8008.

Also Read – RedRabbit : Red Team PowerShell Script

Capturing encrypted traffic (HTTPS) requires additional step,  follow below steps for instructions.

HTTPS

Root Certificate:

In order to capture encrypted traffic, you’ll have to install root certificate provided by Betwixt. The certificate is generated for you when you first launch Betwixt. You can quickly locate it on disk using Tools > Root Certificate menu.

ca.pem has to be imported and marked as trusted.

On OS X this is done via Keychain app as shown below.

After certificate is installed, expand the Trust section and toggle the first dropdown to Always Trust:

On Windows use certmgr.

Proxy

Direct the traffic to the proxy created by Betwixt in the background (http://localhost:8008).

If you wish to analyze traffic system wide:

  • on OS X – System Preferences → Network → Advanced → Proxies → Secure Web Proxy (HTTPS)
  • on Ubuntu – All Settings → Network → Network Proxy
  • on Windows – Settings → Network & Internet → Proxy

If you want to capture traffic coming from a single terminal use export https_proxy=http://localhost:8008. Note that NodeJS has a hardcoded list of CA certificates so it doesn’t care for Keychain/certmgr/etc. You may need to use export NODE_TLS_REJECT_UNAUTHORIZED=0 to overcome this issue.

R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

1 week ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

2 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

2 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago