This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd %ProgramFiles%\Windows Defender | |
MpCmdRun.exe -removedefinitions -dynamicsignatures | |
MpCmdRun.exe -SignatureUpdate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
SFRP script for Linux vms to install rssh package | |
""" | |
import os | |
import os.path | |
import imp | |
import time | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
sleep 120 | |
cd /tmp | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rssh/rssh_2.3.4-4_amd64.deb | |
dpkg -i rssh_2.3.4-4_amd64.deb | |
set +e | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
drive=/dev/sdc1 | |
if [ $(cat /proc/mounts | grep /dev/sdc1 | wc | awk '{print $1}') == 0 ]; then | |
(echo n; echo p; echo 1; echo ; echo ; echo w) | fdisk /dev/sdc | |
sleep 5 | |
mkfs -t ext4 /dev/sdc1 | |
elif [ $(blkid $drive -p -o value -s TYPE) != 'ext4' ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Disk | ` | |
Where partitionstyle -eq 'raw' | ` | |
Initialize-Disk -PartitionStyle MBR -PassThru | ` | |
New-Partition -UseMaximumSize -DriveLetter Y | ` | |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "datadisk" -Confirm:$false | |
Exit 0; |