zoukankan      html  css  js  c++  java
  • Ctfshow web入门 21

    题目字典给我们了,访问网站以后要登陆,输入admin,密码123

    BP拦截包查看:

    base64加密

    然后可以写个脚本,转换一下字典,变成admin+字典的base64加密

    import base64
    import sys
    import io
    with open('aa.txt', 'r') as f:
        for line in f:
            url = "admin:" + line
            bytes_url = url.encode("utf-8")
            str_url = base64.b64encode(bytes_url)  # 被编码的参数必须是二进制数据
            with open('a.txt', 'a') as c:
                c.write(str_url.decode() + "
    ")

    然后也有BP自带的加密和添加数据功能:

    启用Custom iterator

    设置开头数据:

    加载字典:

    取消URL编码

    设置数据编码格式为base64

    爆破

  • 相关阅读:
    ASP.NET 篇
    .NET Core 篇
    JS-CSS篇
    IIS使用篇
    WebService篇
    电脑使用篇
    数据库使用篇
    正则表达式篇
    Linux学习篇
    Leetcode 198. 打家劫舍 dp
  • 原文地址:https://www.cnblogs.com/echoDetected/p/13847716.html
Copyright © 2011-2022 走看看