예제 #1
0
def oreport_filenames():
    """
    returns the filenames for the pcap file and the yamloo report

    returns
    yamloo_filename, pcap_filename
    """
    base_filename = "%s_"+otime.timestamp()+".%s"
    yamloo_filename = base_filename % ("report", "yamloo")
    pcap_filename = base_filename % ("packets", "pcap")
    return yamloo_filename, pcap_filename
예제 #2
0
def oreport_filenames(file_name):
    """
    returns the filenames for the pcap file and the yamloo report

    returns
    yamloo_filename, pcap_filename
    """
    test_name = '.'.join(file_name.split(".")[:-1])
    base_filename = "%s_%s_"+otime.timestamp()+".%s"
    yamloo_filename = base_filename % (test_name, "report", "yamloo")
    pcap_filename = base_filename % (test_name, "packets", "pcap")
    return yamloo_filename, pcap_filename
예제 #3
0
def oreport_filenames(file_name):
    """
    returns the filenames for the pcap file and the yamloo report

    returns
    yamloo_filename, pcap_filename
    """
    test_name = '.'.join(file_name.split(".")[:-1])
    base_filename = "%s_%s_" + otime.timestamp() + ".%s"
    yamloo_filename = base_filename % (test_name, "report", "yamloo")
    pcap_filename = base_filename % (test_name, "packets", "pcap")
    return yamloo_filename, pcap_filename
예제 #4
0
def generateReportID():
    return otime.timestamp() + '_' + randomStr(20)
예제 #5
0
파일: api.py 프로젝트: Shadiesna/ooni-probe
def generateReportID():
    return otime.timestamp() + '_' + randomStr(20)