Skip to content

Instantly share code, notes, and snippets.

View 123
/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
View cap
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!'
View pushme.rb
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
View hacker_manifesto_1986.txt
==Phrack Inc.==
Volume One, Issue 7, Phile 3 of 10
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following was written shortly after my arrest...
\/\The Conscience of a Hacker/\/
by
View osx-for-hackers.sh
#!/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 Mar 14, 2011
Gets the lastest 10 tweets from the user's Twitter.
View extjs_tweets.js
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 Dec 10, 2011
Brute-forcing Diffie-Hellman's secret exponent.
View BruteDH.rb
#!/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 Dec 10, 2011
Vigenere Encryption
View Vigenere.rb
#!/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 Dec 11, 2011
Computes OrdP values
View OrdP.rb
#!/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 Dec 15, 2011
Euler Phi (n)
View EPhi.rb
#!/usr/bin/ruby
require 'rational'
number = ARGV[0].to_i
current = 0
phi = 0
while (current < number)
if (number.gcd(current) == 1)