Brute Force - CheatSheet

暴力破解 - 速查表

使用 Trickestarrow-up-right 来轻松构建和 自动化工作流程,使用世界上 最先进 的社区工具。 立即获取访问权限:

chevron-right从零开始学习 AWS 黑客技术,成为专家 htARTE (HackTricks AWS Red Team Expert)arrow-up-right!hashtag

支持 HackTricks 的其他方式:

默认凭证

在谷歌中搜索正在使用的技术的默认凭证,或者尝试以下链接:

创建您自己的字典

尽可能多地了解目标的信息,并生成自定义字典。可能有用的工具:

Crunch

Cewl

Cewl is a tool used to generate custom wordlists by crawling a target's website and extracting unique words. It can be used to create wordlists for brute-forcing passwords based on the target's specific interests or content.

基于对受害者的了解(姓名、日期等)生成密码

一个字典生成工具,允许您提供一组单词,从给定的单词中创建多个变体,生成一个独特且理想的字典,以用于特定目标。

字典列表

使用 Trickestarrow-up-right 可轻松构建和自动化工作流程,利用全球最先进的社区工具。 立即获取访问权限:

服务

按服务名称按字母顺序排列。

AFP

AJP

AJP

AMQP (ActiveMQ, RabbitMQ, Qpid, JORAM and Solace)

AMQP(ActiveMQ、RabbitMQ、Qpid、JORAM和Solace)

Cassandra

Brute Force

Brute force attacks against Cassandra involve attempting to guess valid credentials by systematically trying all possible combinations of usernames and passwords. This is typically achieved by using automated tools that can rapidly generate and test different combinations until the correct one is found.

Prevention

To prevent brute force attacks against Cassandra, it is recommended to implement strong password policies, such as using complex and lengthy passwords, enabling account lockout mechanisms after a certain number of failed login attempts, and monitoring the system for any unusual login patterns that may indicate a brute force attack in progress. Additionally, using multi-factor authentication can add an extra layer of security to help mitigate the risk of unauthorized access.

CouchDB

Brute Force

Description

Brute forcing CouchDB involves attempting to guess valid credentials by systematically trying all possible combinations of usernames and passwords.

Detection

Monitor authentication logs for multiple failed login attempts from the same source IP address.

Prevention

  • Implement account lockout policies after a certain number of failed login attempts.

  • Enforce strong password policies to make brute forcing more difficult.

  • Consider implementing multi-factor authentication to add an extra layer of security.

Docker Registry

Docker注册表

Elasticsearch

Elasticsearch

FTP

FTP (File Transfer Protocol) is a standard network protocol used to transfer files between a client and a server on a computer network. FTP typically operates on port 21.

Brute Force Attack

A brute force attack is a trial-and-error method used to obtain information such as a user password or personal identification number (PIN). In a brute force attack, automated software is used to generate a large number of consecutive guesses as to the value of the desired data.

HTTP 通用暴力破解

WFuzz

HTTP基本身份验证

HTTP - NTLM

Brute Force

Brute forcing NTLM hashes is a common technique used to crack passwords. Tools like hashcat and John the Ripper can be used to perform brute force attacks against NTLM hashes. These tools allow you to try a large number of password combinations in a short amount of time, increasing the chances of finding the correct password. It is important to use a good wordlist and rules when performing brute force attacks to maximize the chances of success.

HTTP - Post Form

HTTP - 提交表单

对于https,您必须从"http-post-form"更改为"https-post-form"

HTTP - CMS -- (W)ordpress, (J)oomla or (D)rupal or (M)oodle

IMAP

IMAP (Internet Message Access Protocol) is a widely used protocol for email retrieval. It operates over port 143 and allows an email client to access email on a remote mail server. IMAP can be a target for brute force attacks to gain unauthorized access to email accounts.

IRC

IRC

Internet Relay Chat(IRC)是一种实时互联网通信协议,用于在网络上进行文本通信。IRC通常用于群组聊天和私人对话。

ISCSI

ISCSI

JWT

JSON Web Tokens(JWT)是一种用于在网络应用之间传递信息的开放标准(RFC 7519)。它通过使用数字签名对信息进行验证和信任。

LDAP

LDAP(轻型目录访问协议)是一种用于访问和维护分布式目录信息服务的协议。

MQTT

MQTT

Mongo

MSSQL

