Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import time
- import os
- import sys
- import socket
- jews = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- accounts = 'accounts.txt'
- acctfile = open(accounts,'rw')
- for line in acctfile:
- ssh_data = line
- ssh_exploded = ssh_data.split(',')
- ssh_host = ssh_exploded[0]
- ssh_user = ssh_exploded[1]
- ssh_pass = ssh_exploded[2]
- ssh_port = ssh_exploded[3]
- try:
- jews.connect((ssh_host,int(ssh_port)))
- jews.shutdown(2)
- print ssh_host + ',' + ssh_user + ',' + ssh_pass + ',' + ssh_port
- except:
- time.sleep(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement