This file contains hidden or 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 ( | |
tlsh "github.com/glaslos/tlsh" | |
"fmt" | |
"os" | |
"io/ioutil" | |
) | |
func readBinary(fname string) ([]byte, error) { |
This file contains hidden or 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 ( | |
ssdeep "github.com/glaslos/ssdeep" | |
"fmt" | |
"os" | |
"io/ioutil" | |
) | |
func main() { |
This file contains hidden or 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
#!/usr/bin/python3 | |
import requests | |
import slackweb | |
import datetime | |
import sys | |
import configparser | |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import requests | |
import sqlite3 | |
import json | |
import slackweb | |
import datetime | |
import sys | |
import os |
This file contains hidden or 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
#include <iostream> | |
#include <tuple> | |
#include <vector> | |
#include <algorithm> | |
#include <utility> | |
#include <gsl/gsl_statistics.h> | |
template<typename T> | |
std::tuple<double, double, double> make_quantile(const std::vector<T>& input) { | |
std::vector<double> sorted_buffer(input.size()); |
This file contains hidden or 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
#include <iostream> | |
#include <fstream> | |
#include <memory> | |
#include <LIEF/LIEF.hpp> | |
int main() { | |
const size_t size = 245761; | |
std::ifstream fin("/mnt/c/Windows/System32/notepad.exe", std::ios::binary); | |
std::vector<uint8_t> buffer(size); | |
fin.read((char*)buffer.data(), size); |
This file contains hidden or 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
version: '2' | |
services: | |
drone-server: | |
image: drone/drone:1.0.0-rc.3 | |
ports: | |
- 8888:80 | |
- 443:443 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
This file contains hidden or 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
import ssdeep | |
import pyimpfuzzy as pyimf | |
import sys | |
import pandas as pd | |
from hashlib import sha256 | |
from itertools import combinations | |
from pylouvain.pylouvain import PyLouvain | |
SS_THRESHOLD = 30 |
This file contains hidden or 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
import pandas as pd | |
import numpy as np | |
import sys | |
from hashlib import sha256 | |
from pefile import PE | |
from pehash import totalhash_hex, anymaster_hex, anymaster_v1_0_1_hex | |
from pehash import endgame_hex, crits_hex | |
from sklearn.metrics import homogeneity_score | |
This file contains hidden or 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
import pandas as pd | |
import numpy as np | |
from random import randint | |
from numpy import linalg as LA | |
from itertools import combinations | |
from sklearn import datasets | |
from sklearn.cluster import KMeans | |
from sklearn.metrics.cluster import homogeneity_score | |
from neomodel import StructuredNode, StructuredRel | |
from neomodel import StringProperty, FloatProperty |