Skip to content

Dependencies

Maxime Landon edited this page Feb 22, 2020 · 12 revisions

Using Docker

The Dockerfile build of Wiregost is mostly designed to run the unit tests but includes both MinGW and Metasploit. If you plan to run the server using Docker you'll need to forward the appropriate TCP ports (e.g. 80, 443, 31337) yourself.


Using the binaries & Compiled from Source

Wiregost has two optional dependencies for optional features, MinGW and Metasploit.

  • To enable shellcode/staged payloads, as well as many Windows functionality in implants, you will need to install MinGW.
  • To enable using MSF listeners, or using MSF payloads from within the implants, you will need Metasploit installed.

MinGW Setup

Debian/Ubuntu:

apt-get install mingw-w64 binutils-mingw-w64 g++-lingw-w64

Arch Linux:

The install in Arch is a bit longer, as no MinGW binaries are available in the core repositories. Many MinGW tools and dependencies are maintained by Martchus in his user repository ownstuff. To install them:

  • Add these lines to /etc/pacman.conf (mirror list):
SigLevel = Optional TrustAll
Server = https://ftp.f3l.de/~martchus/$repo/os/$arch
Server = https://martchus.no-ip.biz/repo/arch/$repo/os/$arch

[ownstuff]
SigLevel = Optional TrustAll
Server = https://ftp.f3l.de/~martchus/$repo/os/$arch
Server = https://martchus.no-ip.biz/repo/arch/$repo/os/$arch```

* Then run ```sudo pacman -Syu``` to update the system
* Then run 
        ```
        sudo pacman -S mingw-w64-binutils mingw-w64-gcc
        ```

You should be good to go with MinGW at this point.

#### MacOS:

```brew install mingw-w64```

---

### Metasploit Setup

Wiregost expects Metasploit to be Version 5 or later !!
It is recommended to use the [nightly framework installers](https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers), but installing from source should also work fine.

Clone this wiki locally