MSSQL

MySQL

MySQL

OracleSQL

OracleSQL

为了使用oracle_loginpatator,您需要安装

离线 OracleSQL 哈希暴力破解arrow-up-right版本 11.1.0.6, 11.1.0.7, 11.2.0.1, 11.2.0.2,11.2.0.3):

POP

POP

PostgreSQL

PostgreSQL

PPTP

您可以从https://http.kali.org/pool/main/t/thc-pptp-bruter/arrow-up-right下载.deb软件包进行安装。

RDP

RDP (Remote Desktop Protocol) is a proprietary protocol developed by Microsoft, which provides a user with a graphical interface to connect to another computer over a network connection. RDP is commonly used for remote administration and accessing virtual desktops.

Brute Force

Brute force attacks against RDP involve attempting to login to an RDP server by systematically trying all possible combinations of usernames and passwords until the correct one is found. This method is time-consuming but can be effective if weak credentials are used. It is important to use strong, complex passwords and implement account lockout policies to prevent brute force attacks.

Redis

Redis

Rexec

Rexec

Rexec is a simple service that allows users to execute commands on a remote system. It is often used by administrators to manage servers and network devices. Rexec is a plaintext protocol, which means that data is not encrypted during transmission. This makes it vulnerable to eavesdropping attacks. An attacker can use a brute-force attack to guess the username and password of the Rexec service and gain unauthorized access to the remote system.

Rlogin

Rlogin是一种远程登录协议,通常用于UNIX系统。攻击者可以使用暴力破解技术尝试破解Rlogin账户的密码。

Rsh

Rsh(远程shell)是一种基于文本的远程登录协议,类似于SSH。攻击者可以使用暴力破解技术尝试猜测用户的密码来访问远程系统。

http://pentestmonkey.net/tools/misc/rsh-grindarrow-up-right

Rsync

Rsync

Rsync

RTSP

RTSP

SFTP

SFTP (Secure File Transfer Protocol) is a secure way to transfer files between machines over a secure channel. It provides encryption for both authentication credentials and data transferred between the client and server.

SNMP

SNMP

SMB

SMB

SMB

SMTP

Simple Mail Transfer Protocol(简单邮件传输协议)

SOCKS

SOCKS

SQL Server

Brute Force

Brute force attacks against SQL Server involve attempting to guess usernames and passwords to gain unauthorized access. This can be done using automated tools that systematically try all possible combinations of usernames and passwords until the correct one is found. It is important to use strong, complex passwords and implement account lockout policies to protect against brute force attacks.

SSH

SSH(Secure Shell)是一种加密网络协议,用于通过不安全的网络安全地进行远程访问和控制。

弱SSH密钥 / Debian可预测PRNG

一些系统在用于生成加密材料的随机种子中存在已知缺陷。这可能导致密钥空间大幅缩小,可以使用工具(如snowdroppe/ssh-keybrutearrow-up-right)对其进行暴力破解。还可以使用预生成的弱密钥集,例如g0tmi1k/debian-ssharrow-up-right

STOMP(ActiveMQ、RabbitMQ、HornetQ和OpenMQ)

STOMP文本协议是一种广泛使用的消息传递协议,允许与流行的消息队列服务(如RabbitMQ、ActiveMQ、HornetQ和OpenMQ)进行无缝通信和交互。它提供了一种标准化和高效的方法来交换消息并执行各种消息操作。

Telnet

Telnet是一种用于远程登录的网络协议。攻击者可以使用暴力破解技术尝试破解Telnet服务的凭据。攻击者通常会使用常见的用户名和密码组合进行尝试,以获取对目标系统的访问权限。

VNC

VNC

Winrm

Winrm

使用Trickestarrow-up-right 可轻松构建和自动化工作流,利用全球最先进的社区工具。 立即获取访问权限:

本地

在线破解数据库

在尝试对哈希进行暴力破解之前,请查看这些内容。

ZIP

已知明文 zip 攻击

您需要知道加密 zip 文件中包含的文件的明文(或部分明文)。您可以通过运行以下命令来检查加密 zip 中包含的文件的文件名和文件大小7z l encrypted.zip 从发布页面下载 bkcrackarrow-up-right

7z

7z

PDF

PDF

PDF Owner Password

