šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/danieljoos/winvault

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/danieljoos/winvault

v0.0.0-20170913065454-1086707940ab
Source
Go
Version published
Created
Source

winvault

Package winvault provides primitives for accessing the undocumented Windows Vault API.

GoDoc

Installation

go get github.com/danieljoos/winvault

Usage

List Web Credentials

The following example prints the credentials stored by Internet Explorer:

package main

import (
	"fmt"

	"github.com/danieljoos/winvault"
)

func main() {
	vault, err := winvault.OpenWebCredentials()
	if err != nil {
		panic(err)
	}
	defer vault.Close()

	items, err := vault.Items()
	if err != nil {
		panic(err)
	}
	for _, item := range items {
		fmt.Println("---")
		fmt.Println("Application:", item.Name)
		fmt.Println("Resource:", item.Resource.AsString())
		fmt.Println("Username:", item.Identity.AsString())
		fmt.Println("Password:", item.Authenticator.AsString())
	}
}

FAQs

Package last updated on 13 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts