Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
I'm Coding

Hakan Baysal hakanbaysal

💻
I'm Coding
View GitHub Profile
@hakanbaysal
hakanbaysal / install-kibana.sh
Created Aug 5, 2021 — forked from EikeDehling/install-kibana.sh
Kibana install script debian (as root)
View install-kibana.sh
# Install elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt 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 '/#server.host: 192.168.0.1/c\server.host: 0.0.0.0' /etc/kibana/kibana.yml
View rabbitmq-ha-values.yaml
## RabbitMQ application credentials
## Ref: http://rabbitmq.com/access-control.html
##
rabbitmqUsername: guest
# rabbitmqPassword:
## RabbitMQ Management user used for health checks
managementUsername: management
# managementPassword:
@hakanbaysal
hakanbaysal / read_pcap_data.py
Created Feb 19, 2021 — forked from iddoeldor/read_pcap_data.py
iterate over pcap, base64 decode packet data w/ python
View read_pcap_data.py
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:
View hero.py
import json
from jsonpath_ng import jsonpath, parse
class Hero:
def __init__(self):
print('hero')
self.json = {}
self.new_json = {}
View mongo2elasticsearch.py
class Main:
def __init__(self):
print("Transfer is started")
self.col = self.mongo_connect()
self.es = self.elastic_connect()
self.get_mongo_data()
@staticmethod
def mongo_connect():
client = pymongo.MongoClient("mongodb://localhost:37017/")