diff --git a/Introduccion-hacking-hack4u/README.md b/Introduccion-hacking-hack4u/README.md new file mode 100644 index 0000000..96e7c46 --- /dev/null +++ b/Introduccion-hacking-hack4u/README.md @@ -0,0 +1 @@ +# Curso de Introducción al hacking - hack4u diff --git a/Introduccion-hacking-hack4u/example.nse b/Introduccion-hacking-hack4u/example.nse new file mode 100644 index 0000000..35425fc --- /dev/null +++ b/Introduccion-hacking-hack4u/example.nse @@ -0,0 +1,16 @@ +-- HEAD -- +description = [[ +Script de ejemplo que enumera y reporta puertos abiertos por TCP. +]] + +-- RULE -- + +portrule = function(host, port) + return port.protocol == "tcp" and port.state == "open" +end + +-- ACTION -- + +action = function(host, port) + return ("Puerto %d abierto"):format(port.number) +end diff --git a/README.md b/README.md index db9d0ab..ff19fdb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # infosec -Aquí añado los apuntes de los cursos de seguridad informática. \ No newline at end of file +Aquí añado los apuntes de los cursos de seguridad informática. + + +- [Curso de "Introducción al hacking" de hack4u](./Introduccion-hacking-hack4u/README.md) +