reverse_re3-入土为安的第十天

简介: reverse_re3-入土为安的第十天

一个迷宫题

shirt+f12发现flag字样

点进去发现迷宫

675 应该是3 * 15*15

即有三个迷宫

shift+e提取

import numpy as np
# 你的数据(长度应为 225 的倍数)
dword_202020 = [
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    3,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    4,
    0,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    3,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    1,
    1,
    1,
    1,
    1,
    1,
    0,
    1,
    0,
    1,
    1,
    0,
    1,
    1,
    0,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    0,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    4,
    0,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    3,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    0,
    1,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    4,
    0
]
# 矩阵的大小
n = 15
matrix_size = n * n
# 检查数组长度
length = len(dword_202020)
# 如果数据长度不足,填充到最近的矩阵大小的整数倍
if length < matrix_size:
    print(f"数据长度不足 ({length}), 将数据填充至 {matrix_size}")
    dword_202020 = dword_202020 + [0] * (matrix_size - length)  # 用 0 填充到最近的矩阵大小
elif length % matrix_size != 0:
    # 如果数据长度超过要求,截取到最近的矩阵大小的整数倍
    new_length = (length // matrix_size) * matrix_size
    print(f"数据长度超过 ({length}), 截取至 {new_length}")
    dword_202020 = dword_202020[:new_length]
# 转换为 numpy 数组
array = np.array(dword_202020)
# 计算每个矩阵的起始索引
matrices = [array[i:i + matrix_size].reshape(n, n) for i in range(0, len(array), matrix_size)]
# 打印矩阵
for idx, mat in enumerate(matrices):
    print(f"Matrix {idx + 1}:\n{mat}\n")

输出:

Matrix 1:

[[1 1 1 1 1 0 0 0 0 0 0 0 0 0 0]

[1 1 1 1 1 0 3 1 1 0 0 0 0 0 0]

[1 1 1 1 1 0 0 0 1 0 0 0 0 0 0]

[1 1 1 1 1 0 0 0 1 0 0 0 0 0 0]

[1 1 1 1 1 0 0 0 1 1 1 1 1 0 0]

[1 1 1 1 1 0 0 0 0 0 0 0 1 0 0]

[1 1 1 1 1 0 0 0 0 0 0 0 1 0 0]

[1 1 1 1 1 0 0 0 0 0 0 0 1 1 0]

[1 1 1 1 1 0 0 0 0 0 0 0 0 1 0]

[1 1 1 1 1 0 0 0 0 0 0 0 0 4 0]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]]

Matrix 2:

[[1 1 0 0 0 0 0 0 0 0 0 0 0 0 0]

[1 1 0 3 1 1 1 1 1 0 0 0 0 0 0]

[1 1 0 1 1 0 0 0 1 0 0 0 0 0 0]

[1 1 0 0 0 0 0 0 1 0 0 0 0 0 0]

[1 1 0 1 1 0 0 0 1 1 1 1 1 0 0]

[1 1 0 1 1 0 0 0 0 0 0 0 1 0 0]

[1 1 0 1 1 0 0 0 0 0 0 0 1 0 0]

[1 1 0 1 1 0 0 0 0 0 1 1 1 1 0]

[1 1 0 1 1 0 0 0 0 0 1 0 0 1 0]

[1 1 0 1 1 0 0 0 0 0 1 0 0 0 0]

[1 1 0 1 1 1 1 1 1 0 1 0 1 1 0]

[1 1 0 1 1 1 1 1 1 1 1 1 1 1 0]

[1 1 0 0 0 0 0 0 0 0 0 0 0 4 0]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]

[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]]

Matrix 3:

[[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]

[0 3 1 1 0 0 0 0 0 0 0 0 0 0 0]

[0 0 0 1 0 1 1 1 0 0 0 0 0 0 0]

[0 0 0 1 1 1 0 1 0 0 0 0 0 0 0]

[0 0 0 0 1 0 0 1 0 0 0 0 0 0 0]

[0 1 1 0 1 0 0 1 0 0 0 0 0 0 0]

[0 0 1 1 1 0 0 1 0 0 0 0 0 0 0]

[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]

[0 0 0 0 0 0 0 1 1 1 1 0 0 0 0]

[0 0 0 0 0 0 0 0 0 0 1 0 0 0 0]

[0 0 0 0 0 0 0 0 0 0 1 0 0 0 0]

[0 0 0 0 0 0 0 0 0 0 1 0 0 0 0]

[0 0 0 0 0 0 0 0 0 0 1 1 1 1 0]

[0 0 0 0 0 0 0 0 0 0 0 0 0 1 0]

[0 0 0 0 0 0 0 0 0 0 0 0 0 4 0]]

3是起点,4是终点

上 下 左 右 wsad

ddsssddddsssdssdddddsssddddsssaassssdddsddssddwddssssssdddssssdddss

32小位

aeea66fcac7fa80ed8f79f38ad5bb953

目录
相关文章
|
3月前
|
安全
babystack2.0-入土为安的第十六天
babystack2.0-入土为安的第十六天
37 0
|
3月前
deedeedee 入土为安的第六天
deedeedee 入土为安的第六天
27 0
|
3月前
[WUSTCTF2020]level4题解 入土为安的第三天
[WUSTCTF2020]level4题解 入土为安的第三天
36 0
|
3月前
|
Python
re4-unvm-me 入土为安的第六天
re4-unvm-me 入土为安的第六天
46 0
|
6月前
【随想】每日两题Day.16(实则一题)
【随想】每日两题Day.16(实则一题)
35 0
|
6月前
【随想】每日两题Day.3(实则一题)
【随想】每日两题Day.3
29 0
|
6月前
|
存储 算法
【随想】每日两题Day.20(实则一题)
【随想】每日两题Day.20(实则一题)
35 0
|
6月前
【随想】每日两题Day.5 (实则一题)
【随想】每日两题Day.5
28 0
|
6月前
|
存储
【随想】每日两题Day.10(实则一题)
【随想】每日两题Day.10(实则一题)
33 0
|
6月前
【随想】每日两题Day.11
随想】每日两题Day.11
32 0