1.7 KiB
1.7 KiB
WinSCP Password Decryptor
This is a simple API that uses Node.js and Express to decrypt passwords stored in a WinSCP.ini file. The API reads the file, extracts the session details, decrypts the passwords and returns the decrypted information.
How It Works
Dependencies
The script uses the following Node.js modules:
express: For creating the web server.fs: For reading theWinSCP.inifile.
Encryption and Decryption
The script includes a custom encryption and decryption mechanism implemented in the WinSCP class. This class has two primary methods:
encrypt: Encrypts a password.decrypt: Decrypts an encrypted password.
Server Setup
- Decode Endpoint: The
/decodeAllendpoint reads theWinSCP.inifile, processes each session, and decrypts the passwords.
Usage
- Ensure you have Node.js installed on your machine.
- Save the script to a file (e.g.,
app.js). - Place your
WinSCP.inifile in the same directory as the script. - Install Express by running:
npm install express - Run the script:
node app.js - Open your browser and navigate to
http://localhost:3000/decodeAllto see the decrypted session information.
Example Output
The /decodeAll endpoint will output a JSON array with the following structure for each session:
[
{
"session": "exampleSession",
"username": "exampleUser",
"hostname": "exampleHost",
"decodedPassword": "examplePassword"
},
]
Disclaimer: The author of this API (UltraLion) disclaims all responsibility for its use by end users. The user is fully responsible for their use of this API, including but not limited to any use that does not comply with applicable laws.