Tuesday, February 9, 2016

MTFTP my own TFTP client and server

There are many TFTP implementations available in the web so why did I write this script?

Well. It is a very good exercise. It's a simple protocol so it's an affordable project. You have to implement the client side and, why not? the server side.

But there is a deeper reason for this.  It's just a first step. If you check the script's help you will notice you can change the UDP port for the connections. Using a nonstandard port will allow you to use it even if there is another TFTP server running in your computer. You can also hide the server. Or even you can try to bypass a firewall using an open port like DNS or so.

Right.  I'm thinking about security.  

Changing the UDP port will only work for a simple firewall, if a simple ACL (Access Control List) can be considered as a firewall. I do.

A more advanced firewall may do deep protocol inspection so if you try to use port 53 it will not work. But what will happen if there are other nonstandard ports open? Or even there are some standards ports open as port 7 (UDP ECHO)?  

Not concerned? Well, this is just a TFTP and you need to have the script running at both sides of the firewall. On the other hand many times the information to be transferred does not need to be long and many servers today can run a python script which is no more than a text file.

The next step is moving to use ICMP instead UDP. I leave this for the next release if I ever publish it. 

Does your firewall allow 'ping'?  
Have fun, stay legal.

Sunday, December 27, 2015

Capturando tráfico / sniffing traffic DUMP.PY

El principal objetivo de escribir mis propios scripts es poder recibir y enviar tráfico desde un ordenador.  El primer paso es acceder al tráfico recibido en mi equipo.

DUMP.PY se centra en la recepción de tráfico y su análisis. Este script es un sniffer, una versión sencilla del popular 'tcpdump'.

De momento estoy trabajando en Windows aunque con ligeras modificaciones funciona en Linux (Ubuntu).




Tuesday, December 22, 2015

Dia cero / Zero day

Esto no es mas que un experimento.

Mi interés por el Python viene de la mano de mi interés por el networking y la seguridad de redes.  No soy un programador, soy un experto en redes.

En la red hay multitud de herramientas para diagnóstico de problemas y gestión de redes. Yo quería hacerme las mías. Con Python ha resultado relativamente asequible. Hablo de herramientas sencillas.

He aprendido mucho de las contribuciones de mucha gente. Ahora me gustaría devolver algo de lo recibido.

Tengo intención de ir revisando los scripts que he ido haciendo y ponerlos a disposición de quien le puedan valer, por pura diversión o como ayuda en el trabajo.

Aviso, es la primera vez que escribo un blog así que el resultado es aún incierto.