RedSails - Bypassing host based security monitoring and logging

A post-exploitation tool capable of:
  • maintaining persistence on a compromised machine
  • subverting many common host event logs (both network and account logon)
  • generating false logs / network traffic
Based on [PyDivert] (, a Python binding for WinDivert, a Windows driver that allows user-mode applications to capture/modify/drop network packets sent to/from the Windows network stack.
Built for Windows operating systems newer than Vista and Windows 2008 (including Windows 7, Windows 8 and Windows 10).


Redsails has dependencies PyDivert and WinDivert. You can resolve those dependencies by running:

pip install pydivert

pip install pbkdf2

Pycrypto is also needed.

easy_install pycrypto

Pycrypto may have a dependency on [Microsoft Visual C++ Compiler for Python 2.7] (


  • Server (victim host you are attacking)

    Or if the victim does not have python installed, you can run provided exe (or compile your own! instructions below)


  • Client (attacker) <ip> <port>

Creating an executable

To compile an exe (for deployment) inlieu of the python script, you will need pyinstaller:

pip install pyinstaller

Then you can create the exe: -F --clean redSails.spec

Powered by Blogger.