This file contains hidden or 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
//Invoke-WebRequest in Powershell - manually whitelist legit content first: | |
Mozilla/*WindowsPowerShell/* | |
System.Net.WebClient.DownloadFile(): | |
None | |
//Start-BitsTransfer - manually whitelist legit content first: | |
Microsoft BITS/* | |
//certutil.exe - manually whitelist legit content first: |
This file contains hidden or 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
First, make sure you already have git installed on local and remote server. | |
On remote server | |
---------------- | |
$ cd ~/ #if you are not here yet | |
$ mkdir website.git && cd website.git | |
$ git init --bare | |
Initialized empty Git repository in /home/ubuntu/website.git/ | |
$ vi hooks/post-receive # paste the post-receive file here |