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 / Hacker News : 'Basic SEO'
Created February 22, 2012 03:06
Relevant comments from Hacker News 'Basic SEO' post
Source: http://news.ycombinator.com/item?id=1176294
andrewljohnson 715 days ago | link
0. The zeroth rule of SEO is get your site listed for a search for your site. If your site is bobsfishingtips.com, make sure if someone searches for Bob's Fishing Tips, you get found. This means simply getting at least one real site to link the name of your site to you, or maybe a couple sites if you have some common word like Yelp.
1. After that, make sure people link to you with proper anchor text for other keywords. If you want people to search for "fishing tips" and find you, then several people will need to link you something like this:
This site has great <a href=http://www.mysite.com>fishing tips</a>.
@0xdevalias
0xdevalias / delegates-chaining-notifications.md
Last active December 14, 2015 16:19
Some info/links I found useful in regards to iOS Delegates, Delegation Chaining and Notifications
@0xdevalias
0xdevalias / sidepanel-slidemenu-options.md
Last active December 14, 2015 16:19
A gist to keep track of the slide/side menu/panel implementations I come across in some kind of central/manageable way
@0xdevalias
0xdevalias / 1_console
Last active December 18, 2015 13:38
Things I learned the hard way with Rails # 1. Generate your model, make all manual edits, and only AFTER you have done this, run rake db:migrate
rails g model identity name:string email:string password_digest:string
@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"
@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 / 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 / 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 / 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 / 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