Skip to content

Instantly share code, notes, and snippets.

View MzHmO's full-sized avatar
🕊️
pwntesting!!!!

Michael Zhmaylo MzHmO

🕊️
pwntesting!!!!
View GitHub Profile
@MzHmO
MzHmO / system.py
Created June 5, 2024 08:35
no os py
using System;
using System.IO;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
class Program
{
static void Main(string[] args)
{
var engine = Python.CreateEngine();
@MzHmO
MzHmO / enum.py
Created June 5, 2024 08:32
list loaded ironpython modules
using System;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
class Program
{
static void Main(string[] args)
{
var engine = Python.CreateEngine();
@MzHmO
MzHmO / hi.py
Created June 5, 2024 08:31
hi.py
using System;
using System.IO;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
class Program
{
static void Main(string[] args)
{
var engine = Python.CreateEngine();
@MzHmO
MzHmO / code.cpp
Created May 13, 2024 09:50
FrwlBlock.exe
#include <windows.h>
#include <iostream>
#include <fstream>
#include <string>
#include <filesystem>
#include <netfw.h>
#pragma comment(lib, "ole32.lib")
#pragma comment(lib, "oleaut32.lib")
@MzHmO
MzHmO / info.cs
Created March 31, 2024 18:08
Stats
using System;
using System.IO;
using System.Reflection;
using System.Collections.Generic;
using System.Threading.Tasks;
class AssemblyStatistics
{
static void Main()
{
@MzHmO
MzHmO / code.md
Last active February 12, 2024 11:23

Заголовочный:

#include <Windows.h>
#include <algorithm>
#include <iostream>
#include <sddl.h>
#include <aclapi.h>
#include <NTSecAPI.h>
#include <TlHelp32.h>
@MzHmO
MzHmO / proctor.cs
Created January 25, 2024 12:33
proctor
using Accord.Video.FFMPEG;
using AForge.Video;
using AForge.Video.DirectShow;
using System;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
class Program
{
@MzHmO
MzHmO / info.md
Created January 25, 2024 11:44
Keylogger

EXE файл загрузчик:

#include <Windows.h>
#include <windowsx.h>
#include "Header.h"

HMODULE hHookDll = NULL;


BOOL(CALLBACK* SetKeyboardHook)();
@MzHmO
MzHmO / code.cpp
Created January 14, 2024 14:51
image file name spoofing
#include <windows.h>
#include <stdio.h>
#define RTL_MAX_DRIVE_LETTERS 32
#define RTL_USER_PROC_PARAMS_NORMALIZED 0x00000001
#define STATUS_SUCCESS 0
#define NT_SUCCESS(Status) ((NTSTATUS)(Status) == STATUS_SUCCESS)
// https://github.com/RedTeamOperations/Advanced-Process-Injection-Workshop/blob/66a2d3ffe6540c981182a2fb38cc92b0909c4b7f/CWLProcessDoppelganging/CWLProcessDoppelganging/CWLImplant.cpp
// https://github.com/huntandhackett/concealed_code_execution/blob/e688551bac50d8525b4ca7490da3981999cbff52/Injection/SampleDlls/3.NoDependencies/dllmain.c
#include <stdio.h>
#include <stdlib.h>
// Определяем структуру для узла списка
typedef struct Node {
int value;
struct Node* next;
} Node;
// Вспомогательная функция для добавления узла к списку