放在010里面看到开头 50 4B 03 04,就该后缀为zip,打开后找到一个这个,用记事本记录这些坐标,记住,这里和 ctf excel考点 有些像,如果忘了去搜搜再复习一下
先把这些按照坐标标上1,要用到脚本:
from openpyxl import Workbook
# 从外部文本文件中读取坐标数据
def read_coordinates_from_file(file_path):
with open(file_path, 'r') as f:
coordinates = [line.strip() for line in f.readlines()]
return coordinates
# 在指定坐标位置填充数字 1
def fill_coordinates_with_one(coordinates, output_file):
# 创建一个新的工作簿
wb = Workbook()
# 激活第一个工作表
ws = wb.active
# 遍历坐标数据,填充数字 1
for coordinate in coordinates:
ws[coordinate] = 1
# 保存工作簿到指定文件
wb.save(output_file)
print(f"成功将坐标填充为数字 1,并保存到 {output_file} 中。")
# 外部文本文件路径
input_file = '1.txt'
# 输出的 Excel 文件路径
output_file = 'output.xlsx'
# 从外部文本文件中读取坐标数据
coordinates = read_coordinates_from_file(input_file)
# 在指定坐标位置填充数字 1,并保存到 Excel 文件中
fill_coordinates_with_one(coordinates, output_file)
然后就发现了这个
到这里之后就和 ctf excel考点 一样啦,把1替换成黑色背景
扫码就出结果啦~