Skip to content

Instantly share code, notes, and snippets.

I'm Coding

Hakan Baysal hakanbaysal

I'm Coding
View GitHub Profile
hakanbaysal /
Created Aug 5, 2021 — forked from EikeDehling/
Kibana install script debian (as root)
# Install elasticsearch
wget -qO - | apt-key add -
apt-get install apt-transport-https
echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update
apt-get install kibana
# Configure elastic
sed -i '/\' /etc/kibana/kibana.yml
View rabbitmq-ha-values.yaml
## RabbitMQ application credentials
## Ref:
rabbitmqUsername: guest
# rabbitmqPassword:
## RabbitMQ Management user used for health checks
managementUsername: management
# managementPassword:
hakanbaysal /
Created Feb 19, 2021 — forked from iddoeldor/
iterate over pcap, base64 decode packet data w/ python
import json
from pprint import pprint
from scapy.all import *
packets = rdpcap('sniff.cap')
# Let's iterate through every packet
c = 1
arr = []
for packet in packets:
import json
from jsonpath_ng import jsonpath, parse
class Hero:
def __init__(self):
self.json = {}
self.new_json = {}
class Main:
def __init__(self):
print("Transfer is started")
self.col = self.mongo_connect() = self.elastic_connect()
def mongo_connect():
client = pymongo.MongoClient("mongodb://localhost:37017/")