enlaces:utilidades_de_red
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
enlaces:utilidades_de_red [2011/07/08 13:28] – [Netcat] cayu | enlaces:utilidades_de_red [2018/11/01 16:35] – [Netcat] cayu | ||
---|---|---|---|
Línea 2: | Línea 2: | ||
===== Conectividad ===== | ===== Conectividad ===== | ||
+ | |||
+ | ==== Agregar ruta estatica ==== | ||
+ | |||
+ | < | ||
+ | ip route add 192.168.55.0/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254 dev eth1 | ||
+ | </ | ||
==== Forzar el modo ethernet ==== | ==== Forzar el modo ethernet ==== | ||
Línea 10: | Línea 20: | ||
ethtool -s eth0 speed 100 duplex full autoneg off | ethtool -s eth0 speed 100 duplex full autoneg off | ||
</ | </ | ||
- | |||
==== Conectarse a redes Wi Fi ==== | ==== Conectarse a redes Wi Fi ==== | ||
Primero bajamos el servicio de Network Manager si es que lo tenemos instalado | Primero bajamos el servicio de Network Manager si es que lo tenemos instalado | ||
Línea 343: | Línea 352: | ||
Muestra y busca paquetes. Ngrep se esfuerza por proveer de la mayoría de características comunes del " | Muestra y busca paquetes. Ngrep se esfuerza por proveer de la mayoría de características comunes del " | ||
+ | |||
+ | |||
+ | Usage examples: | ||
+ | |||
+ | < | ||
+ | ngrep '' | ||
+ | |||
+ | ngrep '' | ||
+ | |||
+ | ngrep '' | ||
+ | |||
+ | ngrep '' | ||
+ | |||
+ | ngrep ' | ||
+ | |||
+ | ngrep -iq 'rcpt to|mail from' tcp port 25 (monitor current delivery and print sender and recipients) | ||
+ | |||
+ | ngrep ' | ||
+ | |||
+ | ngrep -q ' | ||
+ | Microsoft operating system?) | ||
+ | |||
+ | ngrep -iq ' | ||
+ | |||
+ | ngrep ' | ||
+ | |||
+ | ngrep ' | ||
+ | |||
+ | ngrep -v '' | ||
+ | |||
+ | ngrep -d le0 '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | Useful flags: | ||
+ | |||
+ | < | ||
+ | -A n (prints out " | ||
+ | |||
+ | -l (pipe the output of ngrep to another program for more processing) | ||
+ | |||
+ | -v (print all lines not matching the expression) | ||
+ | |||
+ | -d (specify the device you want to monitor) | ||
+ | </ | ||
Línea 415: | Línea 469: | ||
- | ==== Netcat ==== | ||
- | |||
- | | ||
- | It is designed to be a reliable " | ||
- | |||
- | It provides access to the following main features: | ||
- | |||
- | * Outbound and inbound connections, | ||
- | * Featured tunneling mode which allows also special tunneling such as UDP to TCP, with the possibility of specifying all network parameters (source port/ | ||
- | * Built-in port-scanning capabilities, | ||
- | * Advanced usage options, such as buffered send-mode (one line every N seconds), and hexdump (to stderr or to a specified file) of trasmitted and received data. | ||
- | * Optional RFC854 telnet codes parser and responder. | ||
- | |||
- | |||
- | The GNU Netcat is distributed freely under the GNU General Public License (GPL). | ||
- | |||
- | <code bash> | ||
- | echo -e "GET / HTTP/ | ||
- | </ | ||
- | |||
- | Para pasar un archivo de un equipo a otros podemos ejecutar | ||
- | |||
- | Desde el servidor | ||
- | < | ||
- | cat backup.iso | nc -l 3333 | ||
- | < | ||
- | Desde el cliente | ||
- | < | ||
- | nc 192.168.0.1 3333 > backup.iso | ||
- | </ | ||
- | Si queremos poner un contador | ||
- | < | ||
- | nc 192.168.0.1 3333 | pv -b > backup.iso | ||
- | </ | ||
- | |||
- | Otro ejemplo | ||
- | |||
- | Desde el servidor | ||
- | < | ||
- | dd if=/ | ||
- | </ | ||
- | Desde el cliente | ||
- | < | ||
- | nc 192.168.0.1 3333 | pv -b > myhdb5partition.img.gz | ||
- | </ | ||
- | |||
- | Referencias : | ||
- | |||
- | http:// | ||
- | |||
- | |||
- | Tutorial con ejemplos prácticos : http:// | ||
==== MSN Dump ==== | ==== MSN Dump ==== |
enlaces/utilidades_de_red.txt · Última modificación: 2019/01/22 15:34 por cayu