From 4050f0b80ab6f90e94c04bee4ff031de6e8af896 Mon Sep 17 00:00:00 2001 From: test2 Date: Thu, 17 Oct 2019 01:05:08 +0300 Subject: [PATCH] nmap --- ex-1_iptables.adoc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ex-1_iptables.adoc b/ex-1_iptables.adoc index 903662a..e5b4f0f 100644 --- a/ex-1_iptables.adoc +++ b/ex-1_iptables.adoc @@ -161,6 +161,13 @@ Because the ports into your computer can cause a security risk, it’s critical == netstat +=== Listing (Almost all) + +[source,bash] +---- +netstat -antlupe +---- + === Listing TCP Ports connections [source,bash] @@ -257,6 +264,10 @@ Displaying Promiscuous mode with -ac switch, netstat print the selected informat [source,bash] ---- ifconfig eth0 promisc + +OR + +ip link set eth0 promisc on ---- === Remove Promiscuous Mode @@ -311,7 +322,7 @@ lo 65536 15232 0 0 0 15232 0 0 0 LRU .Promiscuous Mode [NOTE] ==== -Look under the last column “Flg” for value “P”. If it’s there, it means promiscuous mode is enabled for that network interface + . +Look under the last column “Flg” for value “P”. If it’s there, it means promiscuous mode is enabled for that network interface + B flag is for broadcast + M flag is for multicast + P flag is for promisc mode +