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
function Export-MFT { | |
<# | |
.SYNOPSIS | |
Extracts master file table from volume. | |
Version: 0.1 | |
Author : Jesse Davis (@secabstraction) | |
License: BSD 3-Clause | |
.DESCRIPTION |
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
<# | |
.SYNOPSIS | |
This Function is designed to RickRoll a specified target(s). | |
.DESCRIPTION | |
This Function will RickRoll a specified target(s) by doing the following: | |
1. Connect to the specified remote computer(s) | |
2. Use Get-CimInstance to return the logged on user | |
3. Create a file containing: | |
a. The RickRoll expression to be run | |
b. Code to remove teh script after run |
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
license: gpl-3.0 | |
border: no | |
height: 1060 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Node-Link Tree (Radial)</title> | |
<script type="text/javascript" src="https://github.com/d3/d3/raw/2c030290457a4eac0efe34b1c7a61a29997ac3ef/d3.js"></script> | |
<script type="text/javascript" src="https://github.com/d3/d3/raw/2c030290457a4eac0efe34b1c7a61a29997ac3ef/d3.layout.js"></script> | |
<style type="text/css"> | |
circle.node { |
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
Write-Verbose "Display Name: $Display" | |
$TruncatedBaseDisplay = (-join([char[]]$Display | select -first 15)) | |
$FirstUnusedName = ( | |
($TruncatedBaseDisplay.Length)..1 | %{ | |
$ThisLength = $_; | |
$Digits = 15 - $ThisLength; | |
(-join([char[]]$Display | select -first $ThisLength)) | %{ | |
$ThisName = $_ |
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
function Start-ProgressSleep { | |
Param( | |
[Parameter(ParameterSetName='seconds',Mandatory=$true)] | |
[int]$seconds, | |
[Parameter(ParameterSetName='span',ValueFromPipeline,Mandatory=$true)] | |
[timespan]$timespan | |
) | |
<# | |
.SYNOPSIS | |
Function to Start-Sleep with a progress bar |
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
Import-Module Get-ChildItemColor | |
if ( -not $env:ConEmuPID ) { | |
function global:prompt { | |
-join($( | |
if (test-isadmin) {"λ "}),"$($env:username.ToUpper()) ►► ") | |
} | |
} | |
else { | |
$ColorSuffix = 'm' |