def test():
    django_setup()
    from scan.api.mudules.scan_v2.prepare.put_default_2cfg import orm_delete, inital_scan_cfgs, inintal_services, inital_scheme, inital_scan_tools
    orm_delete()
    inital_scan_cfgs()
def test_recode():
    django_setup()

    from scan.api.mudules.scan_v2.recode import collect_recodes
    collect_recodes()
def test():
    django_setup()
    from scan.models.http import ServicePort, inital_ports, ports_range
    inital_ports()

    ports_range()
def test_discover():
    django_setup()
    _path = "F:\\workspace\\CSO\\apps\\cso\\datas\\nmap_results\\sV.xml"
    from scan.api.mudules.monitor.nmap_utils import get_needs_datas_from_xmlpath
    get_needs_datas_from_xmlpath("F:\\workspace\\xx-scan\\data\\sV.xml")
Esempio n. 5
0
def test():
    django_setup()
    from scan.api.mudules.scan_v2.upgrade.masscan import msjson2cache
    print(msjson2cache())