Re: how to encrypt password stored in ftp script



On Jan 12, 3:10 am, Woland99 <wolan...@xxxxxxxxx> wrote:
Howdy - I want my script to make connection to FTP server and get some
files. I need that script to run everyday automatically on machine
that many people
have access to - but I do not want them to know the username or
password for that
FTP server. Is there a way to save encrypted password with the script
but prevent
people form modifying script to access the FTP server for different
purposes?

Hiding your username and password in this circumstance is impossible
-- the remote server needs both the username and password in order to
authenticate the connection, and any automated solution will have to
include this in a form that can be read by the remote server.

My solution is to 'hide' the username and password in a separate
configuration file that only the script can open and read, but of
course if it's in any kind of file it can be hacked.

If you have access to the remote server, you could write a script to
push your data from the server to your local machine, that is, FTP
into your machine from the remote server.

You can also enable accounting on the remote machine to log FTP
sessions so as to detect unauthorized access. This may or may not meet
your needs.

The bottom line is that if you really need to secure your username and
password, don't store them in any file on your machine. Manually
FTPing to the remote server is the price you pay for security.

CC
.



Relevant Pages

  • Re: [Full-disclosure] SSH brute force blocking tool
    ... And just what on God's earth does "SOMEONE LOGGING IN WITH USERNAME SET ... TO A VALID PASSWORD ENTRY" have to do with this script. ... the classic attack is the symlink attack. ...
    (Full-Disclosure)
  • PHP Access Script (free guide)
    ... he keys in his username and password ... in this case, if John Davis correctly log in, the script ... kick out the user. ... Browser agent to act as an invisible session ID. ...
    (alt.php)
  • Running a script in Windows2000 Server
    ... I am running Windows 2000 server from which this scrip t needs to be run. ... batch file I write a shuttdown.exe file I am recieving a (Loading script ... dim conn, rs, strsql, username, dbline, flag, errdesc ...
    (microsoft.public.windows.server.scripting)
  • Re: WSH Error when running script
    ... I am sorry let me explain further what I am wanting is a more dynamic script ... based only on their username. ... On Error GoTo 0 ... ' Temporarily suspend normal error handling. ...
    (microsoft.public.windows.server.scripting)
  • objFile.Copy making folder read only?
    ... I finally got this script working but now I am getting a 'Permission Denied" ... on the folder Im copying images to after I run it once. ... propted for one username after there are no more pictures. ... Dim objFile ...
    (microsoft.public.scripting.vbscript)