+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Ultimate Member Beeblequix's Avatar
    Join Date
    Nov 2001
    Location
    Ruins: Deus Ex Incarnate
    Posts
    1,402

    auto FTP script -- connecting without password in script

    howdy folks,

    I have an XP system at work that has a batch file to do a simple task --
    * copy files to a network drive
    * ftp files to a linux server

    <do some DOS commands here>

    echo something something > ftp_script.txt
    echo username >> ftp_script.txt
    echo bin >> ftp_script.txt
    echo put xxxx >> ftp_script.txt
    echo bye >> ftp_script.txt

    ftp < ftp_script.txt


    I've noticed that the script *does not* contain the password. It's gotta have a password but I don't understand where it's getting it. I read somewhere where it might be storing it in IE.

    Anyways, anyone have any thoughts on where the password might be hiding?
    Last edited by Beeblequix; 03-06-2009 at 03:43 PM.
    "all animals are equal but some animals are more equal than others".
    George Orwell

  2. #2
    Administrator Steve R Jones's Avatar
    Join Date
    May 1999
    Location
    Dallas, Tx
    Posts
    5,090
    Here's a nice looking site with samples:
    http://www.scriptftp.com/reference.php

    OPENHOST("ftp.myhost.com","myuser","mypassword")
    GETFILE("myfile.zip")
    CLOSEHOST

  3. #3
    Ultimate Member Ol'Tunzafun's Avatar
    Join Date
    Jun 2002
    Location
    Canadian prairie
    Posts
    3,797
    FTP login scripts are sometimes kept in a text file without an extension for added security, so if you see a file like that, just try opening it in notepad. It might be necessary to look for a line in the batch file that calls for it, in case the script is not in the immediate directory.
    Last edited by Ol'Tunzafun; 03-07-2009 at 11:58 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke