Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
twoface — "Two-Face" Rust binary on Linux | Kitploit
Tools/GitHubGitHub/synacktiv/twoface
IDS/IPS EvasionPenetration TestingRed TeamingPayload Development
GitHubsynacktiv/twoface

twoface

"Two-Face" Rust binary on Linux

View Repository
5244610 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

"Two-Face" Rust Linux binary

Two-Face Rust Linux binary

An executable file that runs a harmless program most of the time, but will run a different, hidden code if deployed on a specific target host.

See Creating a "Two-Face" Rust binary on Linux.

Usage

You need a Rust build environment for example from rustup.

A nightly toolchain is required (to support the ! "never" type).

The test-example script will build and run a complete example.

The following packages are provided in the repository:

  • evil_binary: an example of "hidden" binary, that will be run when host data matches what was set in example/host.json
  • harmless_binary: an example of "normal" binary that will be run on other hosts
  • example: the resulting "Two-Face" binary that will pack both previous binaries, and dispatch execution to either one depending on the host
  • twoface: the library that provides the build-time and run-time features
Download Tool