Ein paar änderungen

Vorallen angefangen neovim from scratch zu bauen
This commit is contained in:
templis
2018-07-29 01:50:51 +02:00
parent aa563a61c3
commit c95e3339c2
5 changed files with 66 additions and 3 deletions
+7
View File
@@ -103,6 +103,13 @@ source /usr/share/zsh/plugins/zsh-dircolors-solarized/zsh-dircolors-solarized.zs
sudo /sbin/iptables -A block-traffic-from-openbl -p tcp -s $line -j REJECT --reject-with tcp-reset
done
}
function inventarisierung {
NETZ=$(ip route | awk '/scope link/ {print $1}')
read "KUNDE?Bitte Kundenurl eingeben: "
sudo nmap -v -O -oG ~/cloud.tueit.de/Kunden/$KUNDE/$KUNDE.txt $NETZ
grep "OS:" ~/cloud.tueit.de/Kunden/$KUNDE/$KUNDE.txt | sed 's/Host: //' | sed 's/Ports.*OS://' | sed 's/Seq.*$//' | sed 's/(//' | sed 's/)//'
grep "OS:" ~/cloud.tueit.de/Kunden/$KUNDE/$KUNDE.txt | sed 's/Host: //' | sed 's/Ports.*OS://' | sed 's/Seq.*$//' | sed 's/(//' | sed 's/)//' | awk '{print "\"" $1 "\";\""$2"\";\"" $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9 " " $10 " " $11 " " $12 " " $13 " " $14 "\""}' >~/cloud.tueit.de/Kunden/$KUNDE/$KUNDE.csv
}
# add some PERL Path variables
PATH="$HOME/perl5/bin${PATH+:}${PATH}"; export PATH;