small adjustments
This commit is contained in:
parent
9fbe49ad82
commit
291197f6cf
@ -6,11 +6,10 @@
|
|||||||
# Description: Brings a nic up without an ip address and without arp and
|
# Description: Brings a nic up without an ip address and without arp and
|
||||||
# starts wireshark really passive.
|
# starts wireshark really passive.
|
||||||
# Author: Patrick Neumann (patrick@neumannsland.de)
|
# Author: Patrick Neumann (patrick@neumannsland.de)
|
||||||
# Platform: Kali Linux (tested: 2018.4)
|
# Platform: Kali Linux (tested: 2022.2)
|
||||||
# Version: 1.01
|
# Version: 1.02
|
||||||
# Date: 30.01.2019
|
# Date: 22.06.2022
|
||||||
# Link:
|
# Link: https://vcs.neumannsland.de/casualscripter/shell-scripting/kali/
|
||||||
# https://vcs.neumannsland.de/casualscripter/shell-scripting/src/branch/master/kali/wireshark_with_no_ip
|
|
||||||
# License: GPL3
|
# License: GPL3
|
||||||
# Warranty: This program is distributed WITHOUT ANY WARRANTY
|
# Warranty: This program is distributed WITHOUT ANY WARRANTY
|
||||||
|
|
||||||
@ -31,14 +30,14 @@ systemctl stop NetworkManager.service
|
|||||||
pkill dhclient &> /dev/null
|
pkill dhclient &> /dev/null
|
||||||
ip addr flush dev "${NIC}"
|
ip addr flush dev "${NIC}"
|
||||||
ip route flush dev "${NIC}"
|
ip route flush dev "${NIC}"
|
||||||
echo > /etc/resolv.conf
|
echo -n > /etc/resolv.conf
|
||||||
|
|
||||||
# deactivate ipv6
|
# deactivate ipv6
|
||||||
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
|
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
|
||||||
|
|
||||||
# configure nic without ip address and without arp
|
# configure nic without ip address and without arp
|
||||||
ip addr add 0.0.0.0/32 dev "${NIC}"
|
ip addr add 0.0.0.0/32 dev "${NIC}"
|
||||||
ip link set "${NIC}" arp off up
|
ip link set "${NIC}" arp off promisc on up
|
||||||
|
|
||||||
# start wireshark
|
# start wireshark
|
||||||
wireshark -i "${NIC}"
|
wireshark -i "${NIC}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user