Пример #1
0
def parse_splitted_files(filenames, ng = False):

    print >> printing.http_stream, printing.header()
    for filename in sorted(filenames):
        for lite_tcp_session in pcap_lite_sessions(pcap_stream([filename],ports)):
            if ng:
                handle_lite_tcp_session_ng(lite_tcp_session)
            else:
                handle_lite_tcp_session(lite_tcp_session)
Пример #2
0
def parse_splitted_files(filenames, ng=False):

    print >> printing.http_stream, printing.header()
    for filename in sorted(filenames):
        for lite_tcp_session in pcap_lite_sessions(
                pcap_stream([filename], ports)):
            if ng:
                handle_lite_tcp_session_ng(lite_tcp_session)
            else:
                handle_lite_tcp_session(lite_tcp_session)
Пример #3
0
def parse_pcap_files(filenames, ng=False):

    print >> printing.http_stream, printing.header()

    for lite_tcp_session in pcap_lite_sessions(pcap_stream(filenames, ports)):

        if ng:
            handle_lite_tcp_session_ng(lite_tcp_session)
        else:
            handle_lite_tcp_session(lite_tcp_session)
Пример #4
0
def parse_pcap_files(filenames, ng = False):

    print >> printing.http_stream, printing.header()

    for lite_tcp_session in pcap_lite_sessions(pcap_stream(filenames,ports)):
        
        if ng:
            handle_lite_tcp_session_ng(lite_tcp_session)
        else:
            handle_lite_tcp_session(lite_tcp_session)