コード例 #1
0
ファイル: config.py プロジェクト: jonmtoz/ooni-probe
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
ファイル: config.py プロジェクト: Shadiesna/ooni-probe
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
ファイル: config.py プロジェクト: Shadiesna/ooni-probe
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)