Skip to content

Instantly share code, notes, and snippets.

View miha-perfecto's full-sized avatar

Mikhail B. miha-perfecto

  • New Zeland
View GitHub Profile
@miha-perfecto
miha-perfecto / sh.md
Created July 7, 2025 06:23 — forked from amanjuman/sh.md
Debian 12 Netplan.io

Install Packages

sudo apt install netplan.io openvswitch-switch

Configure Netplan

nano /etc/netplan/network.yaml
network:
@miha-perfecto
miha-perfecto / airzoneserial.service
Created July 5, 2025 01:32 — forked from gpulido/airzoneserial.service
Python script to redirect data from TCP/IP to a serial port and vice versa
[Unit]
Description=Innobus python tcp serial port gateway
After=multi-user.target
[Service]
Type=idle
Restart=always
RestartSec=3
ExecStart=/usr/bin/python3 /home/pi/innobus/serial_forwarder.py
@miha-perfecto
miha-perfecto / eternalblue_exploit.py
Created May 31, 2025 16:43 — forked from minkione/eternalblue_exploit.py
MS17-010 NSA SHADOW BROKERS
#!/usr/bin/python
from impacket import smb
from struct import pack
import os
import sys
import socket
'''
EternalBlue exploit by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@miha-perfecto
miha-perfecto / debug_requests.py
Created May 19, 2025 14:56 — forked from Daenyth/debug_requests.py
Enable debug logging for python requests
import requests
import logging
import httplib
# Debug logging
httplib.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
req_log = logging.getLogger('requests.packages.urllib3')
req_log.setLevel(logging.DEBUG)
@miha-perfecto
miha-perfecto / createinstallmedia.md
Created February 8, 2025 13:44 — forked from windyinsc/createinstallmedia.md
Create a bootable installer for macOS

Create a bootable installer for macOS

The following instructions were predominantly sourced via this Apple Support Document.

With macOS, you can use a USB flash drive or other removable media as a startup disk from which to install macOS. These advanced steps are intended primarly for system administrators and others who are familiar with the command line.

The final executable command(s) are found within Section III. Final macOS Executable Commands labled as Full Example or Full Example w/Options. I personally use the w/Options command which include both the --nointeraction and &&say Installation commands.

I. Overview

@miha-perfecto
miha-perfecto / serial_asyncio_test.py
Created January 14, 2025 13:22 — forked from agners/serial_asyncio_test.py
Test serial_asyncio with socat
import asyncio
import serial_asyncio
import serial
class Output(asyncio.Protocol):
def connection_made(self, transport):
self.transport = transport
print('port opened', transport)
# This causes an exception
#transport.serial.rts = False
@miha-perfecto
miha-perfecto / reverse-engineering-macos.md
Created December 25, 2024 01:34 — forked from 0xdevalias/reverse-engineering-macos.md
Some notes, tools, and techniques for reverse engineering macOS binaries
@miha-perfecto
miha-perfecto / Mount Mtd FS
Created September 30, 2022 08:45 — forked from alangregory/Mount Mtd FS
How to mount ubifs image in Linux.
# $UBIFS is ubifs image file
# make sure $IMAGE is a ubifs image file
blkid $(IMAGE)
$(IMAGE): ... TYPE="ubifs"
# size of created mtd is 256.0 MiB
modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95
flash_erase /dev/mtd0 0 0
ubiformat /dev/mtd0
modprobe ubi

Install armhf debian system on qemu

Environment

Operation system: Ubuntu 16.04.6 LTS

QEMU emulator version: 2.5.0

Installation