在版本`1.3.2`中,将exp通过文件夹分类的形式整理了出来,不在看起来那么杂乱,后期添加exp也好添加。整理成文件夹很简单,一个正则判断出服务名称然后一个`file_move`命令就搞定了。

Tips
找出文件夹下所有文件并且去除__init__
filter_func = lambda file: (True, False)['__init__' in file or 'pyc' in file] def getExp(): direxp = [] for dirpath, dirnames, filenames in os.walk(paths.w9scan_Plugin_Path): for filename in filenames: direxp.append(os.path.join(dirpath,filename)) return direxp dir_exploit = filter(filter_func,getExp())
os.path.basename获取路径文件名中的文件名
发表评论