Client-side attacks and trojans are not exclusive to Windows. In this recipe, we will create a Linux payload, and place it inside a Debian package.
Creating a Linux trojan
How to do it...
- First, we need to download the package we want to place our payload in; for this recipe we will use cowsay, a simple program that generates an ASCII picture of a cow saying something provided by the user:
root@kali:~# apt --download-only install cowsay
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-brotlipy python-cssutils python-typing
Use 'apt autoremove' to remove them.
Suggested packages:
...