-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiip2
50 lines (47 loc) · 1.16 KB
/
miip2
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
43
44
45
46
47
48
49
50
#!/bin/bash
cat << "INFO"
_ _ ___
(_|_) |__ \
_ __ ___ _ _ _ __ ) |
| '_ ` _ \| | | '_ \ / /
| | | | | | | | |_) / /_
|_| |_| |_|_|_| .__/____|
| |
|_| hackingyseguridad.com
INFO
echo
echo "Sistema: " $(uname -o)
echo
echo "Version: " $(cat /etc/os-release | grep ^VERSION= | cut -f2 -d\")
echo
echo "Distribucion: " $(cat /etc/os-release | grep ^NAME= | cut -f2 -d\")
echo
echo "Architectura: " $(uname -m)
echo
echo "Version Kernel: " $(uname -r)
echo
echo "Carga promedio: $(cat /proc/loadavg | cut -f 1-3 -d ' ')"
echo
echo "Tiempo actividad: " $(uptime -p | cut -f 2- -d " ")
echo
echo "Hostname: " $HOSTNAME
echo
echo "IP interna: " $(hostname -I)
echo
echo "MAC Address " $(arp -n )
echo
echo "Gateway: " $(ip route show 0.0.0.0/0)
echo
echo "Mascara: " $(ifconfig |grep netmask)
echo
echo "IP publica: " $(wget http://ipinfo.io/ip -qO -)
echo
echo "DNS: " $(cat /etc/resolv.conf | grep 'nameserver' | awk '{print $2}')
echo
echo "Usuarios logueados:\n$(who)"
echo
echo "Usuario actual: " $(whoami)
echo
echo "Memoria usada: \n$(free -m | grep -v +)"
echo
echo "Discos: \n$(df -h| grep 'Filesystem\|^/dev/*')"