Skip to content

Instantly share code, notes, and snippets.

View ubogdan's full-sized avatar

Bogdan Ungureanu ubogdan

View GitHub Profile
@ubogdan
ubogdan / PowerView-3.0-tricks.ps1
Created January 17, 2021 18:11 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# 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
@ubogdan
ubogdan / list_gcp_iprange.sh
Created December 9, 2020 21:08 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/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 :`
@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"
// 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 / 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

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:

package function
import (
"crypto/tls"
"encoding/json"
"fmt"
"net"
"net/url"
"os"
"strings"
@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
@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 / 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