要破解PDF所有者密码,请查看此链接:https://blog.didierstevens.com/2022/06/27/quickpost-cracking-pdf-owner-passwords/arrow-up-right

JWT

NTLM破解

Keepass

Keberoasting

Keberoasting

破解LUKS加密

方法1

安装:https://github.com/glv2/bruteforce-luksarrow-up-right

方法 2

Mysql

另一个Luks BF教程: http://blog.dclabs.com.br/2020/03/bruteforcing-linux-disk-encription-luks.html?m=1arrow-up-right

PGP/GPG私钥

Cisco

DPAPI Master Key

使用https://github.com/openwall/john/blob/bleeding-jumbo/run/DPAPImk2john.pyarrow-up-right然后运行john

Open Office Pwd Protected Column

如果您有一个由密码保护的列的xlsx文件,您可以取消保护它:

  • 将其上传到谷歌云盘,密码将自动删除

  • 手动进行删除

PFX 证书

使用 Trickestarrow-up-right 来轻松构建和自动化工作流程,使用世界上最先进的社区工具。 立即获取访问权限:

工具

哈希示例: https://openwall.info/wiki/john/sample-hashesarrow-up-right

哈希标识符

字典列表

字典生成工具

John变异

阅读 /etc/john/john.conf 并进行配置

Hashcat

Hashcat 攻击

  • 字典攻击 (-a 0) with rules

Hashcat 已经带有一个包含规则的文件夹,但你也可以在这里找到其他有趣的规则arrow-up-right

  • 字典组合器 攻击

可以使用 hashcat 将 2 个字典合并为 1 个。 如果列表 1 包含单词 "hello",第二个包含两行单词 "world""earth"。将生成单词 helloworldhelloearth

  • 掩码攻击 (-a 3)

  • 字典 + 掩码 (-a 6) / 掩码 + 字典 (-a 7) 攻击

Hashcat 模式

破解 Linux Hashes - /etc/shadow 文件

Brute-forcing is a common technique used to crack password hashes. In the case of Linux systems, the password hashes are stored in the /etc/shadow file. By brute-forcing these hashes, an attacker can potentially recover the original passwords.

Brute Force

Brute force attacks are a common way to crack Windows hashes. This method involves trying all possible combinations of characters until the correct password is found. There are various tools available to automate the brute force process, such as John the Ripper and Hashcat.

Steps to Crack Windows Hashes using Brute Force:

  1. Capture the Hash: Obtain the Windows hash that you want to crack.

  2. Choose a Tool: Select a suitable tool for brute force attacks.

  3. Set Parameters: Configure the tool with the necessary parameters, such as character set, minimum and maximum password length, etc.

  4. Initiate the Attack: Start the brute force attack using the chosen tool.

  5. Wait for Results: Depending on the complexity of the password, the tool will continue trying different combinations until the correct one is found.

  6. Access the Password: Once the correct password is identified, you can use it to access the Windows system.

It is important to note that brute force attacks can be time-consuming, especially for complex passwords. Additionally, using strong and unique passwords can help prevent successful brute force attacks.

Brute-Force

Brute-forcing is a common technique used to crack hashes. It involves trying all possible combinations of characters until the correct one is found. This method is often used when other techniques, such as dictionary attacks, fail to crack the hash.

Tools

There are several tools available for brute-forcing hashes, including:

  • Hashcat: A popular password cracking tool that supports multiple hashing algorithms.

  • John the Ripper: Another widely used password cracking tool that can perform brute-force attacks.

  • Hydra: A versatile password cracking tool that supports various protocols and services.

Methodologies

When brute-forcing hashes, it is important to consider the following methodologies:

  1. Character Set: Determine the character set used in the hash (e.g., lowercase letters, uppercase letters, numbers, special characters).

  2. Password Length: Estimate the password length to narrow down the search space.

  3. Optimization: Use rules and optimizations to speed up the brute-forcing process.

  4. Wordlists: Combine brute-forcing with wordlists to increase the chances of success.

By following these methodologies and using the right tools, hackers can increase their chances of successfully cracking common application hashes.

chevron-right从零开始学习AWS黑客技术,成为专家 htARTE(HackTricks AWS红队专家)arrow-up-righthashtag

其他支持HackTricks的方式:

使用Trickestarrow-up-right轻松构建和自动化工作流程,利用世界上最先进的社区工具。 立即获取访问权限:

最后更新于