CTF-安恒19年二月月赛部分writeup

MISC1-来玩个游戏吧

题目:

第一关,一眼可以看出是盲文,之前做过类似题目

拿到在线网站解一下

??41402abc4b2a76b9719d911017c592,那么就奇怪了,这个??是什么东西,数一下加上??正好32位,应该是个MD5了,索性直接百度一下,

第一关答案出来了,试过了MD5值不对,hello是正确的,下一关。

第二关提示

没见过这种的,还是百度一下,

下载了这个脚本后执行命令

fastcoll_v1.0.0.5.exe -p C:\windows\notepad.exe -o D:\notepad1.exe D:\notepad2.exe

(因为没有规定文件名啥的就直接复制他的命令了)

直接将文件路径复制到文本框即可

  1. Dear Professional ; Especially for you - this cutting-edge
  2. intelligence ! If you no longer wish to receive our
  3. publications simply reply with a Subject: of "REMOVE"
  4. and you will immediately be removed from our club .
  5. This mail is being sent in compliance with Senate bill
  6. , Title ; Section ! THIS IS NOT MULTI-LEVEL
  7. MARKETING . Why work for somebody else when you can
  8. become rich as few as weeks . Have you ever noticed
  9. more people than ever are surfing the web and people
  10. will do almost anything to avoid mailing their bills
  11. . Well, now is your chance to capitalize on this !
  12. WE will help YOU decrease perceived waiting time by
  13. % & decrease perceived waiting time by % . You
  14. can begin at absolutely no cost to you . But don't
  15. believe us ! Mrs Jones of Minnesota tried us and says
  16. "I was skeptical but it worked for me" . We assure
  17. you that we operate within all applicable laws . Because
  18. the Internet operates on "Internet time" you must act
  19. now ! Sign up a friend and your friend will be rich
  20. too . Warmest regards . Dear Cybercitizen , We know
  21. you are interested in receiving red-hot announcement
  22. ! We will comply with all removal requests ! This mail
  23. is being sent in compliance with Senate bill 1619 ;
  24. Title 2 ; Section 301 . This is NOT unsolicited bulk
  25. mail ! Why work for somebody else when you can become
  26. rich within 53 MONTHS ! Have you ever noticed more
  27. people than ever are surfing the web and more people
  28. than ever are surfing the web . Well, now is your chance
  29. to capitalize on this . We will help you use credit
  30. cards on your website plus decrease perceived waiting
  31. time by 150% . The best thing about our system is that
  32. it is absolutely risk free for you ! But don't believe
  33. us ! Mrs Simpson of Washington tried us and says "Now
  34. I'm rich, Rich, RICH" . We assure you that we operate
  35. within all applicable laws ! We beseech you - act now
  36. ! Sign up a friend and your friend will be rich too
  37. . Thank-you for your serious consideration of our offer
  38. ! Dear Friend ; This letter was specially selected
  39. to be sent to you ! If you no longer wish to receive
  40. our publications simply reply with a Subject: of "REMOVE"
  41. and you will immediately be removed from our mailing
  42. list . This mail is being sent in compliance with Senate
  43. bill 2716 , Title 2 ; Section 306 ! This is a ligitimate
  44. business proposal . Why work for somebody else when
  45. you can become rich inside 33 weeks . Have you ever
  46. noticed more people than ever are surfing the web plus
  47. more people than ever are surfing the web . Well, now
  48. is your chance to capitalize on this ! WE will help
  49. YOU SELL MORE and process your orders within seconds
  50. . You can begin at absolutely no cost to you . But
  51. don't believe us ! Mrs Jones of Kentucky tried us and
  52. says "I was skeptical but it worked for me" ! This
  53. offer is % legal ! We implore you - act now . Sign
  54. up a friend and you'll get a discount of 50% . God
  55. Bless .

题目提示了:需要一个在线的网站去解密,而这个网站使用了栅格密码。

栅格密码也没听说过,还是百度

