divert.py (74dc6beb30dcb5c57134d6b66e14937b42f911c0) | divert.py (a26e895f3d803cc1f4ee1c2b33c61330998808b9) |
---|---|
1#!/usr/bin/env python 2# - 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2020 Alexander V. Chernikov 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28# $FreeBSD$ 29# 30 31 32import socket | 1#!/usr/bin/env python 2# - 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2020 Alexander V. Chernikov 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28# $FreeBSD$ 29# 30 31 32import socket |
33import logging 34logging.getLogger("scapy").setLevel(logging.CRITICAL) |
|
33import scapy.all as sc 34import argparse 35 36 37IPPROTO_DIVERT = 258 38 39 40def parse_args(): --- 43 unchanged lines hidden --- | 35import scapy.all as sc 36import argparse 37 38 39IPPROTO_DIVERT = 258 40 41 42def parse_args(): --- 43 unchanged lines hidden --- |