Skip to content

Instantly share code, notes, and snippets.

@e000
Created March 12, 2011 01:52
Show Gist options
  • Select an option

  • Save e000/866944 to your computer and use it in GitHub Desktop.

Select an option

Save e000/866944 to your computer and use it in GitHub Desktop.
def connected(conn):
print 'connected', conn
conn.connectTCP('irc.ircneto.rk', 6667, IRCFactory())
pass
import json
def gotData(data):
data = json.loads(data)
for user in data['data']:
#q.add('ssh://%s:%s@%s' % (derp['username'], derp['password'], derp['ip']))
print user
f = SSHTransportFactory((str(user['username']), str(user['password'])))
f.deferred.addCallback(connected)
reactor.connectTCP(str(user['ip']), user['port'], f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment