Skip to content

Instantly share code, notes, and snippets.

View binarytrails's full-sized avatar
:octocat:
0x3a0x29

binarytrails

:octocat:
0x3a0x29
View GitHub Profile
@binarytrails
binarytrails / archinstall.md
Created December 8, 2019 23:03 — forked from xtrymind/archinstall.md
Windows 10 and Arch Linux dual boot with UEFI

Arch Linux installation (Windows 10 dual boot)

Before

  1. Disable Windows Fast-Startup
  2. Disable Secure Boot

Partitioning

@binarytrails
binarytrails / zathurarc
Created March 8, 2020 06:03 — forked from michaelmrose/zathu
zathura config
# Zathura configuration file
# See man `man zathurarc'
# Open document in fit-width mode by default
set adjust-open "best-fit"
# One page per row by default
set pages-per-row 1
#stop at page boundries
@binarytrails
binarytrails / housekeeping_images.sh
Created November 23, 2020 15:42 — forked from DaanGeurts/housekeeping_images.sh
Deleting unused images from Google Container Registry, leaving x number left
#!/bin/bash
# Copyright Β© 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@binarytrails
binarytrails / __main__.py
Created December 4, 2020 17:15 — forked from linuxluigi/__main__.py
Python __main__.py parser example
import argparse
# import data2tabshop
# from data2tabshop import __version__
__version__ = '0.1.0'
__author__ = u'Steffen Exler'
def get_parser():
@binarytrails
binarytrails / fetch_from_cloud_logging.sh
Created December 23, 2020 16:45 — forked from dovy/fetch_from_cloud_logging.sh
It's a REAL pain to figure out how to grab the data from Google cloud logging. This script lets you grab historic data and save locally so you can process since Cloud Logging Sync's won't do anything historic.
gcloud beta logging read "resource.type=\"dataflow_step\" resource.labels.job_id=\"2018-11-13_09_13_59-6912497806535022683\" OR \"timestamp>=\\\"2018-11-12T00:00:00Z\" OR \"timing:\" timestamp<=\"2200-01-01T00:00:00.000000000Z\" timestamp<\"2018-11-20T20:20:01.065Z\"" --format=json --limit 100000 | jq -rnc --stream 'fromstream(1|truncate_stream(inputs)) | .jsonPayload.message' >> gcs.txt
@binarytrails
binarytrails / edgerouter.md
Created January 20, 2021 17:26 — forked from jperkin/edgerouter.md
OpenBSD/octeon EdgeRouter Lite

This is a nifty little device for under Β£100 suitable for a home router.

I am using one running OpenBSD 6.8 for my AAISP PPPoE connection (avoiding the supplied VMG1312-B10A which has a number of issues).

Installation

I bought a SanDisk 16GB USB stick as there were reports the supplied USB stick isn't particularly reliable, plus it's nice to keep it separate in case of backup or selling the device in the future.

Download the OpenBSD miniroot68.img file system and dd(1) it, for example on macOS (assuming /dev/disk2):

@binarytrails
binarytrails / raceabrt.c
Created January 26, 2021 19:19 — forked from taviso/raceabrt.c
Race condition exploit for CVE-2015-1862
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdio.h>
#include <signal.h>
#include <err.h>
#include <string.h>
#include <alloca.h>
#include <limits.h>
#include <sys/inotify.h>

Ethereum Attacks

Security for internet applications is a spectrum, and it would be safe to assume that any application might have unnoticed vulnerabilities waiting to be exploited. Cryptocurrencies are especially attractive targets for hackers: because the technology is so novel, it is more likely to be hiding bugs, and the code usually interacts with tokens that have real-world value. Ethereum is no exception.

Attackers have successfully stolen ether using a number of tactics, which tend to aim at Ethereum smart contracts (written in Solidity), the network itself, cryptocurrency exchanges, or end users.

Attacks on Smart Contracts

The DAO

@binarytrails
binarytrails / selks6.conf
Last active February 10, 2021 23:43
selks6.conf
# https://github.com/StamusNetworks/SELKS/wiki/Kibana-did-not-load-properly
# replace '/etc/nginx/sites-available/selks6.conf'
server {
listen 127.0.0.1:80;
listen 127.0.1.1:80;
listen 443 default_server ssl;
ssl_certificate /etc/nginx/ssl/scirius.crt;
ssl_certificate_key /etc/nginx/ssl/scirius.key;
server_name SELKS;
access_log /var/log/nginx/scirius.access.log;
@binarytrails
binarytrails / gist:49d74a0ca9151ab262e004a45f0dfc9a
Created March 1, 2021 22:01 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ΰ² _ΰ² 
( Ν‘Β° ΝœΚ– Ν‘Β°)
Β―\_(ツ)_/Β―
(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons