Skip to content

Instantly share code, notes, and snippets.

@matteyeux
matteyeux / install_libimobiledevice.sh
Created January 7, 2019 12:39
Script to install libimobiledevice
#!/bin/bash
#######################################################################
#
# Project......: install_libimobiledevice.sh
# Creator......: Dev-Jam remasterized by matteyeux on 27/12/15
#######################################################################
echo -e "\033[31mDev-Jam 12/01/2015 - Script to build & install Libimobiledevice\033[0m"
echo -e "\033[32m\033[1m\033[4m\033[5m\033[7mCreated by Dev-Jam, improved by @matteyeux on 27/12/15\033[0m"
from ipaddress import *
ip, mask = '192.168.9.5', '255.255.255.0'
cidr = 24
host, net = IPv4Address(ip), IPv4Network(ip + '/' + mask, False)
sub = IPv4Address(int(host) & int(net.netmask))
sub_and_cidr = '{0}/{1}'.format(sub, cidr)
ips = ip_network(sub_and_cidr).hosts()
with open('ip.txt', 'w') as f:
for i in list(ips):
@matteyeux
matteyeux / iptables.sh
Created December 13, 2018 11:00 — forked from m4vr0x/iptables.sh
Proxmox iptables rules script
#!/bin/sh
# ---------
# VARIABLES
# ---------
## Proxmox bridge holding Public IP
PrxPubVBR="vmbr0"
## Proxmox bridge on VmWanNET (PFSense WAN side)
PrxVmWanVBR="vmbr1"
@matteyeux
matteyeux / build-xnu-4903.221.2.sh
Created December 11, 2018 08:04
A script to build XNU version 4903.221.2 (macOS High Sierra 10.13). Initial script by Brandon Azad.
#! /bin/bash
#
# build-xnu-4903.221.2.sh
# Initial script by Brandon Azad (https://gist.github.com/bazad/654959120a423b226dc564073b435453)
# Updated on 12/11/18 by matteyeux
#
# A script showing how to build XNU version 4570.1.46 on MacOS High Sierra
# 10.13 with Xcode 9.
#
# Note: This process will OVERWRITE files in Xcode's MacOSX10.13.sdk. Make a
jtool -lv random_file | head -n 1 | cut -d':' -f 4 | cut -f 1 -d -
python -c 'print(int("0x2000", 16))'
@matteyeux
matteyeux / sepsplit.c
Created October 7, 2018 21:33 — forked from xerub/sepsplit.c
/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>

Keybase proof

I hereby claim:

  • I am matteyeux on github.
  • I am matteyeux (https://keybase.io/matteyeux) on keybase.
  • I have a public key ASAS8hfRIfJy1lYL_UbssJhLKRoHCOZVfVN9zT0HRxyK_Ao

To claim this, I am signing this object:

No bootable disk

Usually problems with the boot are related to use gpt instead of mbr... you try to disable gpt support on installation? vi /opt/xensource/installer/constants.py ~line 99 Change GPT_SUPPORT = True -> GPT_SUPPORT = False

SMB ISO Lib

  • Right clic
  • Properties
  • Sharing
  • advanced
iic_init()
iic_set_clock(0) = 4
iic_set_clock(1) = 4
iic_set_clock(2) = 4
pmu0: read 40 from reg b0
pmu0: read 0 from reg a1
cdma_init()
arch_task_trampoline: task 0xbff7fa80 (uart reader) routine 0xbff186a1, arg 0x6
arch_task_trampoline: task 0xbff7fec0 (shmcon reader) routine 0xbff0e969, arg 0x0
arch_task_trampoline: task 0xbff80300 (main) routine 0xbff011b9, arg 0x0
@matteyeux
matteyeux / sign.md
Last active February 23, 2019 08:44

jtool -e arch -arch arm64 MTerminal

Après il faut récuperer les entitlements d'un autre binaire déjà signé genre ls
jtool --ent /bootstrap/bin/ls > ent

Puis je signe le Mterminal64 que j'ai extrait

jtool --sign --ent ent --inplace MTerminal.arch_arm64