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
//Based on https://gist.github.com/materi/f5b95f798b9012e135e3462d52d33d4c | |
Java.perform(function() { | |
var res2 = Java.use('okhttp3.Response$Builder'); | |
var Buffer = Java.use('okio.Buffer'); | |
var peek_size = 1000 | |
var String = Java.use('java.lang.String'); | |
res2.build.implementation = function() { | |
var response = this.build(); | |
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 Get-ProcessPipes{ | |
param( | |
[Parameter(Mandatory=$false)] | |
[string]$CSV, | |
[Parameter(Mandatory=$false)] | |
[switch]$All | |
) | |
Add-Type -TypeDefinition @" | |
using System; |