From 32dac7319af40d3889146ccef2c49071e8d6579a Mon Sep 17 00:00:00 2001 From: adalbertobrant Date: Sun, 2 Oct 2022 17:10:00 -0300 Subject: [PATCH 1/2] adding noipv6.sh cause sometimes you need ipv4 --- noIPv6/README.md | 22 ++++++++++++++++++++++ noIPv6/noipv6.sh | 14 ++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 noIPv6/README.md create mode 100644 noIPv6/noipv6.sh diff --git a/noIPv6/README.md b/noIPv6/README.md new file mode 100644 index 0000000..8c99ab8 --- /dev/null +++ b/noIPv6/README.md @@ -0,0 +1,22 @@ +**No Ip V 6 - ' cause sometimes you just need the good and old IP version 4'** + +NoIpv6 is a script to cancel the use in the network the IP version 6, the change is not permanent. + +**How to install** + +1- first you need to copy the script to /bin directory + +2- give executable rights using sudo chmod +x noIp6.sh + +3- restart the terminal or use source. + +**How to use it** + +1- open terminal ( ctrl + t) + +2- sudo noIpv6.sh + +3- put your admin password + +4- enjoy + diff --git a/noIPv6/noipv6.sh b/noIPv6/noipv6.sh new file mode 100644 index 0000000..dc8da4f --- /dev/null +++ b/noIPv6/noipv6.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "---------------------------------------------------------------------------------------------------" +echo " " +echo " NO Ipv 6 " +echo " " +echo "----------------------------------------------------------------------------------------------------" + +sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 +sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 +sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1 + +echo " No Ipv 6 - sucess " + From db1c82d008054debf7b0eeab99f49e86c96239c3 Mon Sep 17 00:00:00 2001 From: adalbertobrant Date: Sun, 2 Oct 2022 17:23:17 -0300 Subject: [PATCH 2/2] adding sswhois.sh a super tool to check ipv4 connections --- sswhois/README.md | 13 +++++++++++++ sswhois/sswhois.sh | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sswhois/README.md create mode 100644 sswhois/sswhois.sh diff --git a/sswhois/README.md b/sswhois/README.md new file mode 100644 index 0000000..da55360 --- /dev/null +++ b/sswhois/README.md @@ -0,0 +1,13 @@ +**sswhois - the super tool to help you monitor all yours ipv4 conection** + +Join the power of ss plus whois so you could view information about your ipv4 conection + +sswhois.sh create a whois-report.txt file and also show in the screen the results + +**Usage** + +Execute the file sswhois.sh + +**Errors** + +Sometimes you need to give permission to sswhois.sh , just use chmod +x sswhois.sh and make sswhois.sh an executable file \ No newline at end of file diff --git a/sswhois/sswhois.sh b/sswhois/sswhois.sh new file mode 100644 index 0000000..52f3417 --- /dev/null +++ b/sswhois/sswhois.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# https://linuxhint.com/remove_characters_string_bash/ +# https://github.com/emugel/grepip + AR=(`ss -anpt |grep ESTAB | awk '{ print $5 }' | cut -d: -f1 | sort -u`) + +# AR=(`ss -anpt |grep ESTAB | awk '{ print $5 }' | sort -u`) # td -d [ | tr -d ] => resolve os braquetes mas falta : e porta + +for i in ${AR[@]} + do + echo $i + `whois $i >> whois-results.txt` + whois $i + done +