forked from p15670423/monkey
Fix typos
This commit is contained in:
parent
e8f72f5cd5
commit
5dc2d54cef
|
@ -6,4 +6,4 @@ POST_BREACH_HIDDEN_FILES = "Hide files and directories"
|
|||
POST_BREACH_TRAP_COMMAND = "Execute command when a particular signal is received"
|
||||
POST_BREACH_SETUID_SETGID = "Setuid and Setgid"
|
||||
POST_BREACH_JOB_SCHEDULING = "Schedule jobs"
|
||||
POST_BREACH_TIMESTOMPPING = "Modify files' timestamps"
|
||||
POST_BREACH_TIMESTOMPING = "Modify files' timestamps"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from common.data.post_breach_consts import POST_BREACH_TIMESTOMPPING
|
||||
from common.data.post_breach_consts import POST_BREACH_TIMESTOMPING
|
||||
from infection_monkey.post_breach.pba import PBA
|
||||
from infection_monkey.post_breach.timestomping.timestomping import \
|
||||
get_timestomping_commands
|
||||
|
@ -7,6 +7,6 @@ from infection_monkey.post_breach.timestomping.timestomping import \
|
|||
class Timestomping(PBA):
|
||||
def __init__(self):
|
||||
linux_cmds, windows_cmds = get_timestomping_commands()
|
||||
super().__init__(POST_BREACH_TIMESTOMPPING,
|
||||
super().__init__(POST_BREACH_TIMESTOMPING,
|
||||
linux_cmd=linux_cmds,
|
||||
windows_cmd=windows_cmds)
|
||||
|
|
|
@ -3,7 +3,7 @@ $TIMESTAMP_EPOCH = '01/01/1970 00:00:00'
|
|||
|
||||
# create temporary file
|
||||
New-Item -Path $TEMP_FILE -Force | Out-Null
|
||||
Set-Content $TEMP_FILE -Value "Successfully changed a file\'s modification timestamp" -Force | Out-Null
|
||||
Set-Content $TEMP_FILE -Value "Successfully changed a file's modification timestamp" -Force | Out-Null
|
||||
|
||||
# attempt to change modification timestamp
|
||||
Get-ChildItem $TEMP_FILE | % { $_.LastWriteTime = $TIMESTAMP_EPOCH }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from common.data.post_breach_consts import POST_BREACH_TIMESTOMPPING
|
||||
from common.data.post_breach_consts import POST_BREACH_TIMESTOMPING
|
||||
from monkey_island.cc.services.attack.technique_reports.pba_technique import \
|
||||
PostBreachTechnique
|
||||
|
||||
|
@ -10,4 +10,4 @@ class T1099(PostBreachTechnique):
|
|||
unscanned_msg = "Monkey didn't try changing any file's time attributes."
|
||||
scanned_msg = "Monkey tried changing a file's time attributes but failed."
|
||||
used_msg = "Monkey successfully changed a file's time attributes."
|
||||
pba_names = [POST_BREACH_TIMESTOMPPING]
|
||||
pba_names = [POST_BREACH_TIMESTOMPING]
|
||||
|
|
|
@ -77,7 +77,7 @@ POST_BREACH_ACTIONS = {
|
|||
"Timestomping"
|
||||
],
|
||||
"title": "Timestomping",
|
||||
"info": "Creates a temporary file and attempts to modify its file time attributes. Removes temporary file.",
|
||||
"info": "Creates a temporary file and attempts to modify its time attributes. Removes the file afterwards.",
|
||||
"attack_techniques": ["T1099"]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue