ext2 file system

题目来源
Jarvis oj
神秘的文件

出题人太懒,还是就丢了个文件就走了,你能发现里面的秘密吗?

haha.f38a74f55b4e193561d1b707211cf7eb

考点:
考点1:Haha ext2 file system
考点2:the content is spilted in pieces can you make the pieces together

file命令查看文件类型
进到haha.f38a74f55b4e193561d1b707211cf7eb文件所在的文件目录

file haha.f38a74f55b4e193561d1b707211cf7eb

回显出来
/Users/我的操作系统用户名/Downloads/opera/haha.f38a74f55b4e193561d1b707211cf7eb: Linux rev 1.0 ext2 filesystem data, UUID=8eecd08f-bae8-41ff-8497-8338f58ad15b

$ sudo mount -t ext2 /home/我的用户名/ctf/haha.f38a74f55b4e193561d1b707211cf7eb  /home/我的用户名/ctf/mnt 
注意!!mount命令进行挂载需要绝对路径
另外,mac不支持ext2格式的文件系统(坑哪,依稀记起老师讲过,才缓过来)
接着,查看mnt目录下的文件(也就是haha.f38a74f55b4e193561d1b707211cf7eb磁盘下的文件)

考点1解决啦~~
---------------------------------------------------------------------------------------

进去发现一堆文件,随便打开一个文件都有内容,将所有文件遍历读取结合在一起看看
写python代码脚本查看这里所有的文件内容
mnt目录下执行即可

strs=''
for i in range(0,254):
	f=open(str(i))
	s=f.readline()
	strs+=s
	f.close
print(strs)

或者mnt目录下执行

$ cat *
原文地址:https://www.cnblogs.com/luna2333/p/13956335.html