This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"defaultAction": "SCMP_ACT_ERRNO", | |
"defaultErrnoRet": 1, | |
"archMap": [ | |
{ | |
"architecture": "SCMP_ARCH_X86_64", | |
"subArchitectures": [ | |
"SCMP_ARCH_X86", | |
"SCMP_ARCH_X32" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query | |
{ | |
RootBindingres0 as var(func: has(process_id)) @cascade { | |
uid, | |
node_key, | |
process_name | |
process_id | |
created_files { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query | |
{ | |
RootBindingres0 as var(func: has(process_id)) @cascade { | |
uid, | |
node_key, | |
process_name | |
process_id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query | |
{ | |
RootBindingres0 as var(func: has(process_id)) @cascade { | |
uid, | |
node_key, | |
process_name | |
process_id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"encoding/json" | |
"log" | |
"github.com/dgraph-io/dgo" | |
"github.com/dgraph-io/dgo/protos/api" | |
"google.golang.org/grpc" | |
) |