Μετάβαση στο περιεχόμενο
  • ChatBox

    ChatBox

    Chatroom Rules

    • Το GreekHacking.Gr είναι ένα ελληνικό forum και επιτρέπεται μόνο η χρήση της Ελληνική Γλώσσας (ούτε greeklish).
    • Δεν επιτρέπονται οι βρισιές και γενικά η χρήση χυδαίας γλώσσας.
    • Απαγορεύεται αυστηρά το πορνογραφικό, προσβλητικό και βίαιο περιεχόμενο.
    • Μην χρησιμοποιείτε κεφαλαία γράμματα η σύμβολα.
GreekIPTV

PowerShell - Κωδικοί δικτύου και χρηστών

Recommended Posts

GreekIPTV

Thank me later.
 

# Import the module for accessing stored credentials
Import-Module CredentialManager

# Get the list of saved network credentials
$networkCredentials = Get-StoredCredential -Type Generic

# Create a csv file to store the network credentials
$networkCredentialFile = "NetworkCredentials.csv"

# Create the header for the csv file
"Target,Username,Password" | Out-File $networkCredentialFile

# Loop through the list of saved network credentials and add them to the csv file
foreach($credential in $networkCredentials)
{
    $target = $credential.Target
    $username = $credential.Username
    $password = $credential.GetNetworkCredential().Password
    "$target,$username,$password" | Out-File $networkCredentialFile -Append
}

# Get the list of cached user credentials
$userCredentials = Get-StoredCredential -Type Generic

# Create a csv file to store the user credentials
$userCredentialFile = "UserCredentials.csv"

# Create the header for the csv file
"Username,Password" | Out-File $userCredentialFile

# Loop through the list of cached user credentials and add them to the csv file
foreach($credential in $userCredentials)
{
    $username = $credential.Username
    $password = $credential.GetNetworkCredential().Password
    "$username,$password" | Out-File $userCredentialFile -Append
}

 

Μοιράσου αυτή την δημοσίευση


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Απάντηση στο θέμα...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



ChatBox

ChatBox

Chatroom Rules

  • Το GreekHacking.Gr είναι ένα ελληνικό forum και επιτρέπεται μόνο η χρήση της Ελληνική Γλώσσας (ούτε greeklish).
  • Δεν επιτρέπονται οι βρισιές και γενικά η χρήση χυδαίας γλώσσας.
  • Απαγορεύεται αυστηρά το πορνογραφικό, προσβλητικό και βίαιο περιεχόμενο.
  • Μην χρησιμοποιείτε κεφαλαία γράμματα η σύμβολα.
×
×
  • Create New...