sudo apt install netplan.io openvswitch-switch
nano /etc/netplan/network.yaml
network:
| [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 |
| #!/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) |
| 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) |
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.
| 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 |
Some notes, tools, and techniques for reverse engineering macOS binaries.
| # $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 |