0 | |
From: Ben Wilson <[email protected]>
|
1 | |
Date: Wed, 11 Nov 2020 12:12:02 +0000
|
2 | |
Subject: disable requirements check
|
3 | |
|
4 | |
---
|
5 | |
finalrecon.py | 32 ++++++++++++++++----------------
|
6 | |
1 file changed, 16 insertions(+), 16 deletions(-)
|
7 | |
|
8 | |
diff --git a/finalrecon.py b/finalrecon.py
|
9 | |
index 15cb13a..f14aafe 100644
|
10 | |
--- a/finalrecon.py
|
11 | |
+++ b/finalrecon.py
|
12 | |
@@ -36,22 +36,22 @@ else:
|
13 | |
import shutil
|
14 | |
shutil.copytree(src_conf_path, conf_path, dirs_exist_ok=True)
|
15 | |
|
16 | |
-with open(path_to_script + '/requirements.txt', 'r') as rqr:
|
17 | |
- pkg_list = rqr.read().strip().split('\n')
|
18 | |
-
|
19 | |
-print('\n' + G + '[+]' + C + ' Checking Dependencies...' + W + '\n')
|
20 | |
-
|
21 | |
-for pkg in pkg_list:
|
22 | |
- spec = importlib.util.find_spec(pkg)
|
23 | |
- if spec is None:
|
24 | |
- print(R + '[-]' + W + ' {}'.format(pkg) + C + ' is not Installed!' + W)
|
25 | |
- fail = True
|
26 | |
- else:
|
27 | |
- pass
|
28 | |
-if fail == True:
|
29 | |
- print('\n' + R + '[-]' + C + ' Please Execute ' + W + 'pip3 install -r requirements.txt' + C + ' to Install Missing Packages' + W + '\n')
|
30 | |
- os.remove(pid_path)
|
31 | |
- sys.exit()
|
32 | |
+#with open(path_to_script + '/requirements.txt', 'r') as rqr:
|
33 | |
+# pkg_list = rqr.read().strip().split('\n')
|
34 | |
+
|
35 | |
+#print('\n' + G + '[+]' + C + ' Checking Dependencies...' + W + '\n')
|
36 | |
+
|
37 | |
+#for pkg in pkg_list:
|
38 | |
+# spec = importlib.util.find_spec(pkg)
|
39 | |
+# if spec is None:
|
40 | |
+# print(R + '[-]' + W + ' {}'.format(pkg) + C + ' is not Installed!' + W)
|
41 | |
+# fail = True
|
42 | |
+# else:
|
43 | |
+# pass
|
44 | |
+#if fail == True:
|
45 | |
+# print('\n' + R + '[-]' + C + ' Please Execute ' + W + 'pip3 install -r requirements.txt' + C + ' to Install Missing Packages' + W + '\n')
|
46 | |
+# os.remove(pid_path)
|
47 | |
+# sys.exit()
|
48 | |
|
49 | |
import argparse
|
50 | |
|