有个脚本一直调用一个xml文件,想让他更加灵活。就有了今天的这个需求。
程序使用配置文件生成任务,但是配置文件手动编写太过繁琐,配合调用脚本完成自动化
# -*-coding:utf-8 -*-
# BY WANGCC
import xml.dom.minidom as minidom
class Nsf_currency:
task_type='domain'
os_match = 'yes'
messtypes='5;6;7;8;9;10;11;12;13;14;15;16;17;18;20;21;22;23;24;25;26;27;28'
isguesspwd='no'
port_strategy='user'
port_speed='3'
port_tcp='T'
port_udp='yes'
live='yes'
live_icmp='yes'
live_udp='no'
live_tcp='yes'
live_tcp_ports='21,22,23,25,80,443,445,139,3389,6000'
scan_level='3'
timeout_plugins='40'
timeout_read='5'
enable_unsafe_plugins=&#