Seguridad Wireless - Wifi
Suite Seguridad Wireless => Colaboracion y desarrollo de nuestras lives => Mensaje iniciado por: USUARIONUEVO en 13-09-2015, 20:19 (Domingo)
-
anoche me aburria un poco y escribi esta aberracion ... 8)
#!/bin/bash
# Colores
CIERRE=${CIERRE:-"[0m"}
ROJO=${ROJO:-"[1;31m"}
VERDE=${VERDE:-"[1;32m"}
CYAN=${CYAN:-"[1;36m"}
AMARILLO=${AMARILLO:-"[1;33m"}
BLANCO=${BLANCO:-"[1;37m"}
ROSA=${ROSA:-"[1;35m"}
# Variables globales genericas
MEMORIA_TOTAL=`free -m |awk '/^Mem:/{print $2}'`
MEMORIA_USO=`free -m |awk '/^Mem:/{print $3}'`
MEORIA_LIBRE=`free -m |awk '/^Mem:/{print $4}'`
KERNEL_VERSION=`uname -r`
PROCESADOR=`uname -p`
GRAFICA=`lspci | grep -i vga | cut -d ' ' -f5`
ESCRITORIO=`echo $XDG_CURRENT_DESKTOP`
# Determinar Sistema
if [ -f /etc/wifislax-version ]; then
SISTEMA=`cat /etc/wifislax-version`
elif [ -f /etc/awireless-version ]; then
SISTEMA=`cat /etc/awireless-version`
else
SISTEMA=`uname -n`
fi
# Determinar Escritorio
if [ $ESCRITORIO = KDE ]; then
KDE_VERSION=`kde-open -v | grep : | tail -2 | cut -d ' ' -f6 | head -1`
DESKTOP="KDE $KDE_VERSION"
elif [ $ESCRITORIO = XFCE ]; then
XFCE_VERSION=`xfce4-about -V | head -1 | cut -d ' ' -f4 | sed 's/)//g'`
DESKTOP="XFCE $XFCE_VERSION"
else
DESKTOP="Desconocido"
fi
# Determinamos si es live o hdd
if [ -d /mnt/live/memory/changes ]; then
MODO="Sistema Live"
else
MODO="Sistema En HDD"
fi
# Presentamos los datos
clear
echo
echo "$BLANCO [$VERDE*$BLANCO]$ROSA Informacion Del Sistema"
echo
echo "$BLANCO [$VERDE*$BLANCO] Sistema: $AMARILLO $SISTEMA"
echo "$BLANCO [$VERDE*$BLANCO] Kernel: $AMARILLO $KERNEL_VERSION"
echo "$BLANCO [$VERDE*$BLANCO] Modo De Uso: $AMARILLO $MODO"
echo "$BLANCO [$VERDE*$BLANCO] Procesador: $AMARILLO $PROCESADOR"
echo "$BLANCO [$VERDE*$BLANCO] Grafica: $AMARILLO $GRAFICA"
echo "$BLANCO [$VERDE*$BLANCO] Escritorio: $AMARILLO $DESKTOP"
echo "$BLANCO [$VERDE*$BLANCO] Memoria Total: $AMARILLO $MEMORIA_TOTAL"
echo "$BLANCO [$VERDE*$BLANCO] Memoria En Uso: $AMARILLO $MEMORIA_USO"
echo "$BLANCO [$VERDE*$BLANCO] Tarjetas de red: $CYAN Interface Mac Address Driver"
echo $CIERRE
if [ -d /sys/class/net/eth0/ ]; then
MAC_ETHERNET=`cat /sys/class/net/eth0/address | tr [:lower:] [:upper:]`
echo " eth0 $MAC_ETHERNET"
fi
if [ -d /sys/class/net/eth1/ ]; then
MAC_ETHERNET=`cat /sys/class/net/eth1/address | tr [:lower:] [:upper:]`
echo " eth1 $MAC_ETHERNET"
fi
for x in `cd /sys/class/net ;ls` ; do
if [ -d /sys/class/net/$x/wireless ]; then
DRIVER=`cat /sys/class/net/$x/device/uevent | grep DRIVER | cut -d '=' -f2`
MAC=`cat /sys/class/net/$x/phy80211/macaddress | tr [:lower:] [:upper:]`
echo " $x $MAC $DRIVER"
fi
done
echo $CIERRE
-
Recordar esto puede venir bien...
https://foro.seguridadwireless.net/colaboracion-y-desarrollo-de-nuestras-lives/idea-para-el-fondo-de-pantalla/ (https://foro.seguridadwireless.net/colaboracion-y-desarrollo-de-nuestras-lives/idea-para-el-fondo-de-pantalla/)
Salu2
-
gracias por la chorrada pero para mi no lo es ;D
(http://s9.postimg.org/qjenazydb/instant_nea1.png)
chorras de estas las quieras :D
-
corria el año 2006, habia un novatillo, que empezaba con el linux, y un gran maestro del linux, de aquel sitio
recuerdo su frase, H no hay que menosvalorar nunca el poder de un script, las cosas bonitas y practicas que se pueden hacer con ellas.
Esta captura y script, va directo a la web de wifislax xd
-
Lo sencillo, si útil, dos veces bueno. :)
¡Pa la saca!
-
Yo me apunto a estas chorradas como decis me molann ;D