Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/execution/Persistent_Reverse_Shell-Telegram_Based/README.md
2971 views

Persistent Reverse Shell - Telegram Based

A script used to configure a persistent reverse shell on a Linux computer through a pre-configured Telegram Bot.

Category: Execution

Dependencies

  • Internet Connection

Description

A script used to configure a persistent reverse shell on a Linux computer through a pre-configured Telegram Bot.

This payload is based on Telegram Persistent Connection payload for create the Telegram connection.

The script accept the /reverse command using the format /reverse <shell_command> and split /reverse from <shell_command> through the extract_command() function, then execute the command acquired acquiring the output through the function run_command().

Because Telegram uses a limited size per message, the script divides the output of the command into a theoretically infinite chunk of 1000 characters in length that will be sent one by one through the Telegram Bot.

Credits

Aleff :octocat:


Github

Linkedin