IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 网络协议 -> Otter CTF (取证专项赛)WP兼volatility取证工具运用技巧 -> 正文阅读

[网络协议]Otter CTF (取证专项赛)WP兼volatility取证工具运用技巧

Otter CTF (取证专项赛)WP兼volatility取证工具运用技巧

前言:是很基础的vol工具使用的取证题目,练练相关的命令以及插件挺不错的

在这里插入图片描述

复现赛链接:NSSCTF - OtterCTF 2018(复现赛) (ctfer.vip)

附件链接:OtterCTF.7z

1、What the password?

you got a sample of rick’s PC’s memory. can you get his user password?

惯例,拿到附件以后先分析一下映像的信息

vol.exe -f OtterCTF.vmem imageinfo

使用hashdump来获取用户hash

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” hashdump

在这里插入图片描述

使用lsadump从注册表中提取LSA秘钥信息(mimikatz也可以)

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” lsadump

在这里插入图片描述

NSSCTF{MortyIsReallyAnOtter}

2、General Info

Let’s start easy - whats the PC’s name and IP address?

使用hivelist命令列出注册表

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” hivelist

在这里插入图片描述

注册表位置0xfffff8a000024010 主机名在注册表的ControlSet001\Control\ComputerName\ComputerName位置

所以

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” printkey -o 0xfffff8a000024010 -K “ControlSet001\Control\ComputerName\ComputerName”

在这里插入图片描述

netscan查看网络连接状况

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” netscan

在这里插入图片描述

排除0.0.0.0与127.0.0.1 剩下

NSSCTF{WIN-LO6FAF3DTFE-192.168.202.131}

3、Play Time

Rick just loves to play some good old videogames. can you tell which game is he playing? whats the IP address of the server?

使用pstree命令以树的形式来列出正在进行的进程

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” pstree

lunarMS是个游戏

在这里插入图片描述

netscan命令查看网络连接状况,同时使用grep命令过滤LunarMS

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” netscan | grep “LunarMS”

在这里插入图片描述

NSSCTF{LunarMS-77.102.199.102}

4、Name Game

We know that the account was logged in to a channel called Lunar-3. what is the account name?

从上一步可以知道 LunarMS的PID是708 使用memdump插件将进程转存出来

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” memdump -p 708 -D .

在这里插入图片描述

strings 708.dmp > 708.dmp.strings

在这里插入图片描述

grep -C 10 “Lunar-3” 708.dmp.strings

NSSCTF{0tt3r8r33z3}

5、Name Game 2

From a little research we found that the username of the logged on character is always after this signature: 0x64 0x??{6-8} 0x40 0x06 0x??{18} 0x5a 0x0c 0x00{2} What’s rick’s character’s name?

全局搜索

xxd 708.dmp | grep “5a0c 0000”

在这里插入图片描述

0c33a4ac位置有一个M0rt 尝试xxd出来

xxd -s 0x0c33a4ac -l 16 708.dmp

在这里插入图片描述

NSSCTF{M0rtyL0L}

6、Silly Rick

Silly rick always forgets his email’s password, so he uses a Stored Password Services online to store his password. He always copy and paste the password so he will not get it wrong. whats rick’s email password?

clipboard直接查看剪贴板

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” memdump -p 708 -D .

在这里插入图片描述

NSSCTF{M@il_Pr0vid0rs}

7、Hide And Seek

The reason that we took rick’s PC memory dump is because there was a malware infection. Please find the malware process name (including the extension)

pstree列出进程

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” pstree

在这里插入图片描述

列出此进程下命令行运行的程序

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” cmdline -p 3820,3720

在这里插入图片描述

NSSCTF{vmware-tray.exe}

8、Path To Glory

How did the malware got to rick’s PC? It must be one of rick old illegal habits…

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” filescan | grep -i “rick and morty”

提取文件

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” dumpfiles -Q 0x000000007d8813c0 -D .

在这里插入图片描述

cat file.None.0xfffffa801af10010.dat

在这里插入图片描述

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” dumpfiles -Q 0x000000007dae9350 -D .

strings file.None.0xfffffa801b42c9e0.dat

在这里插入图片描述

NSSCTF{M3an_T0rren7_4_R!ck}

9、Path To Glory 2

