Dec 19

A while back when I was first learning AJAX, I decided I wanted to write an interactive PHP/JavaScript shell for executing commands, etc. All the other ones I found either didn't handle directories well, were way too bulky or were backdoored. So, I now present to you JAXED Shell. I haven't extensively tested it, but it should work in the majority of situations.

Enjoy :)
Commands:

home - return to shell's home directory
clear - clear history box
up/down arrow - go through previous commands
right arrow - file name completion

Read the rest of this entry »

Nov 11

I stumbled upon this post which lists the parts of 10 episodes of an interesting documentary, The Day The Universe Changed. I soon realized that I didn't really want to open up 50 windows to watch them all in, so I wrote this. It's rather simplistic, and could certainly be improved, but for all intents and purposes, it works. Simply enter the links to the videos you want to watch, and hit the "Next" button when you're ready to move on to the next video.

Nov 5

This first function will create a urlencoded version of the string it is given. Unlike the regular escape() function, this doesn't just escape special characters, but alphanumeric ones as well. The unescape() part of this is optional, but useful for eval() statements.

function escape(str){
	tmp = "unescape('";
	for(var i=0;i<str.length;i++) tmp += "%" + str.charCodeAt(i).toString(16);
	return tmp + "')";
}

The second function is for creating a list of char numbers to replace a string. This is useful if you are unable to use quotation marks (for whatever reason). The String.fromCharCode is used for returning the characters back to a string, but it is optional.

function toChars(str){
	var ret = "String.fromCharCode(";
	for(var i=0;i<str.length;i++) ret += str.charCodeAt(i) + ",";
	return ret.slice(0,ret.length-1) + ")";
}

Hopefully you can find a use for one or both of these functions.

Oct 10

First off, I want to stress that the idea of an XSS fuzzer in GreaseMonkey is not my own unique idea - I saw WhiteAcid's XSS Assistant a few months ago and played with it a little bit with some success. However, his is very different from mine, mainly in that it is far more detailed and pretty than mine is. Well, I liked the concept of this XSS fuzzer, but I wanted to change how it worked. Read the rest of this entry »

Sep 23

Everyone's been to a site that had great content, but it was either the default black on white or some other eyesore (green on red, yellow on blue, etc). If you have GreaseMonkey, you can easily style up these sites with JavaScript.
Example:

// ==UserScript==
// @include site.com/*
// ==/UserScript==
document.body.style.color = "#DAE4FC";
document.body.style.backgroundColor="#000000";
document.body.style.fontFamily = "Verdana";

This example will change the background to black and the foreground to a light blue. If you want to use it, save it as a .user.js file, install with GreaseMonkey, and your site of choice should look a lot prettier the next time you load it. There are many other things you can change, this is just a very simple example. For instance, you can style particular DIVs in the layout, links, etc. Never put up with ugly websites again! :)

« Previous Entries