certutil

  • 转自https://3gstudent.github.io/3gstudent.github.io/%E6%B8%97%E9%80%8F%E6%B5%8B%E8%AF%95%E4%B8%AD%E7%9A%84certutil.exe/

  • downloader

    • (1) 保存在当前路径,文件名称同URL
      certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt
    • (2) 保存在当前路径,指定保存文件名称
      certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt file.txt
    • (3) 保存在缓存目录,名称随机
      缓存目录位置: %USERPROFILE%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content
      certutil.exe -urlcache -f https://raw.githubusercontent.com/3gstudent/test/master/version.txt
    • (4) 支持保存二进制文件
      certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll
      注:
      使用downloader默认在缓存目录位置: %USERPROFILE%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content
      清除下载文件副本方法:
      方法1: 直接删除缓存目录对应文件
      如下图
      certutil_第1张图片
      Alt text

      方法2: 命令行:
      certutil.exe -urlcache -split -f https://raw.githubusercontent.com/3gstudent/test/master/msg.dll delete
      补充:
      查看缓存项目:
      certutil.exe -urlcache *

你可能感兴趣的:(certutil)