Skip to content

Instantly share code, notes, and snippets.

View iwalfy's full-sized avatar

Mikhail Lebedinets iwalfy

View GitHub Profile
struct RxControl {
signed rssi: 8; /* signal intensity of packet */
unsigned rate: 4;
unsigned is_group: 1;
unsigned: 1;
unsigned sig_mode: 2; /* 0:is not 11n packet; non-0:is 11n packet; */
unsigned legacy_length: 12; /* if not 11n packet, shows length of packet. */
unsigned damatch0: 1;
unsigned damatch1: 1;
unsigned bssidmatch0: 1;

Here is how to disable The disk you attached was not readable by this computer. warning when drive with unknown filesystem connected to the Mac:

Works only on macOS 13 Ventura and newer!

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableUnreadableNotification -bool YES
#
# Some Serial Keys for iStat Menus 4.x
#
# iStat Menus 4.22 download links:
# https://s3.amazonaws.com/bjango/files/istatmenus4/istatmenus4.22.zip
# https://web.archive.org/web/20230212135516if_/https://s3.amazonaws.com/bjango/files/istatmenus4/istatmenus4.22.zip
#
uucy-fdcp-vxiw-420168-1713024936-4
lyna-pjek-cdrl-307693-1185848822-4
@iwalfy
iwalfy / classList.txt
Created December 30, 2023 09:13
List of all OS X SDK NS* classes (Framework.h, AppKit.h, Cocoa.h) from Sonoma 14.2.1
NSProxy
NSServiceViewControllerUnifyingProxy
NSVB_TargetedProxy
NSVB_ViewServiceImplicitAnimationDecodingProxy
NSVB_ViewServiceImplicitAnimationEncodingProxy
NSVB_ViewServiceBehaviorProxy
NSVB_ViewServiceReplyControlTrampoline
NSVB_ViewServiceReplyAwaitingTrampoline
NSVB_QueueingProxy
NSVB_ViewServiceFencingControlProxy
@iwalfy
iwalfy / alpine-wg.md
Last active May 11, 2024 01:33
WireGuard on Alpine Linux with IPv6 NAT (Russian)

WireGuard сервер на Alpine Linux с IPv6 NAT

Изначально я хотел выдавать каждому клиенту нормальный внешний IPv6 из подсетки, но оказалось что провайдер (BlueVPS) у которого я уже оплатил вдску на год вперед, дает сраные 4 айпишника (не /64 подсетки а тупо сраные /128 айпишники).

Конченная экономия на спичках когда IPv6 у всех как грязи, но уже ничего не поделать, все будут за натом.


Настройка сети

Открываем /etc/network/interfaces и делаем там следующее:

@iwalfy
iwalfy / efi_image_extract.sh
Last active September 29, 2023 10:22
Simple script to extract PNG image assets from Apple's EFI Firmwares using UEFIExtract and binwalk
#!/usr/bin/env bash
#
# Simple script to extract PNG assets from Apple's Mac EFI Firmware
# Works for all firmwares 2005-2021
#
# Requirements: pkgutil (for pkg firmwares), binwalk, find
#
# (c) Mikhail Lebedinets, 2023
#
#!/usr/bin/env python3
import requests
import os
import threading
try:
from BeautifulSoup import BeautifulSoup
except ImportError:
from bs4 import BeautifulSoup
@iwalfy
iwalfy / tg2bm.py
Last active June 26, 2023 07:52
Convert Telegram chat export to BAZMAN ready file
#!/usr/bin/env python3
#
# Convert Telegram chat export to BAZMAN ready file
# Version: 1.1
#
# (c) Catware-Foundation, 2022, 2023
# Mikhail Lebedinets, 2022, 2023
#
# 26.06.2023 - Added support for HTML exports
#
#!/usr/bin/env python3
import requests
from pyquery import PyQuery
FIRST_ARTICLE=1
LAST_ARTICLE=58340
def main():
f = open("opennet.txt", "a")
#!/usr/bin/env python3
#
# Simple script to convert macOS saves of Geometry Dash to Windows
#
import sys
import base64
import gzip
from Crypto.Cipher import AES
KEY = (