I hereby claim:
- I am jborean93 on github.
- I am jborean93 (https://keybase.io/jborean93) on keybase.
- I have a public key ASBK396SPyaXDgm1YsnDbsIuacm8LKPknZa0C4omPUU8SAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <# | |
| This does not work due to the unsupported CTL_CODE used in DeviceIoControl | |
| DeviceIoControl() get buffer size failed - Incorrect function (Win32 ErrorCode 1 - 0x00000001) | |
| At C:\temp\enumerate_snapshots.ps1:145 char:1 | |
| + Get-ShadowCopy -Path "\\localhost\c$" | |
| + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException | |
| + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ShadowCopy | |
| #> |
| Add-Type -TypeDefinition @' | |
| using System; | |
| using System.Runtime.InteropServices; | |
| namespace ProcessInfo | |
| { | |
| public class NativeMethods | |
| { | |
| [DllImport("User32.dll", SetLastError = true)] | |
| public static extern bool CloseDesktop( |
| Add-Type -TypeDefinition @' | |
| using Microsoft.Win32.SafeHandles; | |
| using System; | |
| using System.IO; | |
| using System.Runtime.ConstrainedExecution; | |
| using System.Runtime.InteropServices; | |
| namespace FileIO | |
| { | |
| public class NativeHelpers |
| # Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| $pinvokeParams = @{ | |
| IgnoreWarnings = $true | |
| WarningAction = 'Ignore' | |
| TypeDefinition = @' | |
| using Microsoft.Win32.SafeHandles; | |
| using System; | |
| using System.Collections; |
| # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Add-Type -Namespace LogonUtil -Name NativeMethods -MemberDefinition @' | |
| [DllImport("Kernel32.dll", SetLastError = true)] | |
| public static extern bool CloseHandle( | |
| IntPtr hObject); | |
| [DllImport("Advapi32.dll", SetLastError = true)] | |
| public static extern bool ImpersonateLoggedOnUser( |
| #!/usr/bin/env python | |
| import json | |
| import operator | |
| import os | |
| def get_raw_test_targets(test_path): | |
| with open(test_path, mode='rb') as fd: | |
| test_info = json.loads(fd.read().decode('utf-8')) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # PYTHON_ARGCOMPLETE_OK | |
| # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| """ | |
| Script that can be used to copy issues and PRs from the Ansible GitHub repo to it's target collection repo. Current | |
| limitations are; |
| # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function Install-Driver { | |
| <# | |
| .SYNOPSIS | |
| Install a driver from an .inf. | |
| .DESCRIPTION | |
| Long description |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # PYTHON_ARGCOMPLETE_OK | |
| # Copyright: (c) 2018, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| """ | |
| Script that can be used to parse a Negotiate token and output a human readable structure. You can pass in an actual | |
| SPNEGO token or just a raw Kerberos or NTLM token, the script should be smart enough to detect the structure of the |