Tool:
#!/usr/bin/perl
#
# IMAP-ftp v0.9b by jfs@gibnet.gi
#
# IMAP has more to offer than just overflows.
#
# Most people consider POP3 and IMAP as the same thing. However, IMAP is
# much more powerful, so you get to subscribe to folders over the filesystem
# and collaborate with other users in the system.
#
# In advance you can't tell an imap folder from a normal file, nor does IMAP
# (or tries to for that matter), so you can subscribe and fetch messages
# from "normal" files, as this is the way IMAP works.
#
# This tool makes accessing files through IMAP easier, just enter HELP
# at the prompt for a list of commands (or scroll down a few lines).
#
# Nothing new here, just a heads up for sysadmins who care about security
# and didn't know :)
#
# And remember, it's not a bug, it's a feature.
#
# For more details, check RFC 2060: "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"
#
# Send any comments/addons to jfs@gibnet.gi
#
#
#IMAP tiene m?s para ofrecer que algunos overflows.
#
#La mayor?a de la gente considera POP3 y IMAP como la misma cosa. Sin embargo,
#IMAP es mucho m?s poderoso, usted puede suscribirse a carpetas sobre el sistema
#de archivos y colaborar con otros usuarios en el sistema.
#
#Usted no puede llamar por adelantado una carpeta IMAP desde un archivo normal,
#ni el IMAP (o intentos para a esa tema), as? que usted puede suscribir y traer
#mensajes de archivos "normales", que es como el IMAP trabaja.
#
#Esta herramienta hace m?s f?cil acceder a archivos atreves del IMAP, incorpora
#una AYUDA con una lista de comandos ya ver?is su sencillez.
#
#Nada nuevo aqu?, simplemente que lo tengan en cuenta los administradores de
#sistemas, que cuiden su seguridad si no lo sab?an :)
#
#Y recuerde, esto no es un bug, es una funci?n.
#
#Para m?s detalles consulten, el RFC 2060: "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1"
#
#Env?e cualquier comentario a jfs@gibnet.gi
use Socket;
use IO::File;
my ($remote,$port, $iaddr, $paddr, $proto, $line);
kill("TERM", $kidpid); # send SIGTERM to child
}
# the else{} block runs only in the child process
else {
# copy standard input to the socket
print STDOUT "iftp> ";
while (defined ($line = <STDIN>)) {