Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
Open to new opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to new opportunities
View GitHub Profile
@0xdevalias
0xdevalias / Hacker News : 'Basic SEO'
Created Feb 22, 2012
Relevant comments from Hacker News 'Basic SEO' post
View Hacker News : 'Basic SEO'
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 Dec 14, 2015
Some info/links I found useful in regards to iOS Delegates, Delegation Chaining and Notifications
View delegates-chaining-notifications.md
@0xdevalias
0xdevalias / sidepanel-slidemenu-options.md
Last active Dec 14, 2015
A gist to keep track of the slide/side menu/panel implementations I come across in some kind of central/manageable way
View sidepanel-slidemenu-options.md
@0xdevalias
0xdevalias / 1_console
Last active Dec 18, 2015
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
View 1_console
rails g model identity name:string email:string password_digest:string
@0xdevalias
0xdevalias / nmap.sh
Last active Sep 26, 2016
A very simple script to make nmap scanning a little quicker to kick off.By Glenn '/dev/alias' Grant (devalias.net)
View nmap.sh
#!/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 Jul 29, 2013
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.
View Powershell_Reverse-SecureString.ps1
# 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 Sep 24, 2016
A quick little windows batch file to automate scanning a site with [ERPScan SAP Pentesting Tool](http://erpscan.com/products/erpscan-pentesting-tool/)
View erpscan_automator.bat
@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 Nov 12, 2013
Python snippet showing how to enable NTLM authentication for urllib2 (Requires https://code.google.com/p/python-ntlm/)
View python-urllib2-enable_ntlm_authentication.py
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 Nov 17, 2013
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.
View homebrew-metasploit-custom-requirement-example.rb
require 'formula'
require 'requirement'
class Ruby192EqualGreater < Requirement
fatal true
# default_formula 'ruby'
satisfy {
ruby_ver_required = Version.new('1.9.2')
View README.md