Skip to content

Instantly share code, notes, and snippets.

View rwaldron's full-sized avatar

Rick Waldron rwaldron

  • Boston, MA
View GitHub Profile
#!/bin/sh
# phpinfo-mine
# Finds and retrieves phpinfo() pages from Google results.
#
# Requires WhatWeb and gggooglescan in the current working directory.
#
# It is highly recommended that you change your passwords if your servers'
# passwords appears in this list.
##
# Google Results as at 2011-01-21 #
#!/usr/local/bin/ruby
require "socket"
irc = TCPSocket.open('irc.freenode.net', 6667)
irc.send("USER blah blah blah :blah blah\n", 0)
irc.send("NICK ChanScanBot\n", 0)
irc.send("JOIN #sproutcore\n", 0)
names = []
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Text Editor</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="Peter Wagenet">
<!-- Date: 2010-05-12 -->
@rwaldron
rwaldron / here.js
Created March 16, 2011 21:53 — forked from wycats/here.js
v8 = V8::Context.new
v8["foo"] = proc do |hello|
# can I get the JS callstack here?
puts hello
end
v8.eval("function bar() { baz('sven' )}; function baz(name) { foo(name) }")
@rwaldron
rwaldron / pp.js
Created March 19, 2011 17:30 — forked from voodootikigod/pp.js
function pp (t) {
if (typeof console == "object" && typeof console.log == "function")
console.log(t);
else
print(t);
}
var SerialPort = require("./serialport")
var sp = new SerialPort("/dev/ttyUSB0")
sp.write("OMG USB");
// Reading is not perfect yet
sp.on('data', function(data) {
sys.puts("data");
});
sp.close();
@rwaldron
rwaldron / def.js
Created March 22, 2011 01:37 — forked from tbtlr/def.js
/*
* def.js: Simple Ruby-style inheritance for JavaScript
*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(global) {
__super__ = function(){
var caller = __super__.caller;
// Popcorn Instance Methods
var p = Popcorn( "#video" )
p.play()
// Play the video (Native "pass through" method)
// Returns the Popcorn instance object
p.load()
// Load the video (Native "pass through" method)
// Returns the Popcorn instance object
// Popcorn Instance Methods
var p = Popcorn( "#video" )
p.play()
// Play the video (Native "pass through" method)
// Returns the Popcorn instance object
p.load()
// Load the video (Native "pass through" method)
// Returns the Popcorn instance object
//*******************************************
// Level 1, basic API, minimum support
//*******************************************
/*
Modules IDs are strings that follow CommonJS
module names.
*/
//To load code at the top level JS file,
//or inside a module to dynamically fetch