Skip to content

Instantly share code, notes, and snippets.

View reb311ion's full-sized avatar
🚀

Magdy Moustafa reb311ion

🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am reb311ion on github.
  • I am reb311ion (https://keybase.io/reb311ion) on keybase.
  • I have a public key ASBArrJuAMJiwEUze3K1tk44uZqTMtDYzo25-Ol_RXS_-Ao

To claim this, I am signing this object:

@reb311ion
reb311ion / adopter.cpp
Last active September 1, 2024 02:59
PoC for parent process ID spoofing (PPID).
#include <tchar.h>
#include <windows.h>
#include <iostream>
#include <string>
BOOL AdjustCurrentProcessToken(void)
{
HANDLE hToken;
TOKEN_PRIVILEGES sTP;
@reb311ion
reb311ion / tinycc.cs
Created March 8, 2020 22:58
Tiny.cc client
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
namespace Tinycc
{
class Program
{
@reb311ion
reb311ion / Transfersh.cs
Created March 8, 2020 22:56
Transfer.sh client
using System;
using System.IO;
using System.Net;
using System.Text;
namespace Transfersh
{
class Program
{
static int Main(string[] args)
{
@reb311ion
reb311ion / c02.cs
Last active March 10, 2020 08:31
A proof on concept (POC) on how URL Shorteners can be abused for command and control (C2).
/*
Disclaimer
I'm not responsible for any actions, and or damages, caused by
this code. You bear the full responsibility of your actions and
acknowledge that this code was created for demonstration purposes
only and its main purpose is NOT to be used maliciously, or on any
system that you do not own, or have the right to use.
*/
using System;
@reb311ion
reb311ion / get-models.py
Created March 2, 2020 12:42
A Z3Py example on getting all possible models and adjusting results.
from z3 import *
import binascii
zs = Solver()
findInputLen = 19
findInput = [BitVec("findInput[%d]" % i,8)for i in range(0,findInputLen)]
SumInt = BitVec("SumInt",32)
forbiddenCharsList = "|}{\\/\"\'!@#%^&*()=+- ,;~><`:.[]"