Skip to content

Instantly share code, notes, and snippets.

{
"defaultAction": "SCMP_ACT_ERRNO",
"defaultErrnoRet": 1,
"archMap": [
{
"architecture": "SCMP_ARCH_X86_64",
"subArchitectures": [
"SCMP_ARCH_X86",
"SCMP_ARCH_X32"
]
[package]
name = "bench-translate"
version = "0.1.0"
authors = ["colin <colin@graplsecurity.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde_json = "1.0.53"
curl -H "Authorization: bearer AAAAAAAAAAABBBBBBBBBB" -X POST -d " \
{ \
\"query\": \"query { viewer { login }}\" \
} \
" https://api.github.com/graphql
let res = client
.post("https://api.github.com/graphql")
.bearer_auth("AAAAAAAAAAABBBBBBBBBB")
.json(
query
{
RootBindingres0 as var(func: has(process_id)) @cascade {
uid,
node_key,
process_name
process_id
created_files {
query
{
RootBindingres0 as var(func: has(process_id)) @cascade {
uid,
node_key,
process_name
process_id
query
{
RootBindingres0 as var(func: has(process_id)) @cascade {
uid,
node_key,
process_name
process_id
@insanitybit
insanitybit / after.query
Created October 28, 2019 21:22
After query
{
var(func: eq(node_key, "a6d60b9f-95ba-45a7-80b7-b07940989f2c")) {
uid,
Bindingresult2 as ~created_files
@filter((
(eq(process_name, "7zip.exe")) OR
(eq(process_name, "winrar.exe")) OR
(eq(process_name, "zip.exe"))
package main
import (
"context"
"encoding/json"
"log"
"github.com/dgraph-io/dgo"
"github.com/dgraph-io/dgo/protos/api"
"google.golang.org/grpc"
)