给了一张红色和黑色的图片
首先想到的是把红色和黑色去掉,结果出来一个模糊但是有轮廓的图案,估计flag就是这个了,拖进神器Stegsolve里面,立马就出来了
Oh, my god!
感觉好没技术含量,于是自己写一个处理程序
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
public class PicTest {
public static void main(String[] args) throws IOException {
int i,j;
int rgb[] = new int[3];
File file = new File("G:\\1.jpg");// 实例化file对象,并设置读取图片路径
BufferedImage bi = null; // 像素缓冲区开始为空
bi = ImageIO.read(file);
int width = bi.getWidth();
int height = bi.getHeight();
int minx = bi.getMinX();
int miny = bi.getMinY();
for (i = 0; i < width; i++) {
for (j = 0; j < height; j++) {
int col = 0;
int fcol = bi.getRGB(i, j);
if ((fcol >>> 9 & 1) > 0)
col = 0xffffff;
bi.setRGB(i, j, col);
}
}
ImageIO.write(bi, "JPEG", file); //写入文件
}
}
运行一下,出来了,好开心
最后的答案是wctf{h0w_Can_Make_A_Steg},提交,通过!