Meterpreter over ngrok

According to its website (, ngrok is a secure introspectable tunnel to the localhost. This exposes local servers behind NATs and firewalls to the public internet over secure tunnels. So, how do we use ngrok?

Let's start by registering to it:

Upon successful registration, you'll get the required Tunnel Authtoken. Let's copy this token:

We downloaded the ngrok package for macOS and, after uncompressing it, we got a single executable file named ngrok:

Let's first use our auth token so that whenever the ...

Get Hands-On Red Team Tactics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.