sudo apt-get install libtool autoconf automake
sudo apt-get remove protobuf-compiler
git clone https://github.com/google/protobuf
cd protobuf
./autogen.sh
| 04bef3edd3141dea213a0da5b4280a2b19e24e9e3c1cc17a5aa7f72f8f6fc9b7853be8e27fed8883337e5c5c010f613c7bda350491ff92ce01eebb8f8ada89143f |
| #!/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 |
| # /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" |
| # 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" |
| // 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: |
| package main | |
| import ( | |
| "bufio" | |
| "errors" | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "strconv" | |
| "strings" |
| #!/bin/bash | |
| # https://cloud.google.com/compute/docs/faq#find_ip_range | |
| # nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
| myarray=() | |
| for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
| do | |
| myarray+=($LINE) | |
| for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |
| # PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/ | |
| # tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c | |
| # the most up-to-date version of PowerView will always be in the dev branch of PowerSploit: | |
| # https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1 | |
| # New function naming schema: | |
| # Verbs: | |
| # Get : retrieve full raw data sets | |
| # Find : ‘find’ specific data entries in a data set |