[vox-tech] Odd ncftp bug

Bill Kendrick vox-tech@lists.lugod.org
Tue, 16 Sep 2003 11:55:25 -0700


On Tue, Sep 16, 2003 at 11:35:54AM -0700, p@dirac.org wrote:
>
<snipped: my long original question trimmed to save bandwidth>
< see web archived version at:
  http://www.lugod.org/mailinglists/archives/vox-tech/2003-09/msg00082.html >
> 
> 
> sure.  this is off the top of my head:
> 
> 1. http://bugs.debian.org

$ cat /etc/issue.net
Red Hat Linux release 8.0 (Psyche)
Kernel \r on an \m

;^)


> 2. http://www.ncftp.com

Unfortunately, I poked around the changelog for the NcFTP client,
and saw nothing relating to this bug.


> 3. http://google.com
> 4. http://www.google.com/advanced_group_search?hl=en

Hehe... I often find humans with similar problems are quicker than
Google. :)

I did just spend 10 minutes googling for keywords like "ncftp",
"password", "bug", "ftp://user@pass -wget" (lest you get 100 tutorials
on how to use 'wget' with FTP urls :) ), etc.

No luck so far. :^(


> 5. ncftp> debug1
>    ncftp> open (whatever)

I tried that, and didn't get much useful debuggng info. :^)

  $ ncftp
  ncftp> debug
  ncftp> open ftp://user:pass@ftp.server.com

  [server details]
  [welcome message]

  220: ftp.server.com NcFTPd Server (free personal license) ready.
  [welcome message again]

  Connected to ftp.server.com
  Cmd: USER USER
  331: User USER okay, need password.
  Cmd: PASS xxxxxxxx
  530: Login incorrect
  Login incorrect
  Cmd: QUIT
  221: Goodbye
  Could not open host ftp.server.com: username and/or password was not accepted
  for login

  ncftp> _

D'oh :^/


> 6. strace -o LOG ncftpget -R ftp://USER:"PASSWORD"@ftp.server.com

Ah-hah!  Someone, somewhere, is using "%" as an escape character!

Based on the debug attempt above (where I was doing the "open" command
within NcFTP client, and not on the command-line in the Bash shell),
it looks like NcFTP itself is doing this.

I'll have to see if I can get around those "%" characters by
escaping them myself, somehow.

Thanks! :) :)  Good ol' strace. :)


> 7. ltrace -o LOG ncftpget -R ftp://USER:"PASSWORD"@ftp.server.com
> 
> and if you can't resolve it in a few days, use reportbug.  :)

-bash: reportbug: command not found

;^)

-bill!

-- 
bill@newbreedsoftware.com                           Got kids?  Get Tux Paint! 
http://newbreedsoftware.com/bill/       http://newbreedsoftware.com/tuxpaint/