cybiere / baboossh

SSH spreading made easy for red teams in a hurry
GNU General Public License v3.0
56 stars 6 forks source link

Fix #9 by adding a FileNotFoundError exception handling #10

Closed L3-S closed 1 year ago

L3-S commented 1 year ago

Description

A simple exception handling for FileNotFoundError has been added in order to avoid a fail in case of the .ssh folder does not exist.

Fixes #9

Proof

Welcome to BabooSSH v1.1.3. To start, use "help -v" to list commands. [default]> endpoint add 192.168.1.169 Endpoint 192.168.1.169:22 added. [default]> user add testuser User testuser added. [default]> creds add password testuser Credentials #1 added. [default]> connect Connecting to testuser:#1@192.168.1.169:22... OK 1/1 working. [default]> set payload gather payload => gather default> run Connection to testuser:#1@192.168.1.169:22 already open. > OK Starting gathering... From SSH user config From history files -.python_history From user keys From known_hosts Done ! Users :

Creds :

Endpoints : default>

cybiere commented 1 year ago

Thanks for the fix, I won't merge in master but I used your patch in commit 2aed7f2 in dev branch !