Skip to content
if you are Thanos(root), this command could delete half your files randomly
PowerShell Shell
Branch: master
Clone or download
Latest commit 0d0fbb9 Sep 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Invoke-Thanos.ps1 Improve safety. Aug 23, 2018
LICENSE Initial commit Aug 20, 2018
README.md Update README.md May 21, 2019
Story.md Update Story.md Aug 23, 2018
Thanos.sh Fix spelling mistake Aug 12, 2019

README.md

Thanos.sh

This command could delete list half your files randomly.

don't use it at home and other places. this is a real gun, use it wisely...

feel free to post your story on Story.md, waiting.

灭霸脚本

这个命令会随机“删掉”您一半的文件。。

请不要在家里或其他地方使用。这是真家伙,要小心…

你可以在Story.md文件里发布你的故事,期待中…

特别说明

  1. 支持mac系统,但是需要使用到gshuf命令,需要通过brew安装,安装命令如下:
    #安装brew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    #安装gshuf
    brew install coreutils
  1. 此脚本只会列出当前目录一半的文件。并且。。。总之小心点。。。

Invoke-Thanos.ps1

Invokes Thanos to remove each object with probability 1/2. It works with files, registry, environment variables, functions, variables, aliases and certificates.

For help, use Get-Help .\Invoke-Thanos.ps1. Be sure to not actually invoke it!

You can’t perform that action at this time.