Thursday, July 23, 2009

How to transfer a file with a webserver, uuencode, uudecode, script or tee, and telnet.

How to transfer a file with a webserver, uuencode, uudecode, script or
tee, and telnet. (ie. filetransfer without ftp, without ssh, without scp,
without any standandard file transfer program).

Background: the system was deployed to a remote site only to find out
a critical shared library was not installed and ssh would not start.
Router ACLs that only allow outbound 22 and 80 were applied to the
uplinks.


In order to retrieve the file:

1) uuencode the file to be sent.

2) Copy the file to a directory that is accessable via a public webserver.

3) From the host you need to get the file onto, run:

telnet 80 | tee
GET

4) uudecode

5) Install file where it needs to be.

No comments:

Post a Comment

Followers