fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5. // Commande PowerShell pour exporter les mots de passe Chrome
  6. const char* powershell_cmd = "powershell -Command "
  7. "\"$data = Import-Csv -Path (Get-ChildItem -Path \\\"$env:LOCALAPPDATA\\\\Google\\\\Chrome\\\\User Data\\\\*\\\\Login Data\\\" | Select-Object -First 1).FullName; "
  8. "$data | Export-Csv -Path \\\"chrome_passwords.csv\\\" -NoTypeInformation\"";
  9.  
  10. // Exécute la commande
  11. system(powershell_cmd);
  12.  
  13. printf("Export terminé : 'chrome_passwords.csv' généré.\n");
  14. return 0;
  15. }
Success #stdin #stdout #stderr 0.01s 5288KB
stdin
Standard input is empty
stdout
Export terminé : 'chrome_passwords.csv' généré.
stderr
sh: 1: powershell: not found