Skip to content

Commit 6fc9a41

Browse files
committed
close file descriptor.
1 parent 26974d7 commit 6fc9a41

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/TODO

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
files ) and brute it
1515

1616

17+
===> 1.3.1
18+
19+
[x] close file descriptor...
20+
21+
1722
===> 1.3.0
1823

1924
[x] updated default thread nums for host, service and login.

sshprank.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838

3939
__author__ = 'noptrix'
40-
__version__ = '1.3.0'
40+
__version__ = '1.3.1'
4141
__copyright = 'santa clause'
4242
__license__ = 'MIT'
4343

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

489490
if 'userlist' in opts and 'passlist' not in opts:
490491
for u in uf:

0 commit comments

Comments
 (0)