前言
有幸参加了2022年山西省第二届网络安全技能大赛企业组的比赛,这是第一次参加ctf比赛,本着积累实战经验的目的去的,排名有点意外。
提示:以下是本篇文章正文内容。
一、题目
题目:
加密题。
附件:
encode.py和cipher.txt
encode.py
def encode(cipher,hide):
replace_list = ['a','b','c','d','e','f']
storage = []
for i in hide:
try:
if i in replace_list:
dict = {'a':10,'b':11,'c':12,'d':13,'e':14,'f':15}
storage.append(cipher[::dict[i]])
else:
storage.append(cipher[::int(i)])
except Exception as e:
print(e)
pass
return storage
def main():
cipher = str(input('>>>')).replace(' ','')
if len(cipher) <= 16:
print('[-]len(Cipher) > 16 !')
else:
hide = str(input('>>>')).lower()
result = encode(cipher,hide)
with open('cipher.txt','w') as f:
f.write('\n'.join(result))
main()
cipher.txt
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Soytqseoon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Ssno
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Soytqseoon
Sataean
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Sgshncon
Sgshncon
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Syqeo
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Seaorpyshtcnqensinefnomtohdn
Ssno
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Soytqseoon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Ssno
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Soytqseoon
Sataean
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Sgshncon
Sgshncon
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Syqeo
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Seaorpyshtcnqensinefnomtohdn
Ssno
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Soytqseoon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Ssno
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Soytqseoon
Sataean
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Sgshncon
Sgshncon
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Syqeo
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Seaorpyshtcnqensinefnomtohdn
Ssno
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Soytqseoon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Ssno
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Soytqseoon
Sataean
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Sgshncon
Sgshncon
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Syqeo
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Seaorpyshtcnqensinefnomtohdn
Ssno
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Soytqseoon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Ssno
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Soytqseoon
Sataean
Soytqseoon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Sgshncon
Sgshncon
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Soytqseoon
Syqeo
Sgshncon
Soytqseoon
Soytqseoon
Snptcuscnahg
Seaorpyshtcnqensinefnomtohdn
Ssno
Saryhcqnienmod
Sgoaytthqaseeioaoin
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Soytqseoon
Ssno
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Soytqseoon
Ssno
Soytqseoon
Sgshncon
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscienceofinformationhiding
Sgshncon
Sgoaytthqaseeioaoin
Sgshncon
Sataean
Seaorpyshtcnqensinefnomtohdn
Syqeo
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Saryhcqnienmod
Soytqseoon
Sataean
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Seaorpyshtcnqensinefnomtohdn
Soytqseoon
Snptcuscnahg
Sgshncon
Saryhcqnienmod
Sgshncon
Saryhcqnienmod
Soytqseoon
Snptcuscnahg
Sgshncon
Seaorpyshtcnqensinefnomtohdn
Sgshncon
Saryhcqnienmod
Soytqseoon
Stsa
Sgshncon
Snptcuscnahg
Sgshncon
Sgoaytthqaseeioaoin
Soytqseoon
Snptcuscnahg
Soytqseoon
Steganographyisthetechniqueandscie