This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# corCTF 2021 Helpless solution by c4e (author) | |
# there are many different techniques that can be used to solve Helpless because of | |
# the nature of the challenge (UAF, variety of sizes allowed) | |
# My solution uses a House of Rust smallbin variation and then finishes the exploit off | |
# with a standard __GI__IO_file_jumps fsop triggered with stdout. | |
# feel free to dm me on discord if you want to discuss the solution. c4e#1255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An example to show basic functionality of KaptainWutax's libraries | |
* and common usage patterns. | |
*/ | |
import kaptainwutax.biomeutils.source.OverworldBiomeSource; | |
import kaptainwutax.featureutils.structure.Village; | |
import kaptainwutax.seedutils.mc.ChunkRand; | |
import kaptainwutax.seedutils.mc.MCVersion; | |
import kaptainwutax.seedutils.mc.pos.CPos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//does not work with colors containing alpha | |
@function encodecolor($string) { | |
@if type-of($string) == 'color' { | |
$hex: str-slice(ie-hex-str($string), 4); | |
$string:unquote("#{$hex}"); | |
} | |
$string: '%23' + $string; | |
@return $string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# skeleton from http://kmkeen.com/socketserver/2009-04-03-13-45-57-003.html | |
import socketserver, subprocess, sys | |
from threading import Thread | |
from pprint import pprint | |
import json | |
my_unix_command = ['bc'] |