def command_echo():
    artifact = ArtifactDefinition('EchoCommand')
    artifact.AppendSource(TYPE_INDICATOR_COMMAND, {
        'cmd': 'echo',
        'args': ['test']
    })

    return artifact
def path_artifact():
    artifact = ArtifactDefinition('PathArtifact')
    artifact.AppendSource(TYPE_INDICATOR_PATH, {'paths': ['/passwords.txt']})

    return artifact
def passwords_file():
    artifact = ArtifactDefinition('PasswordsFile')
    artifact.AppendSource(TYPE_INDICATOR_FILE, {'paths': ['/passwords.txt']})

    return artifact
def passwords_file_info():
    artifact = ArtifactDefinition('PasswordsFileInfo')
    artifact.AppendSource(FILE_INFO_TYPE, {'paths': ['/passwords.txt']})

    return artifact
Exemple #5
0
def file_artifact(name, pattern):
    artifact = ArtifactDefinition(name)
    artifact.AppendSource(TYPE_INDICATOR_FILE, {'paths': [pattern]})

    return artifact
def command_artifact(name, command, args):
    artifact = ArtifactDefinition(name)
    artifact.AppendSource(TYPE_INDICATOR_COMMAND, {'cmd': command, 'args': args})

    return artifact