更新於 2024/11/12閱讀時間約 1 分鐘

Nice netcat...

題目圖示

Hints

1. You can practice using netcat with this picoGym problem: [what's a netcat?]

2. You can practice reading and writing ASCII with this picoGym problem: [Let's Warm Up]

解題步驟

  1. nc mercury.picoctf.net 49039
  2. 將結果複製並將其放入 num 陣列中,如下所示:
nums = [112 ,105,99,111 ,67 ,84 ,70,123,103,48,48,100,95,107,49,116,116,121,33 ,95 ,110,49 ,99 ,51 ,95 ,107 ,49 ,116 ,116,121,33,95,51,100,56,52 ,101,100,99,56,125,10]
flag = ""
for number in nums:
flag += chr(number)
print(flag)
  1. 在執行完上述程式後,就會得到flag了

Useful Stuffs

1. https://blog.gtwang.org/linux/linux-utility-netcat-examples/

2. https://www.runoob.com/python/python-func-chr.html

分享至
成為作者繼續創作的動力吧!
© 2024 vocus All rights reserved.