Skip to content

Instantly share code, notes, and snippets.

View synackme's full-sized avatar

Landon Mayo synackme

  • Houston, Tx
View GitHub Profile
#!/usr/bin/python
import sys, subprocess, getopt
if len(sys.argv) != 2:
print "Usage: osx_add_user_to_group.py <user>"
sys.exit(1)
for arg in sys.argv[1:]:
bashCommand1 = "sudo dseditgroup -o edit -a %s -t user admin" % sys.argv[1]
bashCommand2 = "sudo dseditgroup -o edit -a %s -t user wheel" % sys.argv[1]
@synackme
synackme / gaf_external_ip.sh
Created July 9, 2015 16:16
dump GAF external range
seq -f "63.118.77.%g" 0 255 & seq -f "65.223.143.%g" 0 255 & seq -f "12.238.39.%g" 128 254
@synackme
synackme / install_dradis3.sh
Last active August 29, 2015 14:24
Install Dradis Community
mkdir dradis3-git
cd dradis3-git/
git clone https://github.com/dradis/dradisframework
cd dradisframework/
rm Gemfile.lock
git checkout release-3.0
@ajinabraham
ajinabraham / gifjs.asm
Last active November 16, 2023 07:20
A Valid GIF and JS file
; a hand-made GIF containing valid JavaScript code
; abusing header to start a JavaScript comment
; inspired by Saumil Shah's Deadly Pixels presentation
; Ange Albertini, BSD Licence 2013
; yamal gifjs.asm -o img.gif
WIDTH equ 10799 ; equivalent to 2f2a, which is '/*' in ASCII, thus starting an opening comment

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

# chat server using multicast
# python fork of the original ruby implementation
# http://tx.pignata.com/2012/11/multicast-in-ruby-building-a-peer-to-peer-chat-system.html
# receiver.py
# usage : $ python receiver.py # wait for messages to come in
import socket
import struct
multicast_addr = '224.0.0.1'
@petehamilton
petehamilton / hashcrack.rb
Created February 11, 2013 17:16
Ruby md5 passw3ord cracker. Brute force, character product, recursive yielding and base-n techniques
#! /usr/env/ruby
require "benchmark"
require 'digest/md5'
# The password hash to crack
password_hash = "e1f3ecc31656795a128db19da490c9ec"
# Helper for hashing passwords
def md5(password)
Digest::MD5.hexdigest(password)
@asmega
asmega / gist:3394155
Created August 19, 2012 10:24
update mlocate locate database for mac
sudo /usr/libexec/locate.updatedb
@g3d
g3d / gist:2709563
Last active February 7, 2024 15:21 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#