【BUUCTF】MISC:另一个世界

首先查看图片本身是否有隐藏内容,使用stegsolve查找后并无。
查看hex,末尾有一串二进制:
【BUUCTF】MISC:另一个世界_第1张图片

01101011011011110110010101101011011010100011001101110011

不妨先尝试转换下进制。
以8个为单位尝试:

let hex = "01101011011011110110010101101011011010100011001101110011"
let nums = []
for(let i = 0; i<=hex.length; i++){
    if(i%8===0 && i!=0) 
    	nums.push(Number(`0b${hex.slice(i-8,i)}`))
}
console.log(nums)

得到结果

[
  107, 111, 101,
  107, 106,  51,
  115
]

数字集中在字母的ascii区域内。转换为对应字符试试:

let text = []
for(num of nums){
    text.push(String.fromCharCode(num))
}
console.log(text.join(''))

输出一串字符,即是flag

你可能感兴趣的:(CTF,javascript,html)