Skip to content

Instantly share code, notes, and snippets.

@2xyo
2xyo / d3fend.ttl
Created April 22, 2024 21:10
PR #229
:NetworkSignatureAnalysis a :NetworkTrafficAnalysis,
owl:Class,
owl:NamedIndividual ;
rdfs:label "Network Signature Analysis" ;
rdfs:subClassOf :NetworkTrafficAnalysis,
[ a owl:Restriction ;
owl:onProperty :analyzes ;
owl:someValuesFrom :NetworkTraffic ] ;
:d3fend-id "D3-NSA" ;
@2xyo
2xyo / Readme.md
Last active October 6, 2023 21:00
Msticpy contributing
Fork the current repository, then clone your fork
$ git clone https://github.com/YOUR-USERNAME/msticpy.git
$ cd msticpy
$ git remote add upstream https://github.com/microsoft/msticpy.git
# Create a branch for your feature/fix
$ git switch -c [branch-name]
$ python3.11 -m venv .venv --prompt "msticpy"
$ source .venv/bin/activate
$ pip install --upgrade pip wheel setuptools
@2xyo
2xyo / .config
Last active October 18, 2022 01:40
Kernel for UDOO with iptables
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.35 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_HAVE_PWM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
@2xyo
2xyo / Readme.md
Created October 7, 2013 12:40
Kernel sysctl configuration file for Linux dedicated server systems at high-speed networks with loads of RAM and bandwidth available.

Sysctl-IP-Tunning

Kernel sysctl configuration file for Linux dedicated server systems at high-speed networks with loads of RAM and bandwidth available.

Installation

This file should be saved as /etc/sysctl.d/sysctl.local.conf and can be activated using the command: sysctl -e -p /etc/sysctl.d/*

@2xyo
2xyo / install.sh
Last active February 22, 2022 21:37
SPLUNK - attack_range_local - WSL
# doc https://www.vagrantup.com/docs/other/wsl & https://www.vagrantup.com/downloads
# https://github.com/splunk/attack_range_local/wiki/Ubuntu-18.04-Installation
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
{
"id": "extension-definition--d83fce45-ef58-4c6c-a3f4-1fbc32e98c6e",
"type": "extension-definition",
"spec_version": "2.1",
"name": "Extension Foo 1",
"description": "This schema adds two properties to a STIX object",
"created": "2014-02-20T09:16:08.989000Z",
"modified": "2014-02-20T09:16:08.989000Z",
"created_by_ref": "identity--11b76a96-5d2b-45e0-8a5a-f6994f370731",
@2xyo
2xyo / opencti_indicator.py
Created April 4, 2021 22:36
opencti_indicator.py PEP 484
# coding: utf-8
from __future__ import annotations
import json
from typing import Any, Dict, List, Optional, TYPE_CHECKING
if TYPE_CHECKING:
from pycti import OpenCTIApiClient
@2xyo
2xyo / console.txt
Last active November 13, 2020 17:16
Mémo GIT
DOC https://gist.github.com/Chaser324/ce0505fbed06b947d962
git clone git@github.com:2xyo/client-python.git client-python-wheel
cd client-python-wheel
git remote add upstream https://github.com/OpenCTI-Platform/client-python.git
git remote -v
# Fetch from upstream remote
git fetch upstream
@2xyo
2xyo / install.sh
Created March 28, 2016 17:04
SNORT installation on debian 8
# http://sublimerobots.com/2015/12/snort-2-9-8-x-on-ubuntu-part-2/
# https://s3.amazonaws.com/snort-org-site/production/document_files/files/000/000/069/original/Snort-IPS-Tutorial.pdf
apt update
apt install sudo vim
export EDITOR=vim
visudo
# yoyo ALL=(ALL) NOPASSWD:ALL
exit
@2xyo
2xyo / bandwidth.sh
Created May 31, 2012 14:57
Realtime Bandwidth monitor
#!/bin/bash
clear
declare -i rxnow txnow txlast rxlast
while true
do
chain=`ifconfig $1|grep bytes`
rxnow=`echo $chain | cut -d ":" -f2 | cut -d " " -f1`
txnow=`echo $chain | cut -d ":" -f3 | cut -d " " -f1`