Linux penetration: Use ettercap to sniff the ssh Password

Source: Internet
Author: User
Tags ssh server
Generally, nc is used to determine whether the target ssh server can be sniffed. The specific method is nctargetip22. If the returned version number is a SSH-1.99, it indicates that protcol is 2, 1 in sshd_config. However, by default, the ettercap on the Internet cannot sniff the ssh1 password, even if the server to be sniffed is configured as protcol2 and 1.

Normally, we can determine whether the target ssh server can be used by sniffing.NcTo confirm. The specific method is nc targetip 22.

If the returned version number is SSH-1.99, it indicates the prot in sshd_configColIs 2, 1.

However, by default, the ettercap on the Internet cannot sniff the ssh1 password, even if the server to be sniffed is configured as protcol.


It took a while to study the filter writing method, write an ssh ssh-1.99 to the ssh-1.5 filter

 

 
 
  1. If (tCp. Src = 22 & search (DATA. data, "SSH-1.99 ")){
  2.  
  3. Replace ("SSH-1.99", "SSH-1.5 ");
  4.  
  5. }

Save as sh. filter and compile as Etterfilter sh. filter-o sh. ef.

Load the filter when you start ettercap. Can you sniff it?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.