OFPPT-CTF 2022 部分writeup
OFPPT-CTF 2022 部分writeup
OFPPT-CTF 2022
- OFPPT-CTF 2022 部分writeup
- Web
- Logs
- easy web
- LFI
- library
- Chocolate
- php
- Cryptography
- Rome famous general
- Milkshake
- Transposition
- Forensics
- Shark
- Windows memory dump
- pcap analysis
- pcap analysis 2
- pcap analysis 3
- pcap analysis 4
- pcap analysis 5
- pcap analysis 6
- linux
- Prison Break
本文來自csdn的??shu天??,平時會記錄ctf、取證和滲透相關的文章,歡迎大家來我的主頁:shu天_CSDN博客-ctf,取證,web領域博主 看看ヾ(@ ?ω? @)ノ!!
Web
Logs
Our apache server is under attack. Thoses are the access logs of the server, can you find out what they are doing?
是apache日志
最后這幾段帶ascii碼的,可以翻過來得到flag
easy web
Can you find the flag in this website?
css里頭
LFI
Simple old-school LFI challenge. I know it’s Lame to see this kind of problems in real world now.
But what if we do!😅
readme的地方就是LFI的地方
掃描到robots.txt
php偽協議讀一下
library
I created a file library in my website. I don’t have a lot of files, but take a look to the ones I have!
本題同https://ahmed-belkahla.me/post/csictf2020/?msclkid=7546b593aab011ecb605c6b48f5bdbae
payload:
Chocolate
My friend is only willing to eat chocolate. Any other food he rejects.
改個cookie
php
This website is broken; it shows its php source code. Can you find a way to read the flag.
<?phpif (isset($_GET['hash'])) {if ($_GET['hash'] === "10932435112") {die('Not so easy mate.');}$hash = sha1($_GET['hash']);$target = sha1(10932435112);if($hash == $target) {include('flag.php');print $flag;} else {print "OFPPT-CTF{not-the-one}";} } else {show_source(__FILE__); }?>sha1(10932435112)=0e07766915004133176347055865026311692244
sha1加密后以0E開頭:
- sha1(‘aaroZmOk’)
- sha1(‘aaK1STfY’)
- sha1(‘aaO8zKZF’)
- sha1(‘aa3OFF9m’)
payload:
/?hash=aaroZmOkCryptography
Rome famous general
We received an anonymous encrypted message. Can you help us decrypt this text? LRMMS-PSR{d3x3h_p43q4o_p1my3o}
it says you have to use a key: cipherkey
是Keyed Caesar
OFPPT-CTF{k3y3d_c43s4r_c1ph3r}
Milkshake
4e3255334e5449784d6a45794e54566a4e7a49794e5463314e474d334f444d774e3249315a6a51334e6a497a4d4463794e6a59334e5451304e47553d ↓ 轉ASCII ↓ N2U3NTIxMjEyNTVjNzIyNTc1NGM3ODMwN2I1ZjQ3NjIzMDcyNjY3NTQ0NGU= ↓ base64 ↓ 7e752121255c7225754c78307b5f476230726675444e ↓ 轉ASCII ↓ ~u!!%\r%uLx0{_Gb0rfuDN ↓ ROT47 ↓ OFPPTCTF{I_L0v3_C7Fs}
OFPPT-CTF{I_L0v3_C7Fs}
Transposition
This one includes a transposition:
OFi3FntcP31_P1$sT_o4-_nCCl_4TscsF11c{pTRrh44n3s10rpl0}s
圖片提示rail,Rail fence在線工具:www.boxentriq.com/code-breaking/rail-fence-cipher
OFPPT-CTF{R41l_F3nc3_1s_4_Cl4ss1c_Tr4ns0p0sit1$on_c1ph3r}
Forensics
Shark
這題好坑,本來看http流以為是winrm解密?😭,查了好多資料
然后發現tcp.stream eq 5
解密一下即可
OFPPT-CTF{4lw4ys_F0110w_th3_str34m}
Windows memory dump
A Windows computer has been infected. The attacker managed to exploit a portion of a database backup that contains sensitive employee and customer private information. All memory dump challenges use the same file.
Inspect the memory dump and tell us the Windows Major Operating System Version, bit version, and the image date/time (UTC, no spaces or special characters). Submit the flag as OFPPT-CTF{OS_BIT_YYYYMMDDhhmmss}. Example: OFPPT-CTF{WindowsXP_32_20220120095959} File: 1.5 GB Decompressed: 5 GB
win10內存鏡像要用vol3
pcap analysis
We need YOU to help us analyze the packet capture. Look for relevant data to the potential attempted hack. To gather some information on the victim, investigate the victim’s computer activity. The “victim” was using a search engine to look up a name. Provide the name with standard capitalization: OFPPT-CTF{Terry_Stewart}. Download zip SHA1: b56857a89592bc1b66ce59181c86e5ceb56da1df Zip file password: 0FPP7C7F NOTE: Next pcap analysis challenges use this PCAP file.
用百度搜的,百度關鍵詞wd,他搜了不少東西,都試試
OFPPT-CTF{charles_geschickter}
這里可以確認受害者IP:192.168.100.106
攻擊者IP:192.168.100.103
pcap analysis 2
After hacking the victim’s computer, the attacker downloaded several files, including two binaries with identical names, but with different extensions: .exe and .bin (a Windows binary and a Linux binary, respectively).
What are the MD5 hashes of the two tool programs? Submit both hashes as the flag, separated by a ‘|’: OFPPT-CTF{ExeMD5|BinMD5} Use the PCAP file from ‘pcap analysis’ challenge.
retr是ftp的下載命令,根據提示是這兩個
找出傳輸文件的tcp流,選擇原始數據,另存為即可
OFPPT-CTF{9cb9b11484369b95ce35904c691a5b28|4da8e81ee5b08777871e347a6b296953}
pcap analysis 3
The attacker cracked a password belonging to the victim. Submit the flag as: OFPPT-CTF{password}.
Use the PCAP file from ‘pcap analysis’ challenge.
攻擊者在爆破ftp
爆破成功,得到密碼
cgeschickter用戶也與第一題呼應
pcap analysis 4
The attacker made a fatal mistake, and in doing so, gave control of his computer to… someone. he shouldn’t have run that malicious program.
What is the hash md5 of the program? Submit the flag as: OFPPT-CTF{MD5_HASH}. Use the PCAP file from ‘pcap analysis’ challenge.
pcap analysis 5
The attacker started by performing a port scan of the victim computer.
Identify the open TCP ports discovered on the victim’s machine? Enter the flag as the open ports, separated by commas, no spaces, in numerical order. Disregard port numbers > 10000. Example: OFPPT-CTF{80,110,111,143,443,2049} Use the PCAP file from ‘pcap analysis’ challenge.
根據提供的信息過濾一下
ip.src==192.168.100.103 && ip.dst==192.168.100.106 && tcp && frame.len==74
將info導入excel篩選一下
OFPPT-CTF{21,135,139,445,3389}
pcap analysis 6
The attacker might have just bit off more than he can chew! he encountered a competitor that is counter-attacking his system!
The competitor executed a command to attain persistence on the attacker’s computer. This command will allow the adversary to regain a connection to the computer even after reboot. What is the packet number where this command was executed? For example: OFPPT-CTF{93721}. Use the PCAP file from ‘pcap analysis’ challenge.
什么黑客大戰,燃起來了
本來以為是stream的數,猜了半天怎么不對,后來發現是數據包號
OFPPT-CTF{160468}
linux
Prison Break
笑死我好多命令被屏蔽了
看一看當前運行的進程
試了試發現nl命令還可以讀文件,讀/ctf/start.sh和script.sh
start.sh
script.sh
1 shopt -s expand_aliases2 alias cat="cowsay Don\'t look at me, I\'m just here to say moo."3 alias ls="cowsay Don\'t look at me, I\'m just here to say moo."4 alias grep="cowsay Don\'t look at me, I\'m just here to say moo."5 alias awk="cowsay Don\'t look at me, I\'m just here to say moo."6 alias pwd="cowsay Don\'t look at me, I\'m just here to say moo."7 alias cd="cowsay Don\'t look at me, I\'m just here to say moo."8 alias head="cowsay Don\'t look at me, I\'m just here to say moo."9 alias tail="cowsay Don\'t look at me, I\'m just here to say moo."10 alias less="cowsay Don\'t look at me, I\'m just here to say moo."11 alias more="cowsay Don\'t look at me, I\'m just here to say moo."12 alias sed="cowsay Don\'t look at me, I\'m just here to say moo."13 alias find="cowsay Don\'t look at me, I\'m just here to say moo."14 alias awk="cowsay Don\'t look at me, I\'m just here to say moo."15 while :16 do17 echo "user @ csictf: $ "18 read input19 eval $input 2>/dev/null20 done后來想了想linux有不少對應繞過方法
l""s nl flag.txt
OFPPT-CTF{Pr1s0n_sh3ll_3sc4p3d}
本文來自csdn的??shu天??,平時會記錄ctf、取證和滲透相關的文章,歡迎大家來我的主頁:shu天_CSDN博客-ctf,取證,web領域博主 看看ヾ(@ ?ω? @)ノ!!
總結
以上是生活随笔為你收集整理的OFPPT-CTF 2022 部分writeup的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: cpld和fpga区别
- 下一篇: 选择的串口 _ 不存在或开发板没有连接_