Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


SSH user enumeration filter_list
Author
Message
SSH user enumeration #1
Hi,
I found an IP address and i run an nmap scan on it, which revealed that it has the port 22 open. I want to access it, but i don't know the user and password for the ssh. It has an older version of ssh, version SSH-2.0-OpenSSH_7.2p2 which is known to be vulnerable to user enumeration hack. I found the script https://www.exploit-db.com/exploits/45233 here, but after i compile the code it says that paramiko is not available. I used Kali linux. Every help would be awesome. I even used metasploit too (ssh_enumers), but idk if that's the same thing...

Reply

RE: SSH user enumeration #2
Paramiko is a dependency for that script. More specifically, it is used for Python/SSH. You'll need to install it.

You can read more here:
http://www.paramiko.org/
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)

Reply

RE: SSH user enumeration #3
When i tried to install it, it said that it was already installed (version 2.7.2). I think it's preinstalled on Kali Linux.
But regardless what i do i get the same error "no module named paramiko"

Reply

RE: SSH user enumeration #4
(04-13-2021, 09:25 PM)Charonone Wrote: When i tried to install it, it said that it was already installed (version 2.7.2). I think it's preinstalled on Kali Linux.
But regardless what i do i get the same error "no module named paramiko"

There is a chance that you have Paramiko installed for a different version of Python than what the script runs. Try changing this line:

Code:
#!/usr/bin/env python

To:

Code:
#! /usr/bin/python3

I have a feeling it defaults to python2, but paramiko is installed for python3. If that did not work, try installing it for python3:

Code:
sudo pip3 install paramiko

But you will have to put all the print statements in brackets for example:

Code:
print '[-] Failed to negotiate SSH transport'

Will become:

Code:
print('[-] Failed to negotiate SSH transport')

Seems like too much work to me unless you are good with regular expressions but running python2 and python3 side by side causes head aches like this especially when pip is involved.
Code:
  _______              _   _________   \      \            | | /        /   |      | _____  ____| | |   ____/ _____  _____  _____  _____   |   |  |/  _  \/      | \____   |/     \/     \/  ___\/  _  \   |      |    __/|  |   |/        |   |  |   |   \  \__ |   __/  /_______/\_____/\____|_/________/|  ____/\_____|_\____/\_____/                                   | |                                   |_/                         BTC Address:  bc1qds8uqnt4ga0zn9ftrm45cq9u9hfct0qluqes5a

[+] 1 user Likes DedSpace's post
Reply