Hoy en el feed RSS de KitPloit (http://www.kitploit.com/) vi esta herramienta online que nos ayuda a buscar fallos o problemas en scripts en bash.
Es una manera de tener un aviso que nos marque dónde estamos metiendo la pata sin tener que repasar todo el código de principio a fin, que al final acaba siendo una tarea que puede traer dolor de cabeza.
Está escrito en Haskell, funciona directamente en nuestro navegador entrando en su página:
http://www.shellcheck.net/ (http://www.shellcheck.net/).
Además es Open Source. Podemos bajarnos el código fuente de su página de GitHub (https://github.com/koalaman/shellcheck). (Thanks to koalaman (https://github.com/koalaman)).
Cita de: Lydecker Black(http://4.bp.blogspot.com/-j13fQGJVleM/VV3s0PMNd_I/AAAAAAAAEDs/m6GEeWM5Goc/s1600/shellCheck.png)
ShellCheck is a static analysis and linting tool for sh/bash scripts. It's mainly focused on handling typical beginner and intermediate level syntax errors and pitfalls where the shell just gives a cryptic error message or strange behavior, but it also reports on a few more advanced issues where corner cases can cause delayed failures.
Haskell source code is available on GitHub!
Fuente: http://www.kitploit.com/2015/05/shellcheck-automatically-detects.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+PentestTools+%28PenTest+Tools%29 (http://www.kitploit.com/2015/05/shellcheck-automatically-detects.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+PentestTools+%28PenTest+Tools%29)