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
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
Write-Host "-------------------------------------------------" | |
Write-Host "--------------Take Ownership Script--------------" | |
Write-Host "-------------------------------------------------" | |
Write-Host "This script will take ownership of the specified" | |
Write-Host "directory and all subfolders, with the specified" | |
Write-Host "user account, it will also apply full control" | |
Write-Host "permissions to all files." | |
Write-Host "" |
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
img[src*="/icon/name=icons"], #map-renderer-container div[role="group"] div{ | |
width: 50px!important; | |
height: 50px!important; | |
} |
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
# Setup redirection | |
$StartInfo = New-Object System.Diagnostics.ProcessStartInfo -Property @{ | |
FileName = "$env:SystemRoot\System32\ping.exe" | |
Arguments = "127.0.0.1" | |
UseShellExecute = $false | |
RedirectStandardOutput = $true #If true redirects standard output from the application | |
RedirectStandardError = $true #If true redirects error output from the application | |
CreateNoWindow = $true #Should the process create its own window? Or should it be hidden? | |
} |
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
//Build the request | |
let req = { | |
method: "GET", | |
uri: "https://www.google.com.au", | |
port: 443, | |
resolveWithFullResponse: true | |
}; | |
//Make the request | |
let resp = await rp(req); |
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
rp('http://www.google.com') | |
.then(function (htmlString) { | |
// Process html... | |
}) | |
.catch(function (err) { | |
// Crawling failed... | |
}); |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome] | |
"ForceEphemeralProfiles"=dword:00000001 | |
"SavingBrowserHistoryDisabled"=dword:00000001 | |
"SyncDisabled"=dword:00000001 | |
"PasswordManagerEnabled"=dword:00000000 | |
"SigninAllowed"=dword:00000000 | |
"HideWebStoreIcon"=dword:00000001 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent] | |
"Compatible"="compatible" | |
"Version"="Windows NT 6.2" | |
"Platform"="MSIE 10.0" | |
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION] | |
"KeePass.exe"=dword:00002af8 |