Codebase list poshc2 / 839c6c4
Add a patch to fix cookie_decrypter Sophie Brun 2 years ago
2 changed file(s) with 26 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Sophie Brun <[email protected]>
1 Date: Fri, 19 Nov 2021 11:50:29 +0100
2 Subject: Fix cookie_decrypter
3
4
5 Last-Update: 2021-11-23
6 The script fails with "IndexError: list index out of range".
7 The list index starts at 0, not 1.
8 ---
9 cookie_decrypter.py | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/cookie_decrypter.py b/cookie_decrypter.py
13 index 7f59884..0dfca0b 100644
14 --- a/cookie_decrypter.py
15 +++ b/cookie_decrypter.py
16 @@ -6,7 +6,7 @@ from poshc2.server.database.DB import get_keys, database_connect
17
18 import sys, re
19
20 -file = open(sys.argv[1], "r")
21 +file = open(sys.argv[0], "r")
22 database_connect()
23 result = get_keys()
24
55 rename-payload-templates.patch
66 use-cryptodome.patch
77 Indicate-that-sudo-is-required.patch
8 Fix-cookie_decrypter.patch