-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiip
42 lines (42 loc) · 913 Bytes
/
miip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Mi IP publica, IP local y red local.
# (c) hackingyseguridad.com 2017
Verde='\033[0;32m'
NC='\033[0m'
echo
printf "${Verde}IP publica: ${NC}\n"
wget http://ipinfo.io/ip -qO -
echo
printf "${Verde}IP interfaces: ${NC}\n"
ifconfig
echo
printf "${Verde}Gateway: ${NC}\n"
route
echo
printf "${Verde}ARP MAC Address: ${NC}\n"
arp
echo
printf "${Verde}DNS: ${NC}\n"
cat /etc/resolv.conf | grep 'nameserver' | awk '{print $2}'
echo
printf "${Verde}Sistema: ${NC}\n"
uname -o
echo
printf "${Verde}Arquitectura: ${NC}\n"
uname -m
echo
printf "${Verde}Version Kernel: ${NC}\n"
uname -r
echo
printf "${Verde}Carga promedio: ${NC}\n"
cat /proc/loadavg | cut -f 1-3 -d ' '
echo
printf "${Verde}Tiempo actividad: ${NC}\n"
uptime -p | cut -f 2- -d " "
echo
printf "${Verde}Memoria: ${NC}\n"
echo "\n$(free -m | grep -v +)"
echo
printf "${Verde}Unidades: ${NC}\n"
echo "\n$(df -h| grep 'Filesystem\|^/dev/*')"
echo