Skip to content

Commit

Permalink
close file descriptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Jan 19, 2021
1 parent 26974d7 commit 6fc9a41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
files ) and brute it


===> 1.3.1

[x] close file descriptor...


===> 1.3.0

[x] updated default thread nums for host, service and login.
Expand Down
3 changes: 2 additions & 1 deletion sshprank.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


__author__ = 'noptrix'
__version__ = '1.3.0'
__version__ = '1.3.1'
__copyright = 'santa clause'
__license__ = 'MIT'

Expand Down Expand Up @@ -485,6 +485,7 @@ def run_threads(host, ports, val='single'):
pf = open(opts['passlist'], 'r', encoding='latin-1')
for p in pf:
exe.submit(crack_login, host, port, u.rstrip(), p.rstrip())
pf.close()

if 'userlist' in opts and 'passlist' not in opts:
for u in uf:
Expand Down

0 comments on commit 6fc9a41

Please sign in to comment.