Skip to content

Instantly share code, notes, and snippets.

View Rottweiler's full-sized avatar

Rottweiler Rottweiler

  • Jabber: rottsploit@xmpp.ru
  • Email: rottsploit@national.shitposting.agency
View GitHub Profile
/// <summary>
/// Start elevated process with UAC bypass.
/// Credits: Rottweiler
/// </summary>
/// <param name="filename"></param>
static void UACStart(string filename)
{
if (Environment.OSVersion.Version.Major >= 6)
{
string filename_safe = Path.GetFullPath(filename);

Laxpasta

Ingredienser:

  • 300g Gravad lax
  • 1 knippe dill
  • 2dl Creme fraiche
  • 1 hönsbuljongtärning
  • ½ rödlök
  • Pasta
@NaxAlpha
NaxAlpha / Library.cs
Created July 25, 2016 07:07
Managed Dll Injection with C#
using System.Diagnostics;
using System.Windows.Forms;
namespace Loader {
public static class Library
{
[DllExport]
static void ShowMessage() {
using(var p = Process.GetCurrentProcess()) {
// Add System.Windows.Forms reference
@NaxAlpha
NaxAlpha / ProcessExtensions.cs
Last active July 24, 2022 05:13
Remote Process Hacking with C# - Part 2
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
public static class ProcessExtensions {
private static IntPtr kernel32;
private static IntPtr loadlibrary;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public delegate void ThreadQueueWorkDelegate<T>(T task);
/// <summary>
/// ThreadQueue
/// Made by BahNahNah
//Xerxes, code assumed to be public domain
//by tH3j3st3r
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <netdb.h>
#include <signal.h>
@cori
cori / gist:672685
Created November 11, 2010 16:05
C# String extension method implementing VB's Like() method (shamelessly cribbed from http://www.vbusers.com/codecsharp/codeget.asp?ThreadID=25)
using System;
using System.Text.RegularExpressions;
namespace ETC.Helpers
{
public static class StringExtensions
{
/// <summary>
/// Indicates whether the regular expression specified in "pattern" could be found in the "text".