Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/ | |
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c | |
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit: | |
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1 | |
# New function naming schema: | |
# Verbs: | |
# Get : retrieve full raw data sets | |
# Find : ‘find’ specific data entries in a data set |
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
" Notes to make this all work | |
" --------------------------- | |
" | |
" 1) vim-plug - follow the directions at https://github.com/junegunn/vim-plug | |
" 2) a powerline patched font, I recommend this one https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Meslo/M-DZ/complete | |
" the OTF file will be fine, you don't need all the files in that dir, just choose one | |
" 3) a truecolour capable terminal like iTerm or Terminator ... or remove the | |
" settings $NVIM_TUI_ENABLE_TRUE_COLOR and set termguicolors below | |
" 4) to install all the plugins below once this file is in place run :PlugUpdate |
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 | |
############################################################################## | |
# | |
# Copyright (C) Zenoss, Inc. 2013, all rights reserved. | |
# | |
# This content is made available according to terms specified in | |
# License.zenoss under the directory where your Zenoss product is installed. | |
# | |
############################################################################## |
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
local http = require "http" | |
local shortport = require "shortport" | |
local stdnse = require "stdnse" | |
description = [[ | |
Uses an HTTP PUT request to VMware's SOAP API in order to elicit a server response that contains ESX version information. | |
]] | |
--- | |
--@usage |
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 asyncdispatch | |
import asynctools/asyncdns | |
type | |
DNSQueryResult = ref object | |
name: string | |
error: bool | |
ans: ptr AsyncAddrInfo |
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
#include <ares.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <ctype.h> |
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
/* | |
* SharpPick aka InexorablePoSH | |
* Description: Application to load and run powershell code via the .NET assemblies | |
* License: 3-Clause BSD License. See Veil PowerTools Project | |
* | |
* This application is part of Veil PowerTools, a collection of offensive PowerShell | |
* capabilities. Hope they help! | |
* | |
* This is part of a sub-repo of PowerPick, a toolkit used to run PowerShell code without the use of Powershell.exe | |
*/ |
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
$diskName = 'yourDiskName' | |
$rgName = 'yourResourceGroupName' | |
$storageType = 'StandardSSD_LRS' | |
$disk = Get-AzureRmDisk -DiskName $diskName -ResourceGroupName $rgName | |
# Get parent VM resource | |
$vmResource = Get-AzureRmResource -ResourceId $disk.ManagedBy | |
# Stop and deallocate the VM before changing the storage type |
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
# | |
# A bunch of MSSQL shortcuts | |
# | |
Import-Module Sqlps -DisableNameChecking | |
function Get-Databases { | |
Invoke-Sqlcmd -Query "sp_databases" | |
} |