Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b45e473

Browse files
author
ekultek
committedJul 19, 2018
minor update for an issue with downloading
1 parent 3d363d3 commit b45e473

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ uid.p
77
etc/tokens/*
88
autosploit_out/*
99
venv/*
10+
etc/json/*

‎lib/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ def download_modules_list(search_string):
335335
length = len(raw_exploits)
336336
lib.output.info("downloading a total of {} module paths".format(length))
337337
for i, line in enumerate(raw_exploits):
338-
tmp.write(line.split(" ")[3] + os.linesep)
338+
try:
339+
tmp.write(line.split(" ")[3] + os.linesep)
340+
except IndexError:
341+
pass
339342
tmp.seek(0)
340343
lib.jsonize.text_file_to_dict(random_temp_file_for_download, filename=filepath)
341344
lib.output.misc_info("removing created tmp file: '{}'".format(random_temp_file_for_download))

0 commit comments

Comments
 (0)
Failed to load comments.