古典密码积累(施工中)

一,古典密码对照表

1,音乐加密

 

 

2,仓颉编码解码

仓颉编码_仓颉编码查询_40工具查询网 (4000879990.xin)

 

3,Gronsfeld

羊城杯的misc里用到了,Gronsfeld 是维吉尼亚的变种

Gronsfeld Cipher (online tool) | Boxentriq

 

 

4,UUencode加密/解密

密文:

=8S4U,3DR8SDY,C`S-F5F-C(S,S<R-C`Q9F8S87T`

UUencode加密/解密 - Bugku CTF

 

 

 

二,题目积累

1,[UTCTF 2020]basics

解题步骤:

1) 将二进制转为十进制,

2)

查看代码
 from Crypto.Util.number import *

a = '85 104 45 111 104 44 32 108 111 111 107 115 32 108 105 107 101 32 119 101 32 104 97 118 101 32 97 110 111 116 104 101 114 32 98 108 111 99 107 32 111 102 32 116 101 120 116 44 32 119 105 116 104 32 115 111 109 101 32 115 111 114 116 32 111 102 32 115 112 101 99 105 97 108 32 101 110 99 111 100 105 110 103 46 32 67 97 110 32 121 111 117 32 102 105 103 117 114 101 32 111 117 116 32 119 104 97 116 32 116 104 105 115 32 101 110 99 111 100 105 110 103 32 105 115 63 32 40 104 105 110 116 58 32 105 102 32 121 111 117 32 108 111 111 107 32 99 97 114 101 102 117 108 108 121 44 32 121 111 117 39 108 108 32 110 111 116 105 99 101 32 116 104 97 116 32 116 104 101 114 101 32 111 110 108 121 32 99 104 97 114 97 99 116 101 114 115 32 112 114 101 115 101 110 116 32 97 114 101 32 65 45 90 44 32 97 45 122 44 32 48 45 57 44 32 97 110 100 32 115 111 109 101 116 105 109 101 115 32 47 32 97 110 100 32 43 46 32 83 101 101 32 105 102 32 121 111 117 32 99 97 110 32 102 105 110 100 32 97 110 32 101 110 99 111 100 105 110 103 32 116 104 97 116 32 108 111 111 107 115 32 108 105 107 101 32 116 104 105 115 32 111 110 101 46 41 10 84 109 86 51 73 71 78 111 89 87 120 115 90 87 53 110 90 83 69 103 81 50 70 117 73 72 108 118 100 83 66 109 97 87 100 49 99 109 85 103 98 51 86 48 73 72 100 111 89 88 81 110 99 121 66 110 98 50 108 117 90 121 66 118 98 105 66 111 90 88 74 108 80 121 66 74 100 67 66 115 98 50 57 114 99 121 66 115 97 87 116 108 73 72 82 111 90 83 66 115 90 88 82 48 90 88 74 122 73 71 70 121 90 83 66 122 97 71 108 109 100 71 86 107 73 71 74 53 73 72 78 118 98 87 85 103 89 50 57 117 99 51 82 104 98 110 81 117 73 67 104 111 97 87 53 48 79 105 66 53 98 51 85 103 98 87 108 110 97 72 81 103 100 50 70 117 100 67 66 48 98 121 66 122 100 71 70 121 100 67 66 115 98 50 57 114 97 87 53 110 73 72 86 119 73 70 74 118 98 87 70 117 73 72 66 108 98 51 66 115 90 83 107 117 67 109 116 50 89 110 78 120 99 109 81 115 73 71 108 53 90 83 100 105 98 121 66 114 100 110 100 53 89 50 81 103 90 72 74 118 89 109 56 104 73 70 104 53 90 121 66 119 101 87 73 103 90 72 74 118 73 72 66 122 101 71 116 50 73 67 104 114 101 71 52 103 100 50 116 112 98 71 56 103 90 72 74 118 73 72 74 114 89 109 53 118 89 50 81 117 76 105 52 112 73 72 112 114 89 109 81 54 73 71 115 103 89 50 86 115 89 50 82 122 90 71 86 107 99 51 108 52 73 71 49 122 101 110 74 118 89 105 52 103 85 51 103 103 90 72 74 118 73 72 66 53 100 110 90 53 90 51 78 52 99 83 66 107 98 50 104 107 76 67 66 84 74 50 90 118 73 71 82 114 100 87 57 52 73 72 100 112 73 72 100 118 89 50 78 114 99 87 56 103 97 51 104 117 73 71 74 118 101 110 90 114 98 87 57 117 73 71 57 109 98 50 74 112 73 71 116 50 101 110 74 114 98 71 57 107 99 50 48 103 98 88 74 114 89 109 116 116 90 71 57 105 73 71 100 122 90 72 73 103 97 121 66 116 101 87 74 105 98 50 78 54 101 88 104 117 98 51 104 116 98 121 66 107 101 83 66 114 73 71 53 122 99 72 66 118 89 109 57 52 90 67 66 116 99 109 116 105 97 50 49 107 98 50 73 103 76 83 66 49 101 72 108 110 101 67 66 114 89 121 66 114 73 71 78 108 98 71 78 107 99 50 82 108 90 72 78 53 101 67 66 116 99 51 112 121 98 50 73 117 73 69 49 114 101 67 66 112 101 87 85 103 99 72 78 52 98 105 66 107 99 109 56 103 99 72 78 52 97 51 89 103 99 72 90 114 99 84 56 103 99 110 78 52 90 68 111 103 82 50 56 103 100 88 104 53 90 121 66 107 99 109 116 107 73 71 82 121 98 121 66 119 100 109 116 120 73 72 78 106 73 72 70 53 99 51 104 120 73 71 82 53 73 71 120 118 73 72 108 119 73 71 82 121 98 121 66 119 101 87 74 51 97 50 81 103 90 87 82 119 100 109 116 120 101 121 52 117 76 110 48 103 76 83 66 110 99 110 78 116 99 105 66 51 98 50 116 52 89 121 66 107 99 109 116 107 73 72 78 119 73 71 108 53 90 83 66 106 98 50 56 103 90 72 74 114 90 67 66 54 97 50 82 107 98 50 74 52 76 67 66 112 101 87 85 103 100 88 104 53 90 121 66 110 99 109 116 107 73 71 82 121 98 121 66 116 101 87 74 105 98 50 78 54 101 88 104 117 98 51 104 116 98 50 77 103 99 72 108 105 73 71 85 115 73 71 81 115 73 72 65 115 73 72 89 103 97 121 119 103 97 51 104 117 73 72 69 103 97 50 74 118 76 105 66 74 101 87 85 103 98 87 116 52 73 72 112 105 101 87 120 114 98 72 90 112 73 71 100 53 89 110 85 103 101 87 86 107 73 71 82 121 98 121 66 105 98 51 100 114 99 51 104 122 101 72 69 103 98 88 74 114 89 109 116 116 90 71 57 105 89 121 66 115 97 83 66 105 98 51 112 50 97 50 49 122 101 72 69 103 90 72 74 118 100 121 66 114 101 71 52 103 99 51 104 119 98 50 74 105 99 51 104 120 73 71 49 53 100 51 100 53 101 67 66 110 101 87 74 117 89 121 66 122 101 67 66 107 99 109 56 103 84 51 104 120 100 110 78 106 99 105 66 50 97 51 104 120 90 87 116 120 98 121 52 103 83 51 104 53 90 72 74 118 89 105 66 120 89 109 57 114 90 67 66 51 98 50 82 121 101 87 52 103 99 50 77 103 90 72 107 103 90 87 78 118 73 72 66 105 98 50 70 108 98 51 104 116 97 83 66 114 101 71 116 50 97 87 78 122 89 122 111 103 90 50 56 103 100 88 104 53 90 121 66 107 99 109 116 107 73 67 100 118 74 121 66 106 99 110 108 110 89 121 66 108 101 105 66 51 101 87 78 107 73 72 108 119 90 71 57 52 73 72 78 52 73 71 82 121 98 121 66 114 100 110 112 121 97 50 120 118 90 67 119 103 89 51 107 103 90 72 74 114 90 67 100 106 73 72 112 105 101 87 120 114 98 72 90 112 73 71 82 121 98 121 66 51 101 87 78 107 73 71 49 53 100 51 100 53 101 67 66 116 99 109 116 105 97 50 49 107 98 50 73 103 99 51 103 103 90 72 74 118 73 71 82 118 97 71 81 115 73 72 66 53 100 110 90 53 90 50 57 117 73 71 120 112 73 67 100 107 74 121 119 103 97 51 104 117 73 71 78 53 73 72 108 52 76 105 66 90 101 71 49 118 73 71 108 53 90 83 66 49 101 72 108 110 73 71 115 103 99 71 57 110 73 71 49 121 97 50 74 114 98 87 82 118 89 109 77 115 73 71 108 53 90 83 66 116 97 51 103 103 99 51 104 119 98 50 73 103 90 72 74 118 73 71 74 118 89 50 81 103 101 88 65 103 90 72 74 118 73 71 100 53 89 109 53 106 73 71 120 114 89 50 57 117 73 72 108 52 73 71 49 53 100 51 100 53 101 67 66 110 101 87 74 117 89 121 66 107 99 109 116 107 73 71 78 121 101 87 99 103 90 88 111 103 99 51 103 103 90 72 74 118 73 69 57 52 99 88 90 122 89 51 73 103 100 109 116 52 99 87 86 114 99 87 56 117 67 110 74 110 97 71 53 52 99 50 82 109 101 88 78 107 100 71 100 111 100 83 69 103 99 87 100 109 73 71 108 122 89 87 115 103 89 51 82 111 100 72 86 112 97 50 85 103 90 71 108 114 73 72 112 114 98 110 82 111 97 71 116 52 73 72 74 52 99 87 120 107 90 50 53 52 99 50 120 112 99 83 66 121 97 88 78 53 101 87 116 111 98 109 115 117 73 71 108 114 101 71 115 103 100 72 85 103 99 121 66 106 101 88 78 117 73 71 78 110 101 67 66 122 101 88 107 103 99 87 100 109 101 67 66 112 99 51 104 108 73 71 116 106 89 50 100 52 90 72 85 54 73 71 90 107 89 51 108 122 98 110 116 111 77 72 90 102 90 71 107 48 90 72 86 102 100 109 107 48 90 70 57 48 88 51 73 48 101 88 108 102 99 110 104 120 98 71 81 119 102 83 52 103 99 87 100 109 73 72 90 48 101 88 107 103 89 51 82 111 90 83 66 107 97 88 78 107 73 72 77 103 101 87 100 107 73 71 100 106 73 72 74 52 99 87 120 107 90 50 53 52 99 50 120 112 99 83 66 48 100 83 66 119 90 110 86 107 73 72 112 109 100 72 108 108 100 71 104 117 73 71 100 106 89 121 66 107 97 88 82 49 73 72 86 110 101 71 81 103 90 50 77 103 101 110 78 49 100 72 73 103 89 109 104 110 100 110 108 114 90 87 53 114 76 67 66 122 97 71 85 103 100 71 81 103 101 71 116 122 101 88 108 120 73 72 82 49 73 71 104 110 90 67 66 49 90 121 66 54 99 50 85 103 99 50 78 107 97 51 103 103 99 51 108 53 76 105 66 112 90 50 120 114 73 72 70 110 90 105 66 114 97 72 66 110 99 87 116 108 73 71 82 112 97 121 66 121 97 88 78 53 101 87 116 111 98 109 115 104'
print(a.replace(' ',','))
b = [85,104,45,111,104,44,32,108,111,111,107,115,32,108,105,107,101,32,119,101,32,104,97,118,101,32,97,110,111,116,104,101,114,32,98,108,111,99,107,32,111,102,32,116,101,120,116,44,32,119,105,116,104,32,115,111,109,101,32,115,111,114,116,32,111,102,32,115,112,101,99,105,97,108,32,101,110,99,111,100,105,110,103,46,32,67,97,110,32,121,111,117,32,102,105,103,117,114,101,32,111,117,116,32,119,104,97,116,32,116,104,105,115,32,101,110,99,111,100,105,110,103,32,105,115,63,32,40,104,105,110,116,58,32,105,102,32,121,111,117,32,108,111,111,107,32,99,97,114,101,102,117,108,108,121,44,32,121,111,117,39,108,108,32,110,111,116,105,99,101,32,116,104,97,116,32,116,104,101,114,101,32,111,110,108,121,32,99,104,97,114,97,99,116,101,114,115,32,112,114,101,115,101,110,116,32,97,114,101,32,65,45,90,44,32,97,45,122,44,32,48,45,57,44,32,97,110,100,32,115,111,109,101,116,105,109,101,115,32,47,32,97,110,100,32,43,46,32,83,101,101,32,105,102,32,121,111,117,32,99,97,110,32,102,105,110,100,32,97,110,32,101,110,99,111,100,105,110,103,32,116,104,97,116,32,108,111,111,107,115,32,108,105,107,101,32,116,104,105,115,32,111,110,101,46,41,10,84,109,86,51,73,71,78,111,89,87,120,115,90,87,53,110,90,83,69,103,81,50,70,117,73,72,108,118,100,83,66,109,97,87,100,49,99,109,85,103,98,51,86,48,73,72,100,111,89,88,81,110,99,121,66,110,98,50,108,117,90,121,66,118,98,105,66,111,90,88,74,108,80,121,66,74,100,67,66,115,98,50,57,114,99,121,66,115,97,87,116,108,73,72,82,111,90,83,66,115,90,88,82,48,90,88,74,122,73,71,70,121,90,83,66,122,97,71,108,109,100,71,86,107,73,71,74,53,73,72,78,118,98,87,85,103,89,50,57,117,99,51,82,104,98,110,81,117,73,67,104,111,97,87,53,48,79,105,66,53,98,51,85,103,98,87,108,110,97,72,81,103,100,50,70,117,100,67,66,48,98,121,66,122,100,71,70,121,100,67,66,115,98,50,57,114,97,87,53,110,73,72,86,119,73,70,74,118,98,87,70,117,73,72,66,108,98,51,66,115,90,83,107,117,67,109,116,50,89,110,78,120,99,109,81,115,73,71,108,53,90,83,100,105,98,121,66,114,100,110,100,53,89,50,81,103,90,72,74,118,89,109,56,104,73,70,104,53,90,121,66,119,101,87,73,103,90,72,74,118,73,72,66,122,101,71,116,50,73,67,104,114,101,71,52,103,100,50,116,112,98,71,56,103,90,72,74,118,73,72,74,114,89,109,53,118,89,50,81,117,76,105,52,112,73,72,112,114,89,109,81,54,73,71,115,103,89,50,86,115,89,50,82,122,90,71,86,107,99,51,108,52,73,71,49,122,101,110,74,118,89,105,52,103,85,51,103,103,90,72,74,118,73,72,66,53,100,110,90,53,90,51,78,52,99,83,66,107,98,50,104,107,76,67,66,84,74,50,90,118,73,71,82,114,100,87,57,52,73,72,100,112,73,72,100,118,89,50,78,114,99,87,56,103,97,51,104,117,73,71,74,118,101,110,90,114,98,87,57,117,73,71,57,109,98,50,74,112,73,71,116,50,101,110,74,114,98,71,57,107,99,50,48,103,98,88,74,114,89,109,116,116,90,71,57,105,73,71,100,122,90,72,73,103,97,121,66,116,101,87,74,105,98,50,78,54,101,88,104,117,98,51,104,116,98,121,66,107,101,83,66,114,73,71,53,122,99,72,66,118,89,109,57,52,90,67,66,116,99,109,116,105,97,50,49,107,98,50,73,103,76,83,66,49,101,72,108,110,101,67,66,114,89,121,66,114,73,71,78,108,98,71,78,107,99,50,82,108,90,72,78,53,101,67,66,116,99,51,112,121,98,50,73,117,73,69,49,114,101,67,66,112,101,87,85,103,99,72,78,52,98,105,66,107,99,109,56,103,99,72,78,52,97,51,89,103,99,72,90,114,99,84,56,103,99,110,78,52,90,68,111,103,82,50,56,103,100,88,104,53,90,121,66,107,99,109,116,107,73,71,82,121,98,121,66,119,100,109,116,120,73,72,78,106,73,72,70,53,99,51,104,120,73,71,82,53,73,71,120,118,73,72,108,119,73,71,82,121,98,121,66,119,101,87,74,51,97,50,81,103,90,87,82,119,100,109,116,120,101,121,52,117,76,110,48,103,76,83,66,110,99,110,78,116,99,105,66,51,98,50,116,52,89,121,66,107,99,109,116,107,73,72,78,119,73,71,108,53,90,83,66,106,98,50,56,103,90,72,74,114,90,67,66,54,97,50,82,107,98,50,74,52,76,67,66,112,101,87,85,103,100,88,104,53,90,121,66,110,99,109,116,107,73,71,82,121,98,121,66,116,101,87,74,105,98,50,78,54,101,88,104,117,98,51,104,116,98,50,77,103,99,72,108,105,73,71,85,115,73,71,81,115,73,72,65,115,73,72,89,103,97,121,119,103,97,51,104,117,73,72,69,103,97,50,74,118,76,105,66,74,101,87,85,103,98,87,116,52,73,72,112,105,101,87,120,114,98,72,90,112,73,71,100,53,89,110,85,103,101,87,86,107,73,71,82,121,98,121,66,105,98,51,100,114,99,51,104,122,101,72,69,103,98,88,74,114,89,109,116,116,90,71,57,105,89,121,66,115,97,83,66,105,98,51,112,50,97,50,49,122,101,72,69,103,90,72,74,118,100,121,66,114,101,71,52,103,99,51,104,119,98,50,74,105,99,51,104,120,73,71,49,53,100,51,100,53,101,67,66,110,101,87,74,117,89,121,66,122,101,67,66,107,99,109,56,103,84,51,104,120,100,110,78,106,99,105,66,50,97,51,104,120,90,87,116,120,98,121,52,103,83,51,104,53,90,72,74,118,89,105,66,120,89,109,57,114,90,67,66,51,98,50,82,121,101,87,52,103,99,50,77,103,90,72,107,103,90,87,78,118,73,72,66,105,98,50,70,108,98,51,104,116,97,83,66,114,101,71,116,50,97,87,78,122,89,122,111,103,90,50,56,103,100,88,104,53,90,121,66,107,99,109,116,107,73,67,100,118,74,121,66,106,99,110,108,110,89,121,66,108,101,105,66,51,101,87,78,107,73,72,108,119,90,71,57,52,73,72,78,52,73,71,82,121,98,121,66,114,100,110,112,121,97,50,120,118,90,67,119,103,89,51,107,103,90,72,74,114,90,67,100,106,73,72,112,105,101,87,120,114,98,72,90,112,73,71,82,121,98,121,66,51,101,87,78,107,73,71,49,53,100,51,100,53,101,67,66,116,99,109,116,105,97,50,49,107,98,50,73,103,99,51,103,103,90,72,74,118,73,71,82,118,97,71,81,115,73,72,66,53,100,110,90,53,90,50,57,117,73,71,120,112,73,67,100,107,74,121,119,103,97,51,104,117,73,71,78,53,73,72,108,52,76,105,66,90,101,71,49,118,73,71,108,53,90,83,66,49,101,72,108,110,73,71,115,103,99,71,57,110,73,71,49,121,97,50,74,114,98,87,82,118,89,109,77,115,73,71,108,53,90,83,66,116,97,51,103,103,99,51,104,119,98,50,73,103,90,72,74,118,73,71,74,118,89,50,81,103,101,88,65,103,90,72,74,118,73,71,100,53,89,109,53,106,73,71,120,114,89,50,57,117,73,72,108,52,73,71,49,53,100,51,100,53,101,67,66,110,101,87,74,117,89,121,66,107,99,109,116,107,73,71,78,121,101,87,99,103,90,88,111,103,99,51,103,103,90,72,74,118,73,69,57,52,99,88,90,122,89,51,73,103,100,109,116,52,99,87,86,114,99,87,56,117,67,110,74,110,97,71,53,52,99,50,82,109,101,88,78,107,100,71,100,111,100,83,69,103,99,87,100,109,73,71,108,122,89,87,115,103,89,51,82,111,100,72,86,112,97,50,85,103,90,71,108,114,73,72,112,114,98,110,82,111,97,71,116,52,73,72,74,52,99,87,120,107,90,50,53,52,99,50,120,112,99,83,66,121,97,88,78,53,101,87,116,111,98,109,115,117,73,71,108,114,101,71,115,103,100,72,85,103,99,121,66,106,101,88,78,117,73,71,78,110,101,67,66,122,101,88,107,103,99,87,100,109,101,67,66,112,99,51,104,108,73,71,116,106,89,50,100,52,90,72,85,54,73,71,90,107,89,51,108,122,98,110,116,111,77,72,90,102,90,71,107,48,90,72,86,102,100,109,107,48,90,70,57,48,88,51,73,48,101,88,108,102,99,110,104,120,98,71,81,119,102,83,52,103,99,87,100,109,73,72,90,48,101,88,107,103,89,51,82,111,90,83,66,107,97,88,78,107,73,72,77,103,101,87,100,107,73,71,100,106,73,72,74,52,99,87,120,107,90,50,53,52,99,50,120,112,99,83,66,48,100,83,66,119,90,110,86,107,73,72,112,109,100,72,108,108,100,71,104,117,73,71,100,106,89,121,66,107,97,88,82,49,73,72,86,110,101,71,81,103,90,50,77,103,101,110,78,49,100,72,73,103,89,109,104,110,100,110,108,114,90,87,53,114,76,67,66,122,97,71,85,103,100,71,81,103,101,71,116,122,101,88,108,120,73,72,82,49,73,71,104,110,90,67,66,49,90,121,66,54,99,50,85,103,99,50,78,107,97,51,103,103,99,51,108,53,76,105,66,112,90,50,120,114,73,72,70,110,90,105,66,114,97,72,66,110,99,87,116,108,73,71,82,112,97,121,66,121,97,88,78,53,101,87,116,111,98,109,115,104]
print(bytes(b))

# b"Uh-oh, looks like we have another block of text, with some sort of special encoding. Can you figure out what this encoding is? (hint: if you look carefully, you'll notice that there only characters present are A-Z, a-z, 0-9, and sometimes / and +. See if you can find an encoding that looks like this one.)\nTmV3IGNoYWxsZW5nZSEgQ2FuIHlvdSBmaWd1cmUgb3V0IHdoYXQncyBnb2luZyBvbiBoZXJlPyBJdCBsb29rcyBsaWtlIHRoZSBsZXR0ZXJzIGFyZSBzaGlmdGVkIGJ5IHNvbWUgY29uc3RhbnQuIChoaW50OiB5b3UgbWlnaHQgd2FudCB0byBzdGFydCBsb29raW5nIHVwIFJvbWFuIHBlb3BsZSkuCmt2YnNxcmQsIGl5ZSdibyBrdnd5Y2QgZHJvYm8hIFh5ZyBweWIgZHJvIHBzeGt2IChreG4gd2tpbG8gZHJvIHJrYm5vY2QuLi4pIHprYmQ6IGsgY2VsY2RzZGVkc3l4IG1zenJvYi4gU3ggZHJvIHB5dnZ5Z3N4cSBkb2hkLCBTJ2ZvIGRrdW94IHdpIHdvY2NrcW8ga3huIGJvenZrbW9uIG9mb2JpIGt2enJrbG9kc20gbXJrYmttZG9iIGdzZHIgayBteWJib2N6eXhub3htbyBkeSBrIG5zcHBvYm94ZCBtcmtia21kb2IgLSB1eHlneCBrYyBrIGNlbGNkc2RlZHN5eCBtc3pyb2IuIE1reCBpeWUgcHN4biBkcm8gcHN4a3YgcHZrcT8gcnN4ZDogR28gdXh5ZyBkcmtkIGRybyBwdmtxIHNjIHF5c3hxIGR5IGxvIHlwIGRybyBweWJ3a2QgZWRwdmtxey4uLn0gLSBncnNtciB3b2t4YyBkcmtkIHNwIGl5ZSBjb28gZHJrZCB6a2Rkb2J4LCBpeWUgdXh5ZyBncmtkIGRybyBteWJib2N6eXhub3htb2MgcHliIGUsIGQsIHAsIHYgaywga3huIHEga2JvLiBJeWUgbWt4IHpieWxrbHZpIGd5YnUgeWVkIGRybyBib3drc3hzeHEgbXJrYmttZG9iYyBsaSBib3p2a21zeHEgZHJvdyBreG4gc3hwb2Jic3hxIG15d3d5eCBneWJuYyBzeCBkcm8gT3hxdnNjciB2a3hxZWtxby4gS3h5ZHJvYiBxYm9rZCB3b2RyeW4gc2MgZHkgZWNvIHBib2Flb3htaSBreGt2aWNzYzogZ28gdXh5ZyBkcmtkICdvJyBjcnlnYyBleiB3eWNkIHlwZG94IHN4IGRybyBrdnpya2xvZCwgY3kgZHJrZCdjIHpieWxrbHZpIGRybyB3eWNkIG15d3d5eCBtcmtia21kb2Igc3ggZHJvIGRvaGQsIHB5dnZ5Z29uIGxpICdkJywga3huIGN5IHl4LiBZeG1vIGl5ZSB1eHlnIGsgcG9nIG1ya2JrbWRvYmMsIGl5ZSBta3ggc3hwb2IgZHJvIGJvY2QgeXAgZHJvIGd5Ym5jIGxrY29uIHl4IG15d3d5eCBneWJuYyBkcmtkIGNyeWcgZXogc3ggZHJvIE94cXZzY3Igdmt4cWVrcW8uCnJnaG54c2RmeXNkdGdodSEgcWdmIGlzYWsgY3RodHVpa2UgZGlrIHprbnRoaGt4IHJ4cWxkZ254c2xpcSByaXN5eWtobmsuIGlreGsgdHUgcyBjeXNuIGNneCBzeXkgcWdmeCBpc3hlIGtjY2d4ZHU6IGZkY3lzbntoMHZfZGk0ZHVfdmk0ZF90X3I0eXlfcnhxbGQwfS4gcWdmIHZ0eXkgY3RoZSBkaXNkIHMgeWdkIGdjIHJ4cWxkZ254c2xpcSB0dSBwZnVkIHpmdHlldGhuIGdjYyBkaXR1IHVneGQgZ2MgenN1dHIgYmhndnlrZW5rLCBzaGUgdGQgeGtzeXlxIHR1IGhnZCB1ZyB6c2Ugc2Nka3ggc3l5LiBpZ2xrIHFnZiBraHBncWtlIGRpayByaXN5eWtobmsh"

3)base64解密

4)维吉尼亚密钥爆破(多表置换)

Vigenere Solver | guballa.de

 

alright, you're almost there! Now for the final (and maybe the hardest...) part: a substitution cipher. In the following text, I've taken my message and replaced every alphabetic character with a correspondence to a different character - known as a substitution cipher. Can you find the final flag? hint: We know that the flag is going to be of the format utflag{...} - which means that if you see that pattern, you know what the correspondences for u, t, f, l a, and g are. You can probably work out the remaining characters by replacing them and inferring common words in the English language. Another great method is to use frequency analysis: we know that 'e' shows up most often in the alphabet, so that's probably the most common character in the text, followed by 't', and so on. Once you know a few characters, you can infer the rest of the words based on common words that show up in the English language.
hwxdnitvoitjwxk! gwv yiqa sjxjkyau tya padjxxan hngbtwdnibyg hyiooaxda. yana jk i soid swn ioo gwvn yinu asswntk: vtsoid{x0l_ty4tk_ly4t_j_h4oo_hngbt0}. gwv ljoo sjxu tyit i owt ws hngbtwdnibyg jk fvkt pvjoujxd wss tyjk kwnt ws pikjh rxwloauda, ixu jt naioog jk xwt kw piu istan ioo. ywba gwv axfwgau tya hyiooaxda!

5)维吉尼亚密钥爆破(单表置换)

Substitution Solver | guballa.de

utflag{n0w_th4ts_wh4t_i_c4ll_crypt0}

 

 

[HGAME 2022 week1]Matryoshka

附件:

查看代码
 ⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨

Caesar:21; Vigenère:hgame

乍一看,是盲文,确实解出了点东西,摩斯密码,再解,发现不太对,%u,数也比较大,

观察一下,发现后面的数比较正常,会不会需要倒转呢,就如同我昨天做的那个rsa题,所有二进制倒转后才是正确的m,

试一下,倒转后,解出的东西很正常了,但还是有点问题,应该是解密网站的问题,摩斯密码很多在线网站多多少少都会出现一点问题

再观察一下,其实盲文密文只有三种形式组成,且都很像摩斯密码的组成(题目标签里有摩斯密码) ⠌  /       ⠨   .        ⠤   -

a = '46,66,42,75,66,45,46,6E,6D,4C,73,36,44,33,73,69,59,74,4C,36,58,32,70,34,69,4E,30,63,64,53,6C,79,6B,6D,39,72,51,4E,39,6F,4D,53,31,6A,6B,73,39,72,4B,32,52,36,6B,4C,38,68,6F,72,30,3D'

观察一下,挺符合十六进制的

a = '46,66,42,75,66,45,46,6E,6D,4C,73,36,44,33,73,69,59,74,4C,36,58,32,70,34,69,4E,30,63,64,53,6C,79,6B,6D,39,72,51,4E,39,6F,4D,53,31,6A,6B,73,39,72,4B,32,52,36,6B,4C,38,68,6F,72,30,3D'
a = a.replace(',','')

print(bytes.fromhex(a))

b = '⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠤⠤⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠤⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠨⠨⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠤⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠨⠌⠨⠨⠨⠤⠤⠌⠤⠤⠨⠨⠤⠤⠌⠤⠤⠤⠨⠨⠌⠤⠨⠨⠨⠨⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠨⠨⠨⠨⠤⠌⠤⠤⠨⠨⠤⠤⠌⠨⠨⠨⠨⠤⠌⠤⠨⠨⠨⠨'
print(b[::-1])

FfBufEFnmLs6D3siYtL6X2p4iN0cdSlykm9rQN9oMS1jks9rK2R6kL8hor0=   , base64 解,不出,

提示给了凯撒 和 维吉尼亚,凯撒的话 = 会移动,所以先维吉尼亚解,再凯撒解,

h0gralmde_{0Wfe_lccr0ympet_0tg0r_atphhey_!w}

不太像,标签还有一个fence解密,出(不知道是fence加密的话,随波逐流一把梭)

hgame{Welc0me_t0_the_w0rld_0f_crypt0graphy!}

 

一个好用的摩斯:

http://www.all-tool.cn/Tools/morse/

 

posted @ 2023-07-12 16:18  Wbuildings  阅读(98)  评论(0编辑  收藏  举报