Skip to content

StealthDuckyShell is a USB rubber ducky payload for Ubuntu systems. It installs a persistent Python reverse shell & takes care of .bash_history.

Notifications You must be signed in to change notification settings

robertchrk/StealthDuckyShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

StealthDuckyShell

StealthDuckyShell is a USB rubber ducky payload for Ubuntu systems. It installs a persistent Python reverse shell & takes care of .bash_history.

Prerequisites

USB Rubber Ducky

Setup

It uses a Base64 encoded string to carry the backdoor script, just decode it and adjust IP address & port. A cronjob starts our reverse shell every 30 minutes, I think that's not too suspicious, but of course you can increase that. On Ubuntu 16.04 it's hard to get a reliable source of idle time, so I played with "xinput test-xi2 --root" to wait until the user is idle. Maybe I'll implement it later.

Everything you or your ducky types in a terminal window get's recorded in .bash_history, don't worry there's a workaround! Just append "&& history -d $((HISTCMD-1))" to every command to delete the current line.

About

StealthDuckyShell is a USB rubber ducky payload for Ubuntu systems. It installs a persistent Python reverse shell & takes care of .bash_history.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published