Skip to content

Instantly share code, notes, and snippets.

View mrbrutti's full-sized avatar
💭
Hacking ...

マティアス mrbrutti

💭
Hacking ...
View GitHub Profile
@mrbrutti
mrbrutti / keybase.md
Last active August 29, 2015 13:58
keybase.md

Keybase proof

I hereby claim:

  • I am freedomcoder on github.
  • I am ishikawa (https://keybase.io/ishikawa) on keybase.
  • I have a public key whose fingerprint is 17F9 D8EA E46E 3DA6 4F27 BF98 E405 57DA 37FD EB4F

To claim this, I am signing this object:

#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <install|update> "
echo "Author: Matias Pablo Brutti"
echo "Bye :)"
exit
fi
echo "This might not compile because it is download straight from"
echo "the svn repository. If it does not work either wait and try"
class UserAgent
@USER_AGENTS=[
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Acoo Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)",
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Acoo Browser; InfoPath.2; .NET CLR 2.0.50727; Alexa Toolbar)",
"amaya/9.52 libwww/5.4.0",
"amaya/11.1 libwww/5.4.0",
"Amiga-AWeb/3.5.07 beta",
"AmigaVoyager/3.4.4 (MorphOS/PPC native)",
"AmigaVoyager/2.95 (compatible; MC680x0; AmigaOS)",
require "Colorize"
class Klass
include Colors
def initialize
system("echo #{red("hola")} This is a #{blue("test")}")
system("echo #{red on_white("Hola1")}")
puts "#{red on_blue("Hola2")}"
end
end
require "Colorize"
class Klass
include Colors
def initialize
system("echo #{red("hola")} This is a #{blue("test")}")
system("echo #{red on_white("Hola1")}")
puts "#{red on_blue("Hola2")}"
end
end
require 'esearchy'
ESearchy::LOG.level = ESearchy::APP
ESearchy.create "domain.com" do |d|
d.yahoo_key = "dsdsdsdsdsdsdsd"
d.bing_key = "dsdsdsdsdsdsdsdsd"
d.company_name = "Domain Corp"
d.linkedin_credentials = "myuser@linkedin.com", "12345" # or use the constant ESearch::BUGMENOT
d.maxhits = 500
domain = Esearchy.new :query => "domain.com",
:maxhits => 500,
:engines => [:Google,:Yahoo]
domain.search
domain.save_to_file "~/emails.txt"
Esearchy.create "domain.com" do |domain|
domain.maxhits = 500
domain.search
domain.clean {|e| e =~ /<|>/ }
domain.save_to_file "~/emails.txt"
end
ESearchy.create "domain.com" do |d|
d.engines = { "LinkedIn" =&gt; LinkedIn.new}
d.company_name "Domain Corp"
d.linkedin_credentials "myuser@linkedin.com", "12345"
d.maxhits = 100
d.search
d.save_to_file "linkedin_emails.txt"</pre>
end
require 'net/http'
require 'base64'
class BMN
def self.decode(input, offset)
# thanks tlrobinson @ github
input.unpack("m*")[0][4..-1].unpack("C*").map{|c| c - offset }.pack("C*")
end
def self.fetch_users(domain,size=nil)