Revision 1c65dd5c
Added by koszko over 1 year ago
test/unit/test_payload_create.py | ||
---|---|---|
19 | 19 |
|
20 | 20 |
import pytest |
21 | 21 |
import re |
22 |
from hashlib import sha256 |
|
23 |
|
|
22 | 24 |
from selenium.webdriver.support.ui import WebDriverWait |
23 | 25 |
|
24 | 26 |
from ..extension_crafting import ExtraHTML |
... | ... | |
137 | 139 |
'long_name': long_name, |
138 | 140 |
'scripts': [{ |
139 | 141 |
'file': 'payload.js', |
140 |
'hash_key': make_hash_key(form_data['script'])
|
|
142 |
'sha256': sha256(form_data['script'].encode()).digest().hex()
|
|
141 | 143 |
}] |
142 | 144 |
}] |
143 | 145 |
|
Also available in: Unified diff
adapt to changes in file path format
From now on we assume Hydrilla serves file contents at 'file/sha256/' instead of 'file/sha256-'.
With this commit we also stop using the "hash_key" property internally.