搜索关键字Spam Mimic到网站 http://www.spammimic.com/解码

flag为:flag{a0dd1e2e6b87fe47e5ad0184dc291e04}

MISC2-简单的流量分析

题目:

过滤http协议,按照info排序一下

发现存在/xinhu/robots.txt

追踪http流到/xinhu/robots.txt

发现abc.html,继续跟进

发现MD5和两串DES

  1. md5 0x99a98e067af6b09e64f3740767096c96
  2.  
  3. DES 0xb19b21e80c685bcb052988c11b987802d2f2808b2c2d8a0d (->)
  4.  
  5. DES 0x684a0857b767672d52e161aa70f6bdd07c0264876559cb8b (->)

继续向下分析,发现都是IPSec加密后的流量,尝试使用前面给的MD5和DES解密

wireshark进入Preference菜单下的Profile,找到ESP, 配置如下:

此时再次过滤http发现有部分响应包带上了数字,102 108 转换为ASCII码则为f l 所以统一提取转换。

  1. a = [102,108,97,103,123,50,55,98,48,51,98,55,53,56,102,50,53,53,50,55,54,101,53,97,57,56,100,97,48,101,49,57,52,55,98,101,100,125]
  2. flag = ''
  3. for i in a:
  4. flag +=chr(i)
  5. print flag

flag:flag{27b03b758f255276e5a98da0e1947bed}

CRYPTO1-hahaha

题目:

压缩包题目,其实看到这压缩包里的短位CRC32应该就能猜出是CRC32爆破了

当然也可以一步一步排除一下

首先binwalk分析得出非伪加密,爆破的话没有提示,不理想。

所以直接上脚本

所以加起来就是tanny_is_very_beautifu1_

哈哈

按照给的提示,flag应该是flag{1or! 2or@ sechn}

然后给了sha1值,应该是要爆破了。。。

当时做到这里就停了,因为不会写脚本了

下面献上一叶飘零大佬的脚本

  1. import itertools
  2. import hashlib
  3.  
  4. def sha1(str):
  5. sha = hashlib.sha1(str)
  6. encrypts = sha.hexdigest()
  7. return encrypts
  8. a1 = '1!'
  9. a2 = '2@'
  10. a3 = '{'
  11. a4 = '}'
  12. for str1 in itertools.combinations(a1,1):
  13. for str2 in itertools.combinations(a2,1):
  14. str3 = str1[0]+str2[0]+'sechn'
  15. for i in itertools.permutations(str3):
  16. tmp = (''.join(i))
  17. res = 'flag{'+tmp+'}'
  18. # print sha1(res)
  19. if sha1(res) == 'e6079c5ce56e781a50f4bf853cdb5302e0d8f054':
  20. print res
  21. break

flag:flag{sh@1enc}

小结:web没做出来太菜,pwn刚起步,压根没看,密码2也没做出来,需要的脑洞太大了,另外膜飘零师傅。

参考:https://www.anquanke.com/post/id/171543

CTF-安恒19年二月月赛部分writeup的更多相关文章

  1. CTF-安恒19年一月月赛部分writeup

    CTF-安恒19年一月月赛部分writeup MISC1-赢战2019 是一道图片隐写题 linux下可以正常打开图片,首先到binwalk分析一下. 里面有东西,foremost分离一下 有一张二维 ...

  2. CTF-安恒18年十二月月赛部分writeup

    CTF-安恒十二月月赛部分writeup 这次题目都比较简单蛤,连我这菜鸡都能做几道. WEB1-ezweb2 打开网站,啥也没有,审计源代码,还是啥都没有,也没什么功能菜单,扫了一下目录,扫到了ad ...

  3. CTF-安恒18年十一月月赛部分writeup

    安恒十一月月赛writeup 昨天做了一下十一月的题目,不才只做出来几道 签到web1 这个是十月的原题,因为忘了截图所以只能提供思路 Web消息头包含了登陆框的密码 输入密码后进入上传页面,上传一句 ...

  4. 【CTF】2019湖湘杯 miscmisc writeup

    题目来源:2019湖湘杯 题目链接:https://adworld.xctf.org.cn/task/answer?type=misc&number=1&grade=1&id= ...

  5. 安恒杯2月月赛-应该不是xss

    1. 打开题目一看,是个留言板 2. 查看源码发现有几个js文件 依次打开发现在main.js里存在这样一段代码 3. 访问 /#login是登录的界面,/#chgpass是修改密码的界面,其中修改密 ...

  6. 安恒杯11月月赛web题目-ezsql详细记录

    通过此题目可以学习到 1.通过load_file+like来盲注获取文件内容 2.php魔术方法__get函数的用法 3.bypass  linux命令过滤 题目中给了注册和登录的功能,没有源码泄露 ...

  7. 2018安恒杯11月月赛 MISC

    题目放评论了 Numeric password 这次隐写没有按照套路出牌,很强. 记录一下 看来自主学习的能力很有待提高. 打开Numeric password.txt 中华文化博大精深,近日在教小外 ...

  8. 安恒2018年三月月赛MISC蜘蛛侠呀

    到处都是知识盲区hhh 下载了out.pcap之后,里面有很多ICMP包 看到ttl之后联想到西湖论剑里面的一道杂项题,无果 看WP知道可以使用wireshark的tshark命令提取流量包里面的文件 ...

  9. 【CTF】CTFHub 技能树 文件头检查 writeup

    PHP一句话木马 <?php @eval($_POST["pass"]);?> <?php eval($_REQUEST["pass"]);? ...

随机推荐

  1. Delphi XE7功能之TMultiView

    TMultView,做为一个TPanel来显示控件,可通过属性Mode来控制TMultView的显示效果,如下拉或者以抽屉方式.从屏一侧象抽屉一样显示TMultView,但不会转换主屏,也就是说在主窗 ...

  2. 计算机应用基础PPT flash作业

  3. c# 内存泄漏检查心得

    系统环境 windows 7 x64 检查工具:ANTS Memory Profiler 7 或者 .NET Memory Profiler 4.0 开发的软件为winform / windows s ...

  4. 内置模块之sys

    一.模块sys sys模块主要对解释器相关的操作 1.常用方法和属性 sys.argv    命令行参数List,第一个元素是程序本身路径 sys.exit(n)  退出程序,正常退出时exit(0) ...

  5. [BZOJ 2322][BeiJing2011]梦想封印

    梦想封印 题意 原题面: Problem 2322. -- [BeiJing2011]梦想封印 2322: [BeiJing2011]梦想封印 Time Limit: 20 Sec  Memory L ...

  6. SQL Server用户自定义函数(UDF)

    一.UDF的定义 和存储过程很相似,用户自定义函数也是一组有序的T-SQL语句,UDF被预先优化和编译并且可以作为一个单元来进行调用. UDF和存储过程的主要区别在于返回结果的方式: 使用UDF时可传 ...

  7. C++课堂作业(1)

    github链接: https://github.com/deepYY/object-oriented/tree/master/Circle 作业题目 Create a program that as ...

  8. linux性能系列--内存

    一.啥是内存呢? 回答:内存是计算机中重要的部件之一,它是与CPU进行沟通的桥梁.计算机中所有程序的运行都是在内存中进行的,因此内存的性能对计算机的影响非常大. 内存(Memory)也被称为内存储器, ...

  9. N个苹果分给M个人,有多少种分法

    每次分配一个苹果出去,然后再分配N-1个苹果.这里有个注意的地方就是,分那1个苹果的时候,假设还有N个苹果,不是从第一个人开始分,而是从N+1个苹果分配的位置开始,不然的话会产生重复的解.所以i=p不 ...

  10. C语言顺序表的实现

    今天本来想写段代码练练手,想法挺好结果,栽了个大跟头,在这个错误上徘徊了4个小时才解决,现在分享出来,给大家提个醒,先贴上代码: /********************************** ...