Skip to content

Instantly share code, notes, and snippets.

View aliorhun's full-sized avatar
🎯
Focusing

Ali Orhun Akkirman aliorhun

🎯
Focusing
View GitHub Profile
@aliorhun
aliorhun / ornekrest.py
Created October 18, 2024 09:55
Örnek REST Uygulaması
from flask import Flask, request
from flask_restful import Api, Resource, reqparse
import pandas as pd
app = Flask(__name__)
api = Api(app)
class Users(Resource):
def __init__(self):
self.data = pd.read_csv('kullanicilar.csv')
@0xsha
0xsha / CVE-2021-44142.py
Last active October 3, 2023 13:34
CVE-2021-44142 PoC Samba 4.15.0 OOB Read/Write
# CVE-2021-44142 PoC Samba 4.15.0 OOB Read/Write
# (C) 2022 - 0xSha.io - @0xSha
# This PoC is un-weaponized and for educational purposes only .
# To learn how to use the PoC please read the writeup :
# https://0xsha.io/blog/a-samba-horror-story-cve-2021-44142
# requires samba4-python
# Refrences :
# https://www.thezdi.com/blog/2022/2/1/cve-2021-44142-details-on-a-samba-code-execution-bug-demonstrated-at-pwn2own-austin
# Patch : https://attachments.samba.org/attachment.cgi?id=17092
@zekiahmetbayar
zekiahmetbayar / ip_change.sh
Created January 20, 2022 10:43
Change ip automatically with bash script
#!/bin/bash
# Usage
## chmod +x ip_change.sh
## sudo ./ip_change.sh new_ip
path="/etc/network/interfaces"
current="$(hostname -I | cut -d' ' -f1 | xargs)"
new_ip=$1
@zekiahmetbayar
zekiahmetbayar / hostname_change.sh
Last active August 2, 2025 18:40
Change hostname automatically with bash script
#!/bin/bash
# Usage
## chmod +x hostname_change.sh
## sudo ./hostname_change.sh new_hostname
if [ "$EUID" -ne 0 ]
then echo "Please run as root."
exit
fi
@Neo23x0
Neo23x0 / log4j_rce_detection.md
Last active October 4, 2025 08:06
Log4j RCE CVE-2021-44228 Exploitation Detection

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@superjamie
superjamie / install-ubuntu-luks-lvm.md
Last active January 3, 2026 17:05
How to install Ubuntu with LUKS Encryption on LVM

How to install Ubuntu with LUKS Encryption on LVM

My work requires us to have full-disk encryption, so these are the steps I use.

The basic idea is to create a LUKS-encrypted partition which is used as an LVM Physical Volume.

The GRUB boot partition isn't encrypted, but everything else is.

These steps tested and working on 22.04 (jammy) and 20.04 (focal).

@StarBuckR
StarBuckR / main.go
Last active December 21, 2025 07:47
Golang Ldap Authentication, Bind and Search, including Anonymous Bind
package main
import (
"fmt"
"log"
"github.com/go-ldap/ldap/v3"
)
const (
@krisek
krisek / alert.rules.yml
Last active December 5, 2025 12:33
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down
@johnathanmay
johnathanmay / logitech-mx-master-3-extras-for-linux-with-logiops.md
Last active January 25, 2026 18:51
How to install and configure PixlOne's logid to program Logitech MX Master 3 buttons on Linux.

Logitech MX Master 3 Extras for Linux With logiops

The Logitech Options program isn't available for Linux, but by a nice guy on GitHub (PixlOne) created an open source project that lets you obtain some of that functionality. It's called logiops. It works in conjunction with the Solaar project as well, which I find especially handy since that shows your available battery life in the system tray and lets you pair/unpair devices with the Logitech Unifying Receiver.

Here are some additional pages with info that I used to generate this documentation:

@sh4dowb
sh4dowb / eba-canli-ders.md
Last active March 21, 2023 16:49
EBA canlı ders için Linux ve Mac desteği (Zoom)