Skip to content

Commit b91ce37

Browse files
authored
Merge pull request #87 from aancw/master
Update dynamic location random user agent list
2 parents f0cde7a + ea39e50 commit b91ce37

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

VHostScan/lib/helpers/file_helper.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import json
22
import os
33

4+
from pkg_resources import resource_filename
5+
6+
DEFAULT_UA_LIST = resource_filename(
7+
'VHostScan', 'lib/ua-random-list.txt')
8+
49

510
class file_helper(object):
611
"""description of class"""
@@ -62,5 +67,5 @@ def get_combined_word_lists(argument):
6267

6368

6469
def load_random_user_agents():
65-
with open('./lib/ua-random-list.txt') as f:
66-
return f.readlines()
70+
with open(DEFAULT_UA_LIST) as f:
71+
return f.read().splitlines()

0 commit comments

Comments
 (0)