2023-全国智能驾驶测试赛-车联网安全专项赛WP (Re)

中间短暂的拿到了第一名,可惜最后止步12名,www。。。
RRRRust

  • 简单rust逆向
  • 首先找到密文,然后找关键逻辑,发现只有一个异或
  • 直接脚本解密
    c=''
    x='e>?d7a411zakf`|e4ec16754c65>a>b4>e3f51'
    for i in range(len(x)):
    c+=chr(ord(x[i])^7)
    print©
  • 得到b98c0f366}flag{b3bd61023d129f9e39b4a26
  • 调整一下位置即可
  • flag{b3bd61023d129f9e39b4a26b98c0f366}

SomethingInIt:

  • IDA64打开,发现程序实现了一个双层的vm

  • 首先考虑用Inter-pin进行爆破

  • 找到关键输入点以及最后的比较代码case 0x28,case0x29:

  • 用pin爆破即可,下面为爆破脚本:

    `from pwn import *

    import subprocess

    def run(msg):

    cmd = [

    "/home/tanggerr/Downloads/pin-3.28-98749-g6643ecee5-gcc-linux/pin",

    "-t", "/home/tanggerr/Downloads/pin-3.28-98749-g6643ecee5-gcc-linux/source/tools/ManualExamples/obj-intel64/inscount0.so",

    "-o", "/home/tanggerr/Downloads/pin-3.28-98749-g6643ecee5-gcc-linux/source/tools/ManualExamples/inscount0.log",

    "--",

    "/home/tanggerr/challenge"

    ]

    p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

    p.stdin.write(msg.encode())

    p.stdin.flush()

    output = p.stdout.readline()

    p.terminate()

    return int(read("/home/tanggerr/Downloads/pin-3.28-98749-g6643ecee5-gcc-linux/source/tools/ManualExamples/inscount0.log").split(" ")[1])

def read(fname):

with open(fname) as f:

return f.read()

charset = string.printable

l = []

flag = ""

counter = 0

while(True):

max_chr = 0

first_iteration = True

for chr in charset:

tmp = run(flag + chr)

if first_iteration:

max_value = tmp

first_iteration = False

if tmp > max_value:

max_chr = chr

max_value = tmp

break

print(max_chr)

flag += str(max_chr)

print(flag)`

  • 大概一个多小时即可爆破出flag
  • flag{Is_thi5_VM_THAT_1s_1n_vm_beautiful?!}
相关推荐
2401_873479401 小时前
企业安全团队如何配合公安协查?IP查询在电子取证中的技术实践
tcp/ip·安全·网络安全·php
weixin_514253181 小时前
4-26联合训练 tmux
安全
byoass1 小时前
智巢AI知识库深度解析:企业文档管理从大海捞针到精准狙击的进化之路
开发语言·网络·人工智能·安全·c#·云计算
@insist1232 小时前
信息安全工程师核心考点:物理与环境安全(下篇)
网络·安全·软考·信息安全工程师·软件水平考试
刘马想放假2 小时前
GRE 隧道深度解析:从协议原理到生产实践
网络协议·安全
@CLoudbays_Martin112 小时前
UniApp是否能够接入SDK游戏盾呢?
服务器·网络·网络协议·tcp/ip·安全
信徒_3 小时前
WAF 安全防护
网络·安全
瀚高PG实验室3 小时前
安全版V4.5版本docker容器license过期问题处理步骤
安全·docker·容器·瀚高数据库
学术阿凡提4 小时前
Spring Boot 集成 Fastjson2 完整教程:从入门到避坑
spring boot·安全·json
JiaWen技术圈4 小时前
内核子系统 nf_tables 深度解析
linux·服务器·安全·运维开发