Skip to content

Instantly share code, notes, and snippets.

@alureon
alureon / rbxmulti.c
Last active February 12, 2023 16:34
ROBLOX multiple clients
#include <windows.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
HANDLE mutex = CreateMutexA(NULL, TRUE, "ROBLOX_singletonMutex");
puts("Enter 'q' to quit");
while (getchar() != 'q');
// https://www.reddit.com/r/dailyprogrammer/comments/5e4mde/20161121_challenge_293_easy_defusing_the_bomb/
#include <stdio.h>
#include <stdint.h>
#define BITMASK(n) ((1 << (n)) - 1)
uint64_t rules = 0b001010100001010000001010001110111100;
// the rules integer should be as follows
// 001111 011100 010100 000010 100001 010100
/*
cool atbash cipher
by alureon
*/
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
if(argc < 2) {
/*
https://www.reddit.com/r/dailyprogrammer/comments/4oylbo/20160620_challenge_272_easy_whats_in_the_bag/
by alureon
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@alureon
alureon / what.java
Last active August 29, 2015 14:13
weird arraylist stuff that hurts your head
package thingy;
import java.util.ArrayList;
public class Main {
public static int size = 9;
public static String repeatString(String str, int amt) {
for(int i=0;i<amt-1;i++) {
@alureon
alureon / k0msthack.cpp
Last active August 29, 2015 14:07
super old rbx script hack.
// k0mstscript.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <windows.h>
#include <tlhelp32.h>
#include <iostream>
int scriptOffset = 0xCB0929;
int integrityOffset = 0x43589;
BYTE machineCode[] = {0xC7, 0x04, 0x24, 0x00, 0x00, 0x00, 0x00, 0xC7, 0x42, 0xD4, 0x64, 0x6F, 0x66, 0x69, 0xC7, 0x42, 0xD8, 0x6C, 0x65, 0x28, 0x27, 0xC7, 0x42, 0xDC, 0x72, 0x62, 0x78, 0x61, 0xC7, 0x42, 0xE0, 0x73, 0x73, 0x65, 0x74, 0xC7, 0x42, 0xE4, 0x3A, 0x2F, 0x2F, 0x2E, 0xC7, 0x42, 0xE8, 0x2E, 0x2F, 0x2E, 0x2E, 0xC7, 0x42, 0xEC, 0x2F, 0x2E, 0x2E, 0x2F, 0xC7, 0x42, 0xF0, 0x44, 0x73, 0x61, 0x2E, 0xC7, 0x42, 0xF4, 0x74, 0x78, 0x74, 0x27, 0xC7, 0x42, 0xF8, 0x29, 0x20, 0x2D, 0x2D, 0xE9, 0x00, 0x00, 0x00, 0x00};
@alureon
alureon / new.lua
Last active August 29, 2015 14:07
_new
_valid_key=function(object,key)
return object[key],key;
end;
_new=function(class)
return function(props)
if(type(list_base_props)=='table')then
for i,v in next,list_base_props do
if(props[i]==nil)then
props[i]=v;
@alureon
alureon / alapaint.lua
Last active December 29, 2015 14:28
drawing tool by alakazard
local user=game:service'Players'.LocalPlayer;
local cam=workspace.CurrentCamera;
local mouse=user:GetMouse();
local char=user.Character;
local torso=char.Torso;
----------------------------------------------------------------------------------------------------
_G.DRAW3DVERSION=(_G.DRAW3DVERSION or 0);
@alureon
alureon / classes.lua
Created October 9, 2013 16:56
Sinfully's Lua Classes
--> Sinfully's Class System 1.0
_G=_G or {};
function clone(t)
if(type(t)~='table')then return t end;
local res={};
for i,v in pairs(t) do res[clone(i)]=clone(v) end;
setmetatable(res,getmetatable(t));
return res;
end;
function _G.Check(Table,Value) for k,v in pairs(Table) do if(v==Value)then return true end end end;
@alureon
alureon / sqlichecker.py
Last active December 25, 2015 02:39
MySQL Vulnerability Checker
import urllib2, urllib, re, threading
class checkSite(threading.Thread):
def __init__(self, site):
threading.Thread.__init__(self)
self.site = site
def run(self):
try:
g = urllib.urlopen(self.site+"'").read()
m = re.findall('<b>Warning</b>: ', g) #feel free to change to a more defining pattern