2024强网杯-misc

谍影重重5.0

打开发现是SMB流量,

从NTLM流中找到数据来解密。用NTLMRawUnhide这个脚本 一键提取出数据。

下载下来

python NTLMRawUnHide.py -i 谍影重重5.0.pcapng

运行一下

复制下来到1.txt

Hashcat直接爆破

hashcat.exe -m 5600 1.txt rockyou.txt

一定要加上kali自带的字典

babygirl233

再用smb流量脚本解密

password               : babygirl233
Domain                 : .
Username               : tom
Workstation            : DESKTOP-KR221HK
sessionKey             : 5643a37f253b00b2f52df1afd48c1514
Server Challenge       : c1dec53240124487
ntProofStr             : ca32f9b5b48c04ccfa96f35213d63d75

脚本1

#!/usr/bin/env python3

"""
This is a Python3 improved/interactive version of the script made by khr0x40sh for decrypting encrypted session keys in a PCAP file to view encrypted traffic.  
If you don't specify the parameters, it should ask you for the parameter values.
It will check to see if pycryptodomex is installed, and if not, it will install it.
It can also accept NTML hashes directly as well as passwords.
Usage:
    python3 script_name.py -u USER -d DOMAIN -p PASSWORD -n NT_PROOF_STR -k ENCRYPTED_SESSION_KEY
Example:
    python3 script_name.py -u alice -d EXAMPLE -p secret123 -n aabbccddeeff00112233445566778899 -k aabbccddeeff00112233445566778899
Description:
    This script calculates the Random Session Key based on data extracted from a PCAP file (possibly).
    It uses the NTLM hash of the user's password, NTProofStr, and an encrypted session key to generate a session key via RC4 encryption.
"""

import sys
import subprocess
import hashlib
import hmac
import argparse
import binascii

# Add user's local site-packages to sys.path
import site
site.addsitedir(site.getusersitepackages())

# Function to install pycryptodomex
def install_pycryptodomex():
    try:
        # Check if pip is installed
        subprocess.check_call([sys.executable, "-m", "pip", "--version"])
    except subprocess.CalledProcessError:
        print("Error: pip is not installed. Please install pip first.")
        sys.exit(1)

    # Attempt to install pycryptodomex
    try:
        subpr
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

婉雪.

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值