forked from p34709852/monkey
agent: Remove second file from test_file_encrypted_in_place()
This commit is contained in:
parent
f1e592380b
commit
ef209a693c
|
@ -85,17 +85,14 @@ def test_all_files_with_included_extension_encrypted(ransomware_target, ransomwa
|
||||||
|
|
||||||
|
|
||||||
def test_file_encrypted_in_place(ransomware_target, ransomware_payload):
|
def test_file_encrypted_in_place(ransomware_target, ransomware_payload):
|
||||||
expected_all_zeros_inode = os.stat(ransomware_target / ALL_ZEROS_PDF).st_ino
|
|
||||||
expected_test_keyboard_inode = os.stat(ransomware_target / TEST_KEYBOARD_TXT).st_ino
|
expected_test_keyboard_inode = os.stat(ransomware_target / TEST_KEYBOARD_TXT).st_ino
|
||||||
|
|
||||||
ransomware_payload.run_payload()
|
ransomware_payload.run_payload()
|
||||||
|
|
||||||
actual_all_zeros_inode = os.stat(ransomware_target / with_extension(ALL_ZEROS_PDF)).st_ino
|
|
||||||
actual_test_keyboard_inode = os.stat(
|
actual_test_keyboard_inode = os.stat(
|
||||||
ransomware_target / with_extension(TEST_KEYBOARD_TXT)
|
ransomware_target / with_extension(TEST_KEYBOARD_TXT)
|
||||||
).st_ino
|
).st_ino
|
||||||
|
|
||||||
assert expected_all_zeros_inode == actual_all_zeros_inode
|
|
||||||
assert expected_test_keyboard_inode == actual_test_keyboard_inode
|
assert expected_test_keyboard_inode == actual_test_keyboard_inode
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue