首页 > 其他 > 详细

adchos 文本混淆工具

时间:2017-07-26 19:50:12      阅读:296      评论:0      收藏:0      [点我收藏+]
#-*- 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.、︰﹒.﹐﹑ˋ´﹎﹍﹒,′‵‘~﹏﹌﹋—–―_¯ ̄﹍﹉
def getcontentfromfile(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_list
    else:
        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 文本混淆工具

原文:http://www.cnblogs.com/shaivas/p/7241549.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!