Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
metasploit_in_termux — Install and run Metasploit Framework 6 on Android via Termux with automated setup, payload generation (msfvenom), and full msfconsole access for mobile penetration testing. | Kitploit
Tools/GitHubGitHub/gushmazuko/metasploit_in_termux
Android SecurityPenetration Testing FrameworksExploit FrameworksMobile SecurityPayload Development
GitHubgushmazuko/metasploit_in_termux

metasploit_in_termux

Install and run Metasploit Framework 6 on Android via Termux with automated setup, payload generation (msfvenom), and full msfconsole access for mobile penetration testing.

View Repository
2.1k349902 days agoReviewed by Kitploit
Share

Metasploit Framework in Termux

Installs and maintains Metasploit Framework on a non-rooted Android phone, entirely inside Termux.

CI License: MIT Stars

Metasploit running in Termux

Requirements

  • Termux from F-Droid or GitHub Releases — the Play Store build is not supported
  • aarch64 device (ARMv8 — CI-verified on the official Termux image with current Ruby)
  • ~2 GB free space and 20–60 minutes (native gems are compiled on-device)
  • Stable network (Termux mirrors, GitHub, RubyGems)

Old or previously-broken Termux setup? Purge Termux data in Android Settings, reinstall from F-Droid, open it once, force-stop, then proceed. A stale package set is the most common source of install failures.

Install

One command:

bash <(curl -fsSL https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh)

Or manually:

curl -fsSL -o metasploit.sh https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
chmod +x metasploit.sh
./metasploit.sh

The installer verifies that msfconsole actually boots before reporting success.

Usage

CommandWhat it does
msfconsoleStart Metasploit
msfvenomGenerate payloads
msfrpcdStart the RPC daemon
msf-setup --updateUpdate Metasploit in place
msf-setup --uninstallRemove Metasploit, symlinks and the installer
msf-setup --uninstall --purgeAlso delete ~/.msf4 — loot, history, database

msf-setup is installed locally as a command; the same flags also work directly from the one-liner (e.g. ... metasploit.sh --update).

Optional database

bash <(curl -fsSL https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh) --with-db

Initializes a dedicated PostgreSQL in ~/.msf4/db on port 5433 (msfdb-style). An existing Termux PostgreSQL cluster, if you have one, is never touched. The database does not auto-start after a reboot — restart it with pg_ctl -D ~/.msf4/db -o "-p 5433" start.

What the installer does

Full transparency, since this script installs packages and modifies your Termux prefix:

ItemDetail
InstallsTermux packages (clang, ruby, postgresql, libxml2, …) and upgrades existing ones, then Metasploit via bundle install
Framework location$PREFIX/opt/metasploit-framework (shallow clone of upstream master)
GemsIsolated in vendor/bundle inside the framework dir — only bundler itself goes to the system gem dir
Commandsmsfconsole, msfvenom, msfrpcd, msf-setup symlinked into $PREFIX/bin
Local patches to upstreamtermux-fix-shebang on the three binaries (Android has no /usr/bin/env); Ruby-4.0 default-gem alignment (date, stringio) and a relaxed date pin in the gemspec — re-applied automatically by --update
Data~/.msf4 is created by Metasploit itself (and by --with-db) and is only removed with --uninstall --purge
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools →