Wednesday, April 21, 2010

Sunday, April 18, 2010

Image conversions / JPG to PDF and TIFF to PDF

With ImageMagick use command
$ convert img1.jpg img2.jpg img3.jpg all_images.pdf

With libtiff-tools create multipage tiff and than convert to pdf
$ tiffcp 1.tif 2.tif ... N.tif multi.tif
$ tiff2pdf -o out.pdf multi.tif

Saturday, April 10, 2010

looping through files with spaces in the filenames in bash

I sometimes have to transfer files with spaces in the names, I like using a for loop, but the usual way doesn’t work. Usual way:

for file in `find . -type f|grep .ext$`
do
/do/something/to $file
done
To get around this I use a while loop with a read instead. Using the read will read to the end of the line, enclosing within quotes escapes the spaces. Unusual way:
find . -type f|grep .ext$ |while read file
do
/do/something/to "$file"
done

source: http://ramblings.narrabilis.com/wp/looping-through-files-with-spaces-in-the-names-in-bash/

Wednesday, April 07, 2010

Vulnerabilidad Sockstress del protocolo TCP

Muy interesante la vulnerabilidad, y también la historia de cómo se desarrollaron los acontecimientos.

http://www.kriptopolis.org/sockstress


el documento pdf original en castellano aquí:
http://gabriel.verdejo.alvarez.googlepages.com/ARTICULOS-Lavulnerabilidaddelprotoco.pdf

En la pagina de Wikipedia que habla de la vulnerabilidad informa que puede ser mitigada utilizando iptables mediante connection tracking and rate limiting.

Esta vulnerabilidad en la pila TCP/IP no tiene solución hasta el momento, todos los sistemas operativos están afectados, podríamos decir que es una vulnerabilidad del protocolo, siempre y cuando éstos tengan algún tipo de servicio que establezca conexiones tcp a la escucha.

No me gustaría dar ideas, pero por la misma regla de tres incluso los servidores dns podrían estar afectados, aquellos cuya respuesta se realizara via tcp y no udp como suele ser lo habitual.

 

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.