Skip to content

Instantly share code, notes, and snippets.

View Xumeiquer's full-sized avatar
🏠
Working from home

Jaume Martin Xumeiquer

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xumeiquer on github.
  • I am xumeiquer (https://keybase.io/xumeiquer) on keybase.
  • I have a public key ASCRia85gI0-E2I24aTUqv_NoH7Nd7HB_pP9QCwF3IBWQwo

To claim this, I am signing this object:

# $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 -s 2048 -O 2048
modprobe ubi
@Xumeiquer
Xumeiquer / tinc-install.sh
Created March 5, 2021 22:24
Tinc VPN installation wizard
#!/bin/bash
#
# Tinc install script
#
# Original: https://gist.github.com/jpillora/9069c7421fd70a4dae92
#
# Adapted by Xumeiquer
#
# Version: 1.0
# Version: 1.1
@Xumeiquer
Xumeiquer / client.go
Last active November 18, 2018 23:01
Simple DNS Client to perform covert channel
package main
import (
"encoding/hex"
"flag"
"fmt"
"log"
"os"
"strings"
@Xumeiquer
Xumeiquer / server.go
Last active November 18, 2018 23:01
Simple DNS Server to perform covert channel
package main
import (
"encoding/hex"
"flag"
"fmt"
"log"
"strings"
"github.com/miekg/dns"
@Xumeiquer
Xumeiquer / yara-spliter.py
Created February 7, 2018 20:02
This script splits up a Yara rule file in several files with a specific number of rules on them.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import uuid
from collections import deque
# Motify this as the number of rules per file