Skip to content

Instantly share code, notes, and snippets.

View ubogdan's full-sized avatar

Bogdan U ubogdan

View GitHub Profile
04bef3edd3141dea213a0da5b4280a2b19e24e9e3c1cc17a5aa7f72f8f6fc9b7853be8e27fed8883337e5c5c010f613c7bda350491ff92ce01eebb8f8ada89143f
@ubogdan
ubogdan / system_uuid.sh
Created July 11, 2018 21:14 — forked from bencord0/system_uuid.sh
Unique id for a linux system
#!/bin/bash
cat /var/lib/dbus/machine-id && exit
# Provided by dbus, hence available on all systemd systems.
# Any user can read it and it is persistent accross boots.
# It is unique per installation, and works well in VMs.
# Not all systems (i.e. stage3 gentoo/handbook install)
# have dbus installed by default.
cat /sys/class/dmi/id/product_uuid && exit
@ubogdan
ubogdan / protobuf-install.md
Last active August 27, 2018 07:50
Protobuff 3 - Linux Mint

Prepare env

sudo apt-get install libtool autoconf automake
sudo apt-get remove protobuf-compiler

Download , compile, install !

git clone https://github.com/google/protobuf
cd protobuf
./autogen.sh
@ubogdan
ubogdan / 99-usb-serial.rules
Created September 8, 2018 18:41 — forked from cbrake/99-usb-serial.rules
USB Serial udev rules
# /etc/udev/rules.d/99-usb-serial.rules
# udevadm info --attribute-walk -n /dev/ttyUSB0 |grep serial (can be used to get serial number)
# udevadm control --reload-rules (reload rules)
# udevadm trigger (re-add all devices)
# see https://wiki.archlinux.org/index.php/Bus_pirate
# for some reason, ATTRS{bInterfaceNumber}=="00" is not working, hence the use of ENV{}
# single USB/serial adapters
SUBSYSTEM=="tty", ATTRS{serial}=="A900TUKZ", SYMLINK+="ttyUSB_bub_1"
SUBSYSTEM=="tty", ATTRS{serial}=="A700fdWb", SYMLINK+="ttyUSB_bub_2"
@ubogdan
ubogdan / 45-u2f.rules
Created November 14, 2018 13:02
udev rules for u2f
# Copyright (C) 2013-2015 Yubico AB
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
package function
import (
"crypto/tls"
"encoding/json"
"fmt"
"net"
"net/url"
"os"
"strings"

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ubogdan
ubogdan / ida_plugins.md
Created August 11, 2019 09:03
A list of IDA Plugins

A list of IDA Plugins

I'll be organizing the plugins over time. Please submit PRs if you have any other outstanding plugins. I would like to tag each plugin with its corresponding IDA version, but it will take me a long time to test. If you can help there, please do.

If a plugin is only a source repo with no description or documentation, I am not adding it.

TODO

  • Add more plugins
  • Categorize plugins
// ValidAS takes an int and returns true if valid or false if not.
func ValidAS(a int) bool {
// we'll make some basic oversimplicifcations and include unassigned space as valid for convienience.
// not valid yet, but more valid than doc and reserved space.
switch {
case a == 0:
return false
case a > 1 && a < 64496:
@ubogdan
ubogdan / simple_shell.go
Created August 7, 2020 16:32 — forked from bxcodec/simple_shell.go
Simple Shell With Custom
package main
import (
"bufio"
"errors"
"fmt"
"os"
"os/exec"
"strconv"
"strings"