Skip to content

Instantly share code, notes, and snippets.

View SavSanta's full-sized avatar
😉
No Use Being Food in Mouth of The Beast

Ru Uba SavSanta

😉
No Use Being Food in Mouth of The Beast
  • DCMDVA ;'(
  • 20:54 (UTC -04:00)
View GitHub Profile
@SavSanta
SavSanta / F-Isolation.py
Created January 28, 2024 14:04 — forked from X-C3LL/F-Isolation.py
Small script to transfer files between a VDI and host using OCR & Keyboard emulation
#!/usr/bin/python
#coding: utf-8
# F-Isolation v0.1 - F**k isolated enviroments
# Because we hate that kind of pentests where you start at an isolated citrix where our
# clipboard is useless, we do not have internet access inside the machine and we can not
# map a local resource to upload our tools.
# OCR + Keyboard emulation FTW!
#[
Author: Ward
Example of NtAllocateVirtualMemory, NtReadVirtualMemory, NtFreeVirtualMemory
References:
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntallocatevirtualmemory
]#
import winim/lean
@SavSanta
SavSanta / vkontakte_m3u8_downloader.sh
Created October 29, 2022 19:21 — forked from grwlf/vkontakte_m3u8_downloader.sh
vkontakte_m3u8_downloader.sh
#!/bin/sh
# VKontakte *m3u8 downloader
# Worked at the time of writing
mkdir /tmp/m3u8
set -e -x
cd /tmp/m3u8
rm *
@SavSanta
SavSanta / gist:3c45c385f7d4f7c8a8e24cb3b72fdc4d
Last active August 12, 2022 00:24
amonsec load_scripts cna
# For some reason dude secreted it so im just gonna steal his shit and repurpose it
# Java packages
import aggressor.windows.ScriptManager;
import aggressor.AggressorClient;
import aggressor.Prefs;
import cortana.Cortana;
import java.util.List;
@SavSanta
SavSanta / gist:5e85fc7d9f4ddc181d7921f9612f260d
Created July 31, 2022 02:21
threading using Courrent Future Template
#!/usr/bin/env python3
# Author:jftuga
# shows how to use concurrent.futures threads and print its results
import concurrent.futures, threading, random
def example_func(a1: int,a2: int ,x: int) -> int:
print(f"[{threading.current_thread().name}] {a1} * {a2} / {x}")
@SavSanta
SavSanta / SimpleHTTPServerWithUpload.py
Created February 14, 2022 18:36 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@SavSanta
SavSanta / find-duplicate-files.bash
Created September 5, 2021 19:10 — forked from OndraZizka/find-duplicate-files.bash
Finds duplicate files. An alternative to `fdupes -r -S .`
find -type f -size +3M -print0 | while IFS= read -r -d '' i; do
#echo $i
echo -n '.'
if grep -q "$i" md5-partial.txt; then
echo -n ':'; #-e "\n$i ---- Already counted, skipping.";
continue;
fi
#md5sum "$i" >> md5.txt
MD5=`dd bs=1M count=1 if="$i" status=none | md5sum`
MD5=`echo $MD5 | cut -d' ' -f1`
@SavSanta
SavSanta / CIPolicyParser.ps1
Created August 3, 2021 04:27 — forked from mattifestation/CIPolicyParser.ps1
Functions to recover information from binary Windows Defender Application Control (WDAC) Code Integrity policies.
#https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/select-types-of-rules-to-create
# Ensure System.Security assembly is loaded.
Add-Type -AssemblyName System.Security
function ConvertTo-CIPolicy {
<#
.SYNOPSIS
Converts a binary file that contains a Code Integrity policy into XML format.
@SavSanta
SavSanta / gist:4a27d8a865b2848e84597d4a0abf9576
Created March 22, 2020 15:07
Source option 5 is no longer supported. Use 6 or later.
From Issue @regisd @ https://github.com/jflex-de/jflex/issues/400
"""
I think this means that
You are using JDK9 or later
Your project uses maven-compiler-plugin with an old version which defaults to Java 5.
You have three options to solve this
Downgrade to JDK7 or JDK8 (meh)