Re: wget question

From: John-Paul Stewart (jpstewart_at_binaryfoundry.ca)
Date: 05/28/04


Date: Fri, 28 May 2004 14:41:49 -0400

Dave Brown wrote:
> I tried to do a "non-anonymous" file transfer using wget, using:
>
> wget ftp://user:passwd@earth/var/www/html/somefile.html
>
> but I couldn't figure out how to convince the ftpd on the other side to
> go "above" the user's home directory. It looks for
> /home/user/var/www/html, which is not what I want. A normal ftp client
> seems to be able to go to other directories, (although there is a chroot
> option in the server which could prevent this).

wget ftp://user:passwd@earth//var/www/html/somefile.html

Note the extra slash. That should work provided the ftp server will
permit you access to /var/www/html.

Just remember that everything after ftp://server/ is a path like any
other Unix path. You asked for var/www/html which it treats as a
relative path (since it doesn't start with /). So start the path with /
to have it treated as an absolute path. Since there's already a / at
the the end of the server name, a second / is needed for the absolute path.



Relevant Pages

  • Re: [Full-disclosure] on xss and its technical merit
    ... In this case 10000 XSS sounds a lot more valuable. ... server running the ftpd daemon) or the data/personal machines of the users ... Google Search Interface is as valuable as remotely exploitable buffer ...
    (Full-Disclosure)
  • Re: FtpWebRequest Passive Mode Problem
    ... are you saying that the server and client are on the same machine? ... > should be a TRANSPARENT proxy if the FtpWebRequest class followed RFC. ... Get an eval copy of Serv-U FTPD ... use IP:" and put a LAN ip in this box. ...
    (microsoft.public.dotnet.framework)
  • Re: [Full-disclosure] on xss and its technical merit
    ... In this case 10000 XSS sounds a lot more valuable. ... server running the ftpd daemon) or the data/personal machines of the users ... Keep in mind that many client side exploits are XSS for the browser, ...
    (Full-Disclosure)
  • Re: FTP Problem
    ... You can change inted as follows, to spawn ftpd in debugging mode: ... Here is an ftp script I use for file transfers. ... job on server A, that fetches a particular file from 5 different servers ... If you wish to confirm the origin or content of this communication, ...
    (AIX-L)
  • RE: Sudden and unexplained reboots
    ... I am posting this message regarding the server I ... After disabling (ftpd) completely from, ... I saw that the kernel panic'ed in process. ... the server is working wonderfully now after disabling ...
    (freebsd-stable)