Skip to content

Instantly share code, notes, and snippets.

@buccolo
buccolo / 123
Created January 30, 2014 17:00
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:50:in `rescue in block (2 levels) in negotiate!'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:46:in `block (2 levels) in negotiate!'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:45:in `loop'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:45:in `block in negotiate!'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:43:in `loop'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:43:in `negotiate!'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:32:in `initialize'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:78:in `new'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:78:in `block in initialize'
/Users/B
@buccolo
buccolo / cap
Last active August 29, 2015 13:55
endpoint_deploy/ master $ cap spree deploy
DEBUG Uploading /tmp/git-ssh.sh 0.0%
INFO Uploading /tmp/git-ssh.sh 100.0%
INFO [f4263c57] Running /usr/bin/env chmod +x /tmp/git-ssh.sh on ep-spree1.spree.fm
DEBUG [f4263c57] Command: /usr/bin/env chmod +x /tmp/git-ssh.sh
INFO [f4263c57] Finished in 0.410 seconds command successful.
cap aborted!
connection closed by remote host
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:50:in `rescue in block (2 levels) in negotiate!'
/Users/Buccolo/.gem/ruby/2.0.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/server_version.rb:46:in `block (2 levels) in negotiate!'
require 'httparty'
require 'json'
require 'openssl'
HUB_URL = "http://localhost:4000/push"
STORE_ID = "5180e2507575e48dd0000001"
STORE_SECRET_KEY = "1234567890"
timestamp = Time.now.utc().to_i - 4600
==Phrack Inc.==
Volume One, Issue 7, Phile 3 of 10
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following was written shortly after my arrest...
\/\The Conscience of a Hacker/\/
by
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@buccolo
buccolo / extjs_tweets.js
Created March 14, 2011 17:12
Gets the lastest 10 tweets from the user's Twitter.
var dsTweets = new Ext.data.JsonStore({
fields : [{name: 'text', type: 'string'}],
proxy : new Ext.data.ScriptTagProxy({
url : 'http://twitter.com/status/user_timeline/buccolo.json?count=10'
})
});
dsTweets.load({ callback: function(){
var tweets = store.query('');
@buccolo
buccolo / BruteDH.rb
Created December 10, 2011 19:25
Brute-forcing Diffie-Hellman's secret exponent.
#!/usr/bin/ruby
p = 1373
B = 805
i = 1
brute = 1
target = 397
while (brute != target)
brute = B ** i % p
@buccolo
buccolo / Vigenere.rb
Created December 10, 2011 21:00
Vigenere Encryption
#!/usr/bin/ruby
class String; def ord; self[0]; end; end
phrase = "tobeornottobethatisthequestion"
keyword = "hamlet"
len = keyword.length
keyindex = 0
@buccolo
buccolo / OrdP.rb
Created December 11, 2011 16:37
Computes OrdP values
#!/usr/bin/ruby
if ARGV.length != 2
print "syntax: ./Ord prime number\n"
exit
end
number = ARGV[1].to_f
number_print = ARGV[1].to_f
prime = ARGV[0].to_f
@buccolo
buccolo / EPhi.rb
Created December 15, 2011 22:00
Euler Phi (n)
#!/usr/bin/ruby
require 'rational'
number = ARGV[0].to_i
current = 0
phi = 0
while (current < number)
if (number.gcd(current) == 1)