Skip to content

Instantly share code, notes, and snippets.

View Stagyrite's full-sized avatar
🎯
Focusing

Maciej Matiaszowski Stagyrite

🎯
Focusing
View GitHub Profile
@Stagyrite
Stagyrite / perl-harbor.c
Last active June 25, 2024 11:13
Perl Harbor: exploit against Perl Kit 1.0
/*
* Perl Harbor: exploit against Perl Kit 1.0
*
* gcc -o perl-harbor perl-harbor.c
* ./perl-harbor &
* Perl-1.0/perl -e 'print "hello, world\n";'
*
* Successful execution ends with printing "owned by stagyrite".
*/
@Stagyrite
Stagyrite / wargames.sh
Last active April 11, 2024 12:34
Would you like to play a game?
#!/bin/sh -
echo -n "SHALL WE PLAY A GAME? "
read x a
x=`/usr/bin/basename $x`
if [ -f /usr/games/$x ] ; then
# Love to. How about $x?
tput clear
exec /usr/games/$x $a
else
@Stagyrite
Stagyrite / SmallRayTracer.java
Last active May 17, 2024 10:53
a raytracer inspired by small-raytracer
/*
* a raytracer inspired by small-raytracer
* https://github.com/FrontierPsychiatrist/small-raytracer/
*/
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
@Stagyrite
Stagyrite / OpenRoguelike.java
Created April 26, 2024 11:43
a level compiler inspired by openroguelike
/*
* a level compiler inspired by openroguelike
* https://GitHub.com/tleguern/openroguelike
*/
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
@Stagyrite
Stagyrite / maze.c
Last active May 9, 2024 15:32
a maze generator inspired by Maze
/*
* a maze generator inspired by Maze
* https://github.com/jaldhar/Maze/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>