Skip to content

Instantly share code, notes, and snippets.

View sulincix's full-sized avatar
🇹🇷

​​ sulincix

🇹🇷
View GitHub Profile
@sulincix
sulincix / aidattakipsistemi.py
Last active June 18, 2026 21:27
yönetimcell - aidattakipsistemi
# Fetch information from https://aidattakipsistemi.com
import json
import requests
BASE = "https://aidattakipsistemi.com/webyonetimcellcom"
# Fetch values in js console: (press f12 and paste)
# document.cookie.replaceAll("%22", "\"").replaceAll("%2C", ", ")
siteid=xxxxx
@sulincix
sulincix / ipc.py
Last active June 15, 2026 07:55
python ipc
#!/usr/bin/env python3
import os
import socket
import json
class IpcServer:
def __init__(self, path):
self.server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
if os.path.exists(path):
os.unlink(path)
/
/.env
/.env.backup
/.env.local
/.env.old
/.env.prod
/.env.production
/.git/HEAD
/.git/config
/.npmrc
@sulincix
sulincix / blockip.txt
Created April 1, 2026 11:28
Spammer ip list
1.0.133.208
1.0.209.177
1.13.2.59
1.13.14.209
1.14.15.205
1.14.142.52
1.15.13.216
1.15.39.219
1.15.58.114
1.15.85.193
@sulincix
sulincix / detect_portal.py
Created March 11, 2026 08:47
Python Captive Login Detect
#!/usr/bin/env python3
import socket
def detect_portal():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("detectportal.firefox.com", 80))
s.send(b'GET /\n\r\n')
data = s.recv(1024).decode("utf-8").strip()
@sulincix
sulincix / merge.sh
Last active February 26, 2026 17:59
#!/bin/bash
# Create merged input. Merged all output sources.
# Insert this script in /etc/X11/xinit/xinitrc.d/
if [ "$1" == "-u" ]; then
# Unload the loopback and null sink modules
pactl unload-module module-loopback
pactl unload-module module-null-sink
else
# Exit if already loaded.
if pactl list sources short | grep "combined" &>/dev/null ; then
@sulincix
sulincix / destroy-journald.sh
Created February 17, 2026 10:38
destroy journald
#!/bin/bash
# remove init symlink (or move)
rm /sbin/init
# write preinit
cat > /sbin/init <<EOF
mkdir /run/systemd
touch /run/systemd/journal
exec /lib/systemd/systemd
EOF
# make executable
@sulincix
sulincix / glib_screenshot.c
Last active February 11, 2026 10:06
Wayland xdg-desktop-portal screenshot in C
#include <gio/gio.h>
#include <stdio.h>
/* gcc glib_screenshot.c -o screenshot `pkg-config --cflags --libs gio-2.0 glib-2.0` */
static GMainLoop *loop;
/* Response signal handler */
static void
on_response(GDBusProxy *proxy,
@sulincix
sulincix / socket-stat.sh
Last active February 10, 2026 14:26
Unix socket open stat
#!/bin/bash
ss -p -x | grep -Eo '".+"' | sort | uniq -c | tr -s " " | sort -Vr | head -n 10
@sulincix
sulincix / pam_otp.py
Last active December 29, 2025 13:55
libpam-python otp auth
#!/usr/bin/env python3
import os
import pwd
import grp
import traceback
import pyotp
import json
"""
{