Skip to content

Instantly share code, notes, and snippets.

View 0xdevalias's full-sized avatar
👀
Open to opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to opportunities
View GitHub Profile
@0xdevalias
0xdevalias / 1_OnapsisBizsploitNotes-README.md
Last active December 31, 2015 11:39
A collection of notes/exceptions/issues I've encountered while using Onapsis Bizsploit.

Onapsis Bizsploit Notes/Exceptions/Issues

A collection of notes/exceptions/issues I've encountered while using Onapsis Bizsploit.

@0xdevalias
0xdevalias / DevAlias-PentestEnvironmentSetup.sh
Last active October 15, 2024 07:27
My steps to setup a new pentest environment
# /dev/alias Pentest Environment Setup
# Version: 0.2 (20131211)
# Created By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
# TODO:
# * Option to check if tools (from this script and external) exist/are already installed and what versions
# * Eg nmap , metasploit, etc
# * Lair: https://github.com/fishnetsecurity/Lair
# * apt-get install python-pip
@0xdevalias
0xdevalias / NotesOnUSBPacketCapturing.txt
Last active June 24, 2022 15:33
Notes on USB packet capturing/interfacing/reverse engineering.
# Researched By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
USB Complete : The Developer's Guide, Fourth Edition, Jan Axelson
* http://www.lvr.com/usbc.htm
* http://www.amazon.com/USB-Complete-Developers-Guide-Guides/dp/1931448086
* https://itunes.apple.com/au/book/usb-complete-fourth-edition/id482722029?mt=11
http://learn.adafruit.com/hacking-the-kinect
@0xdevalias
0xdevalias / !HackingMadCatzStrike7
Last active June 26, 2022 03:04
Saitek/MadCatz Profile Editor/Firmware/Etc Information (C:\Program Files\SmartTechnology\Software) See also: http://strike7.proboards.com/thread/155/hacking-info-firmware-usb-chips
# Researched By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
See http://strike7.proboards.com/thread/155/hacking-info-firmware-usb-chips for more information/discussion.
**I don't expect anything, but if you would like to donate/tip via BTC (bitcoin): 14ab53HryRsD1VLRtmperwKDtQrQPbVA4B**
@0xdevalias
0xdevalias / README.md
Last active December 28, 2015 20:09
vFeed (https://github.com/toolswatch/vfeed) wrapper/helper scripts I put together to save a little time. For more info, see http://blog.devalias.net/post/67532513020/vfeed-wrapper-helper-scripts-for-speed-and-efficiency
@0xdevalias
0xdevalias / homebrew-metasploit-custom-requirement-example.rb
Created November 17, 2013 08:42
Example of how to create/use a custom requirement for homebrew (in this case, checking the version of the installed ruby version) Note: Code isn't necessarily 100% complete/clean, but should give you the basic idea.
require 'formula'
require 'requirement'
class Ruby192EqualGreater < Requirement
fatal true
# default_formula 'ruby'
satisfy {
ruby_ver_required = Version.new('1.9.2')
@0xdevalias
0xdevalias / python-urllib2-enable_ntlm_authentication.py
Created November 12, 2013 09:10
Python snippet showing how to enable NTLM authentication for urllib2 (Requires https://code.google.com/p/python-ntlm/)
def enable_ntlm_authentication(user = "", password = "", url = ""):
print "[+][devalias.net] Enabling NTLM authentication support"
# Import ntlm library
try:
# import ntlm
from ntlm import HTTPNtlmAuthHandler
print "[+][devalias.net][NTLM Authentication] NTLM Support Library Loaded!"
except ImportError:
print "[-][devalias.net][NTLM Authentication] Program could not find module : ntlm (Is the ntlm library installed/available locally?"
sys.exit (1)
@0xdevalias
0xdevalias / erpscan_automator.bat
Last active September 24, 2016 15:55
A quick little windows batch file to automate scanning a site with [ERPScan SAP Pentesting Tool](http://erpscan.com/products/erpscan-pentesting-tool/)
@echo off
@rem ----------------
@rem Config - Banner
@rem ----------------
set BAT_VER=0.1 (20130703)
set BANNER_DASH=--------------------------------
set BANNER_NAMEVER=Erpscan Automator v%BAT_VER%
set BANNER_BY=Created By: Glenn 'devalias' Grant (http://devalias.net)
set BANNER_UPDATES=Updates at: https://gist.github.com/alias1/6118709
set BANNER_LICENSE=License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
@0xdevalias
0xdevalias / Powershell_Reverse-SecureString.ps1
Created July 29, 2013 03:05
A little PowerShell function and example to show how easy it is to reverse a 'SecureString' when you store the password and key in a script for automation purposes.
# Reverse-SecureString
# Version: 1.0 (20130729)
# Created By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
function Reverse-SecureString([string]$secureString,[string]$key)
{
$objSecString=ConvertTo-SecureString -String $secureString -Key ([Byte[]]$key.Split(" "))
$secString=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($objSecString)
$plaintext=[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($secString)
return $plaintext
@0xdevalias
0xdevalias / nmap.sh
Last active September 26, 2016 12:45
A very simple script to make nmap scanning a little quicker to kick off.By Glenn '/dev/alias' Grant (devalias.net)
#!/bin/bash
echo "-----------------------------------------------"
echo "A very simple script to make nmap scanning a little quicker to kick off"
echo "By Glenn '/dev/alias' Grant (devalias.net)"
echo "v0.3"
echo "-----------------------------------------------"
_iphost=$1
_now=$(date +"%Y%m%d-%H%M")
_nmapopts="-A -vvv ${@:2}"
_nmapoptshidden="--webxml"