Codebase list powershell-empire / b8fce45
Add a patch to fix syntax warning Sophie Brun 3 years ago
2 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Sophie Brun <[email protected]>
1 Date: Tue, 9 Mar 2021 12:06:05 +0100
2 Subject: Fix syntax warnings
3
4 Bug: https://bugs.kali.org/view.php?id=6626
5
6 ---
7 data/agent/agent.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/data/agent/agent.py b/data/agent/agent.py
11 index 73fe4fc..6af9780 100644
12 --- a/data/agent/agent.py
13 +++ b/data/agent/agent.py
14 @@ -356,7 +356,7 @@ def process_packet(packetType, data, resultID):
15 cmdargs = data
16
17 path = '/' # default to root
18 - if cmdargs is not None and cmdargs != '' and cmdargs != '/': # strip trailing slash for uniformity
19 + if cmdargs != None and cmdargs != '' and cmdargs != '/': # strip trailing slash for uniformity
20 path = cmdargs.rstrip('/')
21 if path[0] != '/': # always scan relative to root for uniformity
22 path = '/{0}'.format(path)
33 force-sudo-usage
44 change-debug-downloads-dirs.patch
55 change-default-database-location.patch
6 Fix-syntax-warnings.patch