Skip to content

Instantly share code, notes, and snippets.

View frikky's full-sized avatar
:shipit:
Shuffling

Frikky frikky

:shipit:
Shuffling
View GitHub Profile
@frikky
frikky / buildimage.go
Created June 18, 2019 08:52
Create docker image from Dockerfile
package main
import (
"log"
"io/ioutil"
"io"
"context"
"bytes"
"os"
"archive/tar"
@frikky
frikky / test-alert-create.py
Created May 20, 2019 22:03
TheHive alert creation test script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import uuid
import time
from thehive4py.api import TheHiveApi
from thehive4py.models import Alert, AlertArtifact, CustomFieldHelper
api = TheHiveApi('http://127.0.0.1:9000', 'CHANGEME :)')
artifacts = []
@frikky
frikky / AlertCreation.json
Created May 20, 2019 21:48
AlertCreation example for WALKOFF
{
"actions": [
{
"app_name": "thehive",
"app_version": "0.0.3",
"errors": [
"Parameter 'cur_id' not found in workflow but is required in 'thehive' API.",
"Parameter 'field' not found in workflow but is required in 'thehive' API.",
"Parameter 'data' not found in workflow but is required in 'thehive' API."
],
'AlertCreation',
'AlertUpdate',
'CaseArtifactCreation',
'CaseArtifactJobCreation',
'CaseArtifactJobUpdate',
'CaseArtifactJobUpdate',
'CaseArtifactUpdate',
'CaseCreation',
'CaseTaskCreation',
'CaseTaskLogCreation',
@frikky
frikky / Request - POST
Last active December 6, 2018 18:07
A post request example for blog
import React, {useState} from 'react';
const App = props => {
const name = "@frikkylikeme"
const url = "https://medium.com"
return (
<div>
<Functionname url={url} name={name} {...props} />
</div>
@frikky
frikky / Gist
Created December 6, 2018 16:36
import React from 'react';
const Functionname = () => {
const name = "@frikkylikeme"
const url = "https://medium.com
return (
<div>
<App name={name} url={url} {...props} />
</div>
);