Skip to content

Instantly share code, notes, and snippets.

View theKidOfArcrania's full-sized avatar

Henry Wang theKidOfArcrania

View GitHub Profile
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[
@theKidOfArcrania
theKidOfArcrania / problems.txt
Last active September 19, 2017 05:38
Here's a few RE problems I've written.
Here's a few RE problems I've written. They're both written in Java.
------------
RE^2 I
------------
I always wanted to create my own variant of machine language. So here it is, a relatively
simple language. I call it Revamped Evolution of programming Squared, or RE^2 for short.
Here's the interpreter: https://drive.google.com/open?id=0B6pTFbiCkjSOZnB1a1B4Q2s0NUk
(Good luck... it's in Java). And here's my horribly inefficient attempt at programming in RE^2:
filetype plugin indent on
set tabstop=2
set shiftwidth=2
set expandtab
set textwidth=80
set ai
#!/bin/bash -eux
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
; https://tinyurl.com/hello-in-asm
;
; Requires nasmx
; Linux:
; nasm -f elf64 hello.asm && gcc -o hello.o -o hello && ./hello
; Windows: (requires mingw)
; nasm -f win32 hello.asm && gcc -o hello.obj -o hello.exe && ./hello.exe
%include "nasmx.inc"
@theKidOfArcrania
theKidOfArcrania / Makefile
Last active September 10, 2018 20:05
Makefile for any CS3345.HON (Data structures) project
JFLAGS=
JCFLAGS=
include config.mk
# Some private variables
MAINCLASS=$(join $(NAMEPREF), $(PROJ))
DATAFILE=$(join $(PROJ), data)
.PHONY: all test clean
%include "nasmx.inc"
ENTRY main
IMPORT fgets
IMPORT printf
IMPORT puts
IMPORT atoi
EXTERN stdin
%include "nasmx.inc"
ENTRY main
IMPORT fgets
IMPORT printf
IMPORT puts
IMPORT atoi
EXTERN stdin
; Welcome to CSAW! And, presumably, welcome to reverse engineering.
; This challenge is for N3WbS ONLY, so if you know what you're doing, then put one of your freshmen on this challenge..if you don't have any freshmen, then you need to recruit harder - for now just go steal one. Come back when you're ready with some fresh blood, or go work on some harder challenges!
; Rule # ONE :
; Since this problem is designed to introduce newbies to reverse engineering, I've designed this source document such that you can hopefully read it straight down and come to a reasonable understanding of this nonsense...
; Reverse engineering is the dissection and understanding of SYSTEMS, not of CODE.. As such, you won't need to read and understand every single line so long as you can understand what is general occurring and build a working intuition of what the system is doing.
; For example, if you see a call to `print("input: ")` then a call to `password = inputPassword()`, I would sincerely hope that you could deduce
TERMINAL_INPUT = 0
TERMINAL_OUTPUT = 1
DOOR_CONTROL = 2
main:
.correct_pin = 0
.main_loop:
call ask_and_verify_code
test al, al