Continue the search after the way that malware got in.

查找浏览器的历史记录 -i e搜索history

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” filescan | grep -ie “history$”

在这里插入图片描述

提取数据库文件

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” dumpfiles -Q 0x000000007d45dcc0 -D .

在这里插入图片描述

将转存文件重命名后使用sqlite3访问并执行sql查询语句

select current_path, site_url from downloads;

在这里插入图片描述

可以看到种子文件的下载来源是https://mail.com/

重定向至文本后进行全局搜索

strings OtterCTF.vmem > OtterCTF.vmem.strings

grep “@mail.com” OtterCTF.vmem.strings

在这里插入图片描述

显示电子邮件地址后的20行

grep -A 20 “rickopicko@mail.com” OtterCTF.vmem.strings

在这里插入图片描述

NSSCTF{Hum@n_I5_Th3_Weak3s7_Link_In_Th3_Ch@in}

10、Bit 4 Bit

We’ve found out that the malware is a ransomware. Find the attacker’s bitcoin address.

勒索软件总喜欢把勒索标志丢在显眼的地方,所以搜索桌面的记录

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” filescan | grep “Desktop”

在这里插入图片描述

提取read_it

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” dumpfiles -Q 0x000000007d660500 -D .

在这里插入图片描述

提示我们查看程序获得更多信息(就是上面的VMware-tray.exe)

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” memdump -p 3720 -D .

提取后 根据题目提示 ransomware 搜索赎金相关内容

strings -e l 3720.dmp | grep -i -A 5 “ransomware”

在这里插入图片描述

NSSCTF{1MmpEmebJkqXG8nQv4cjJSmxZQFVmFo63M}

11、Graphic’s For The Weak

There’s something fishy in the malware’s graphics.

使用procdump转存进程的可执行文件

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” procdump -p 3720 -D .

在这里插入图片描述

binwalk分析文件

binwalk executable.3720.exe

foremost分离出图片

在这里插入图片描述

NSSCTF{S0_Just_M0v3_Socy}

12、Recovery

Rick got to have his files recovered! What is the random password used to encrypt the files?

重定向文本

strings -e l 3720.dmp > 3720.dmp.strings

全局搜索主机名相关

grep “WIN-LO6FAF3DTFE” 3720.dmp.strings | sort | uniq

在这里插入图片描述

grep -C 5 “aDOBofVYUNVnmp7” 3720.dmp.strings

在这里插入图片描述

NSSCTF{aDOBofVYUNVnmp7}

13、Closure

Now that you extracted the password from the memory, could you decrypt rick’s files?

已知这是个勒索软件,考虑沙箱上搜搜)

先检查勒索软件的hash值

在这里插入图片描述

搜搜(微步也可以查)

在这里插入图片描述

结合前面分离出来的图片中的 $ ucyLocker 搜索可知$ucyLocker是开源Hidden Tear勒索软件的变体,搜索找到解密器:Download Hidden Tear Decrypter (bleepingcomputer.com)

提取之间看到的flag.txt文件

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” filescan | grep “Flag.txt$”

vol.exe -f OtterCTF.vmem --profile=“Win7SP1x64” dumpfiles -Q 0x000000007e410890 -D .

在这里插入图片描述

瞅一眼文件

xxd file.None.0xfffffa801b0532e0.dat

在这里插入图片描述

把前面几个字节提取出来并且重命名文件

dd bs=1 count=48 if=file.None.0xfffffa801b0532e0.dat of=flag.txt

xxd flag.txt

在这里插入图片描述

运行解密器

在这里插入图片描述

在这里插入图片描述

NSSCTF{Im_Th@_B3S7_RicK_0f_Th3m_4ll}

  网络协议 最新文章
使用Easyswoole 搭建简单的Websoket服务
常见的数据通信方式有哪些?
Openssl 1024bit RSA算法---公私钥获取和处
HTTPS协议的密钥交换流程
《小白WEB安全入门》03. 漏洞篇
HttpRunner4.x 安装与使用
2021-07-04
手写RPC学习笔记
K8S高可用版本部署
mySQL计算IP地址范围
上一篇文章      下一篇文章      查看所有文章
加:2022-07-20 19:17:07  更:2022-07-20 19:18:43 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/19 16:02:38-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码