본문 바로가기
Write Up/CTF

HackCTF - DNA

by wlgpdnjs 2019. 7. 29.

 

import string 
string1 = ['A', 'C','G','T'] 
table2 = string.printable[10:62]+'1234567890' 
table = [] 
enc = ["GTC", "ATA", "ATG", "CCG", "GGA", "CTT", "GGT", "ACA", "TTC", "CAG", "AAA", "AAA", "ATT", "GGC", "TAT", "TCT"] 
for s1 in string1: 
	for s2 in string1:
    	for s3 in string1: 
        	table.append(s1+s2+s3) 
            
 for i in enc: 
 	print(table2[table.index(i)],end='') 

 

rot14

'Write Up > CTF' 카테고리의 다른 글

welcome to droid  (0) 2018.02.05
Wandere bits write up  (0) 2018.01.29
[Secuinside2017]snake  (0) 2018.01.14
[CTF]encrypt  (0) 2018.01.14
[CODEGATE2017]HelloProtector  (0) 2018.01.07