Skip to content

Instantly share code, notes, and snippets.

View Justasic's full-sized avatar
🏍️
Making computers do things they don't want to

NightShadow Justasic

🏍️
Making computers do things they don't want to
View GitHub Profile
@Justasic
Justasic / FacebookAuto-Poker.py
Created January 1, 2014 06:15
Facebook autopoker (based on the original script from https://github.com/linuz/Facebook-Auto-Poker)
#! /usr/bin/python
#############################################################################
# Facebook Auto-Poker Python V1.5 #
# #
# Written By: Dennis Linuz <dennismald@gmail.com> #
# Auto-pokes anyone on Facebook that has poked you with a Variable Delay #
# and a file to specify which Facebook IDs NOT to poke (blockPokes.txt) #
#############################################################################
FACEBOOK_USERNAME = ""
FACEBOOK_PASSWORD = ""
@Justasic
Justasic / LCDDistanceProject.ino
Created January 2, 2014 09:31
Arduino ultrasonic LED range graph thing (note this appends data, not renews it. It's a bug I might fix later)
/*
HC-SR04 Ping distance sensor:
VCC to arduino 5v
GND to arduino GND
Echo to Arduino pin 7
Trig to Arduino pin 8
This sketch originates from Virtualmix: http://goo.gl/kJ8Gl
Has been modified by Winkle ink here: http://winkleink.blogspot.com.au/2012/05/arduino-hc-sr04-ultrasonic-distance.html
And modified further by ScottC here: http://arduinobasics.blogspot.com/
@Justasic
Justasic / unreal_backdoor.patch
Created January 7, 2014 08:00
The Unreal 3.2.8.1 backdoor exploit from eons ago; Script to execute: http://packetstormsecurity.com/files/90642/Unreal-IRCD-3.2.8.1-Remote-Backdoor.html
diff -urN Unreal3.2.8.1/include/struct.h Unreal3.2.8.1_backdoor/include/struct.h
--- Unreal3.2.8.1/include/struct.h 2009-04-13 13:03:57.000000000 +0200
+++ Unreal3.2.8.1_backdoor/include/struct.h 2009-04-13 13:03:00.000000000 +0200
@@ -430,6 +430,7 @@
#endif
/* Fake lag exception */
+
#define IsNoFakeLag(x) ((x)->flags & FLAGS_NOFAKELAG)
#define SetNoFakeLag(x) ((x)->flags |= FLAGS_NOFAKELAG)
@Justasic
Justasic / ThreadEngine.cpp
Last active October 20, 2017 10:19
A dynamic threading engine I built for a game I never made. You should only interact with the ThreadHandler class. Requires C++14 or C++17.
/*
* Copyright (c) 2013-2017, Justin Crawford <Justin@stacksmash.net>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright notice
* and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
* THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
@Justasic
Justasic / Bconfig
Created January 23, 2014 12:19
This is a gist for my os @alyx and I have named "Venom" which will be a very simplistic virtualization hypervisor operating system designed with the intention of replacing esx systems using the Linux Kernel Virtual Machine and some kind of web interface yet to be determined. This utilizes Buildroot and the linux 3.13 or better kernel.
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2013.11 Configuration
#
BR2_HAVE_DOT_CONFIG=y
#
# Target options
#
BR2_ARCH_IS_64=y
@Justasic
Justasic / EventDispatcher.h
Last active August 29, 2015 13:56
This is an (experimental) event dispatcher which binds functions to specific events. When an event call happens, all functions are called with the same arguments.
#pragma once
#include <functional>
#include <vector>
template<class... arguments__>
class Event
{
protected:
std::vector<std::function<bool(arguments__...)>> callables;
@Justasic
Justasic / BasicKeygenExample.cpp
Created March 19, 2014 01:05
This was just a template keygen I use for solving crackmes on http://crackmes.de/
#include <Windows.h>
#include <malloc.h>
#include <tchar.h>
#include <string>
#include <cstring>
#include <memory.h>
#include <cstdlib>
inline LPWSTR char2wchar(const char *str)
{
@Justasic
Justasic / install.sh
Created March 29, 2014 14:19
This was a simple shell script I made to install EPEL and REMI yum repos. I have installed so many CentOS machines that I get tired of running the same commands over and over so I made this a script. Run `curl https://gist.githubusercontent.com/Justasic/9855295/raw/install.sh | sh` to install.
#!/bin/sh
# Install yum priorities to make sure we aren't going to try and install fedora on centos :s
yum install yum-priorities -y
# Import the GPG keys for package verification signatures
rpm --import https://fedoraproject.org/static/0608B895.txt
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
# Install epel and remi repos
@Justasic
Justasic / fcgitest.c
Created April 19, 2014 06:28
This is a nice example on how to use the FastCGI library in C.
// libfcgi-dev includes
#define NO_FCGI_DEFINES 1
//#include <fcgio.h>
#include <fcgi_config.h>
#include <fcgi_stdio.h>
#include <string.h>
int main()
{
FCGX_Request request;
@Justasic
Justasic / corruptstack.c
Last active August 29, 2015 14:00
A dumb program that corrupts the stack and displays examples of different crashes. Useful to force an application crash without throwing compiler warnings.
#include <stdio.h>
#include <stdlib.h>
#if 0
void __attribute__((naked)) stackcorrupt(void)
{
// Push EAX to the stack (some random value in eax)
__asm__ __volatile__("pushl %eax");
// return, corrupted stack returns to garbage and program crashes.
__asm__ __volatile__("ret");