Encrypt a batch file - Urgent
#1
Scooby Regular
Thread Starter
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes
on
0 Posts
Encrypt a batch file - Urgent
I'm no windows/dos guru.
I have a .bat file scheduled to run daily. This runs ftp, the FTP details are in a .dat file
The bat & dat file details need to be encrypted, or put in an .exe, so the user cannot see what it does and what the ftp login details are.
Anyone know how to do this?
I have a .bat file scheduled to run daily. This runs ftp, the FTP details are in a .dat file
The bat & dat file details need to be encrypted, or put in an .exe, so the user cannot see what it does and what the ftp login details are.
Anyone know how to do this?
#4
Just out of interest, what did you do?
In the past, we've put the account details in an ntfs protected file that only the account running the job can see. Not ideal but gets round the main problem.
In the past, we've put the account details in an ntfs protected file that only the account running the job can see. Not ideal but gets round the main problem.
#5
Scooby Regular
Thread Starter
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes
on
0 Posts
For the FTP command, the -s flag was being used. In that file were the ftp commands, including username password.
So now, create the ftp file on the fly, just:
@echo off
echo username > ftpfile
echo password >> ftpfile
ftp -s:ftpfile theserver
del ftpfile
Then ran a batch file compiler on that .bat, to create an unreadable .exe
All details encrypted.
So now, create the ftp file on the fly, just:
@echo off
echo username > ftpfile
echo password >> ftpfile
ftp -s:ftpfile theserver
del ftpfile
Then ran a batch file compiler on that .bat, to create an unreadable .exe
All details encrypted.
#6
Um, hate to burst your bubble mate, but the whole batch file will be in the exe somewhere, usually at the end, which will take two seconds to see if you drop it into notepad. Unless you're using some uber cmd2exe compiler that encrypts the compiled bat file and decrypts it on the fly?
EXE's dont equal encrypted, there is plenty of human readable stuff stored in exe's.
Dont know if you realise this, just fyi.
J
EXE's dont equal encrypted, there is plenty of human readable stuff stored in exe's.
Dont know if you realise this, just fyi.
J
#7
Scooby Regular
Thread Starter
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes
on
0 Posts
Um, hate to burst your bubble mate, but the whole batch file will be in the exe somewhere, usually at the end, which will take two seconds to see if you drop it into notepad. Unless you're using some uber cmd2exe compiler that encrypts the compiled bat file and decrypts it on the fly?
EXE's dont equal encrypted, there is plenty of human readable stuff stored in exe's.
Dont know if you realise this, just fyi.
J
EXE's dont equal encrypted, there is plenty of human readable stuff stored in exe's.
Dont know if you realise this, just fyi.
J
Was also able to select "Ghost Mode" so not even a command window comes up. As stealthy as Sam Fisher.
Trending Topics
#8
J
Thread
Thread Starter
Forum
Replies
Last Post
bat, batch, compiled, create, credentials, dos, encrypt, encrypted, encrypting, file, ftp, human, notepad, password, unreadable, wwwfacebookhow