Skip to content

About

Extract saved passwords from WinSCP configuration files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

WinSCPPasswdExtractor

Extract saved passwords from WinSCP configuration files and Windows registry hives.

Features

  • Decrypt passwords stored in WinSCP INI configuration files
  • Extract credentials from Windows registry (NTUSER.DAT hives)
  • CLI with Picocli — supports --help, --version
  • Pure Java, no native dependencies beyond JNA

Build

mvn clean package

The shaded JAR will be at target/WinSCPPasswdExtractor-1.0.0.jar.

Usage

# Extract from local WinSCP.ini
java -jar target/WinSCPPasswdExtractor-1.0.0.jar -p WinSCP.ini

# Extract from an NTUSER.DAT registry hive
java -jar target/WinSCPPasswdExtractor-1.0.0.jar -r NTUSER.DAT

# Auto-detect from system defaults
java -jar target/WinSCPPasswdExtractor-1.0.0.jar

Options

Flag Description
-p, --path PATH Path to WinSCP config or registry hive
-r, --registry Treat input as a registry hive (NTUSER.DAT)
-V, --version Print version
-h, --help Show help

How it works

  1. Parses WinSCP INI format or Windows registry hive
  2. Locates stored session entries (hostname, username)
  3. Decrypts the encrypted password using WinSCP's XOR-based algorithm
  4. Outputs all recovered credentials

Dependencies

Library Purpose
Picocli Command-line argument parsing
JNA Windows registry access
JUnit 5 Unit tests

About

Extract saved passwords from WinSCP configuration files

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages