XCTF通关记录
- 地址
- 1、Banmabanma
- 2、适合作为桌面
- 一、变暗反转过后,仔细看是有个二维码的、调节然后调节亮度与对比度、得到它
- 二、二维码解码出来之后
- 1 、首先想到的是ASCII码,但是结果好像不对
- 2、然后去搜索这是个啥
- 3、心仪的公司
地址
xtcf:https://adworld.xctf.org.cn/challenges/list
1、Banmabanma
在线二维码读取:https://online-barcode-reader.inliteresearch.com/
flag{TENSHINE}
2、适合作为桌面
总地址:https://brightness.imageonline.co/cn/
在线图片转换工具:https://invert.imageonline.co/cn/
在线二维码解码:https://www.hlcode.cn/decode
在线ps工具:https://ps.gaoding.com/#/
一、变暗反转过后,仔细看是有个二维码的、调节然后调节亮度与对比度、得到它
##二维码解码文件内容
03F30D0A79CB05586300000000000000000100000040000000730D0000006400008400005A000064010053280200000063000000000300000016000000430000007378000000640100640200640300640400640500640600640700640300640800640900640A00640600640B00640A00640700640800640C00640C00640D00640E00640900640F006716007D00006410007D0100781E007C0000445D16007D02007C01007400007C0200830100377D0100715500577C010047486400005328110000004E6966000000696C00000069610000006967000000697B000000693300000069380000006935000000693700000069300000006932000000693400000069310000006965000000697D000000740000000028010000007403000000636872280300000074030000007374727404000000666C6167740100000069280000000028000000007304000000312E7079520300000001000000730A0000000001480106010D0114014E280100000052030000002800000000280000000028000000007304000000312E707974080000003C6D6F64756C653E010000007300000000
二、二维码解码出来之后
flag{38a57032085441e7}
1 、首先想到的是ASCII码,但是结果好像不对
##python解码16进制字符串结果不行
##替换变量hex_string
def decode_hex_string(hex_string):
try:
# 将16进制字符串转换为字节对象
bytes_object = bytes.fromhex(hex_string)
# 将字节对象解码为字符串(假设是UTF-8编码)
decoded_string = bytes_object.decode("utf-8")
return decoded_string
except ValueError as e:
return f"Invalid hex string: {e}"
except UnicodeDecodeError as e:
return f"Cannot decode to UTF-8: {e}"
# 示例用法
hex_string = "48656c6c6f2c20576f726c6421" # "Hello, World!"的16进制表示
decoded_string = decode_hex_string(hex_string)
print(f"Decoded string: {decoded_string}")
2、然后去搜索这是个啥
再一搜索了发现pyc是一个编译后的二进制文件。昂昂昂那就知道了,二维码数据打眼一看16进制,
winhex 进制转换保存
pyc在线反编译工具:https://www.lddgo.net/string/pyc-compile-decompile
# Visit https://www.lddgo.net/string/pyc-compile-decompile for more information
# Version : Python 2.7
str = [
102,
108,
97,
103,
123,
51,
56,
97,
53,
55,
48,
51,
50,
48,
56,
53,
52,
52,
49,
101,
55,
125]
flag = ''
for i in str:
flag += chr(i)
print(flag)
3、心仪的公司
抓过包的都知道pcap后缀是啥,没抓过的搜索一下