Skip to content

Instantly share code, notes, and snippets.

View ubogdan's full-sized avatar

Bogdan U ubogdan

View GitHub Profile
ubogdan /
Created July 11, 2018 21:14 — forked from bencord0/
Unique id for a linux system
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 /
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
cd protobuf
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
# 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 / 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
package function
import (

Keybase proof

I hereby claim:

  • I am ubogdan on github.
  • I am ubogdan ( on keybase.
  • I have a public key ASAUoqqKBNU7yQVKtSxHt9Hgk8f70Gg9_JTBU0Z95WA4Zgo

To claim this, I am signing this object:

ubogdan /
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.


  • 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 / simple_shell.go
Created August 7, 2020 16:32 — forked from bxcodec/simple_shell.go
Simple Shell With Custom
package main
import (