adchos 文本混淆工具
阿新 • • 發佈:2017-07-26
main name fault utf reload line its rom 無限制
#-*- coding:utf-8 -*- import jieba import random import codecs import sys import string import chardet #chos_symbol_header = u‘???????????????????????‘ chos_symbol_tailer = u‘★☆??????♀????????‘ chos_symbol_midle = u‘.、︰﹒.﹐﹑ˋ´﹎﹍﹒,′‵‘~﹏﹌﹋—–―_¯ ̄﹍﹉‘ defgetcontentfromfile(in_filename): try: f = open(in_filename,‘r‘) l = f.readlines() return l except: print ‘ERROR WHILE OPENING ‘ + in_filename def splitstring(in_ad): if ‘‘ != in_ad: seg_list = jieba.cut(in_ad) return seg_listelse: return ‘‘ if __name__ == ‘__main__‘: reload(sys) sys.setdefaultencoding("utf-8") if 2 != len(sys.argv): content = getcontentfromfile(‘ad.txt‘) else: content = getcontentfromfile(sys.argv[1]) output = codecs.open(‘output.txt‘,‘w+‘,‘utf-8‘) for item in content: buf = u‘‘ words = splitstring(item.strip()) for word in words: buf = buf + word + ‘‘.join(random.sample(chos_symbol_midle,1)).encode(‘utf-8‘) h = ‘‘.join(random.sample(chos_symbol_tailer,1)) t = ‘‘.join(random.sample(chos_symbol_tailer,1)) output.write(h.encode(‘utf-8‘) + buf.encode(‘utf-8‘) + t.encode(‘utf-8‘) +‘\r\n‘.encode(‘utf-8‘)) output.close()
使用方法簡介如下:
生成文本文件: 1:每條內容為一行 存成文本文件 2:每行的長度無限制 3:每行內容獨立,可以相同也可以不同
軟件在 讀取你提供的文本文件混淆添加隨機符號後,生成新的output.txt文件 混淆後的結果存在output.txt 文件中
將文本文件用鼠標拖動到Adchos.exe 圖標上,即可自動生成output.txt
也可以將文本文件 命名為ad.txt 放到與Adchos.exe 相同的目錄下,雙擊Adchos.exe 即可自動生成output.txt
adchos 文本混淆工具