Skip to content

shad0wghost/ssh-authlog-backdoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

ssh-authlog-backdoor

A post exploit python script that watches auth.log for a keyword then executes base64 encoded commands.

How to use

  1. Execute the script as root on the victim box.

  2. Encode a command in base64 by using an online service or how ever you can get base64. https://www.base64encode.org/

    Example: cat /etc/passwd > /tmp/test is Y2F0IC9ldGMvcGFzc3dkID4gL3RtcC90ZXN0

  3. From an attacking box initiate an ssh connection as the user shadow--- + base64 encoded command

    Full example: ssh [email protected]

TODO

  1. Make client to run on attacker box that can handle responces that will be sent out by backdoor. (Semi-interactive shel)
  2. Use better encoding/encryption on commands to aid in anti-forensics

About

Linux backdoor that uses auth.log to look for commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages