将保存登录名和密码的网站的 Chrome cookie 列入白名单的策略和步骤?

将保存登录名和密码的网站的 Chrome cookie 列入白名单的策略和步骤?

将保存登录名和密码的网站的 Chrome cookie 列入白名单的策略和步骤?

当前的:

  • 有很多登录名和密码在 Google Chrome 中保存;在 opera 和 firefox 中保存较少
  • 要处理的 cookie 太多,因此需要一种方法来映射密码和 cookie 列表可以使用以下工具和方法导出:

用于密码的工具:

尝试过的 Cookies 工具:

  • 很长时间没有清除所有 cookie,除非有最终的白名单或将现有 cookie 列入白名单的方法

    • 查看了一些可以进行 Cookie 管理的 Chrome 扩展程序/应用程序,这些扩展程序/应用程序还涉及浏览和管理所有 Cookie

    • 已使用 CCleaner保留”一些饼干,但仍在检查所有 cookie 和标记要保存的内容 - 将其列入白名单 在此处输入图片描述

要保留的 Cookie:

存储在 CCleaner.ini 中,第 30 行字段中要保存的 Cookie,作为由 | 分隔的连接列表。

CookiesToSave=.2shared.com|.4shared.com|*.piriform.com|0.s3.envato.com|120hz.net|123rf.com... ...|youtube.com|youtube.googleapis.com|za.linkedin.com

默认详细视图=1

下一步需要建议:

批判的:

  • 需要使用/映射现有登录密码列表的方法将“现有” Cookie 列入白名单? 保存/保护它们并清除剩余的

奖金:

答案1

我不确定这是否与您的问题有关。

我编写了一个小工具(在 powershell 中),将 csv 文件中的数据应用于模板。csv 中的每条记录都为模板的扩展提供了实际值,模板中的变量被 csv 中的实际值替换。使用适当的模板,您可以获得几乎任何您想要的格式的输出,尽管它存储在文本文件中。

此工具可能不适合您的目的,但只需稍加努力,就可以使用多种不同的语言实现同一工具。


好的,开始吧...这可能是糟糕的 powershell,因为这对我来说只是一个学习练习。但它对我来说还行。默认情况下,输出进入管道,但很容易将输出重定向到文件。如果我添加一个示例 csv 文件和模板,可能会更容易理解。


<#  This function is a table driven template tool. 
    It's a refinement of an earlier attempt.

    It generates output from a template and
    a driver table.  The template file contains plain
    text and embedded variables.  The driver table 
    (in a csv file) has one column for each variable, 
    and one row for each expansion to be generated.

    5/13/2015

#>

function Expand-csv {
   [CmdletBinding()]
   Param(
      [Parameter(Mandatory=$true)]
      [string] $driver,
      [Parameter(Mandatory=$true)]
      [string] $template
   )
   Process
   {
      $OFS = "`r`n"
      $list = Import-Csv $driver
      [string]$pattern = Get-Content $template

      foreach ($item in $list) {
         foreach ($key in $item.psobject.properties) {
            Set-variable -name $key.name -value $key.value
            }
         $ExecutionContext.InvokeCommand.ExpandString($pattern) 
         }
   }
}

相关内容