Skip to content

Instantly share code, notes, and snippets.

View dtrip's full-sized avatar

Dtrip dtrip

  • Your neck
View GitHub Profile
@dtrip
dtrip / google-dorks
Last active December 14, 2019 00:32 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@dtrip
dtrip / rijndael.py
Created April 7, 2017 13:13 — forked from jeetsukumaran/rijndael.py
Pure-Python implementation of Rijndael (AES) cipher.
#############################################################################
# Original code ported from the Java reference code by Bram Cohen, April 2001,
# with the following statement:
#
# this code is public domain, unless someone makes
# an intellectual property claim against the reference
# code, in which case it can be made public domain by
# deleting all the comments and renaming all the variables
#
class Rijndael(object):
@dtrip
dtrip / v4.3-surface-pro-3.patch
Last active October 25, 2015 22:15
Linux Kernel 4.3 patch for surface pro 3 support: Multi-touch, front/back camera, home/power/volume buttons, typecover and battery
commit 821564bf400db6f7fe3f9a5905c6e9cbe84639f6
Author: Dtrip <[email protected]>
Date: Sun Oct 25 15:11:41 2015 -0700
patch for surface pro 3
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 70a11ac..f54d53d 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@dtrip
dtrip / ping.py
Created October 14, 2015 08:05 — forked from pklaus/ping.py
A pure python ping implementation using raw socket.
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping
@dtrip
dtrip / color.rb
Last active August 29, 2015 14:24
msfconsole background colors - powerarrows prompt
# To have background colors added to msfconsole
# add the follow lines to: /opt/metasploit-framework/lib/rex/ui/text/color.rb
# on line 78 (as of 4.11.3-dev)
#
# Protip: You'll probably need powerline fonts installed
# https://github.com/powerline/fonts
str.gsub!(/%bgblu/, pre_color+colorize('on_blue')+post_color)
str.gsub!(/%bgyel/, pre_color+colorize('on_yellow')+post_color)
str.gsub!(/%bggrn/, pre_color+colorize('on_green')+post_color)
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/share/rbenv
# Add rbenv to the path:
@dtrip
dtrip / wordlist.txt
Created April 1, 2015 03:46
Password list - Thanks to: Pr0x13 <https://github.com/Pr0x13>
Password1
Princess1
P@ssw0rd
Passw0rd
Michael1
Blink182
!QAZ2wsx
Charlie1
Anthony1
1qaz!QAZ
@dtrip
dtrip / find_and_replace_in_files.sh
Created March 24, 2015 08:45
Shell script to recursively find & replace text string in files
# *****************************************************************************************
# find_and_replace_in_files.sh
# This script does a recursive, case sensitive directory search and replace of files
# To make a case insensitive search replace, use the -i switch in the grep call
# uses a startdirectory parameter so that you can run it outside of specified directory - else this script will modify itself!
#
# Thanks to: Eliah Kagan <http://askubuntu.com/users/22949/eliah-kagan>
#
# *****************************************************************************************
@dtrip
dtrip / gist:b00ac232564f860e93b2
Created March 19, 2015 21:13
Private internet access - Port Forwarding - Bash
#!/bin/bash
# Bash script to get a port forwarded from privateinternetaccess.com
#
# If running for the first time, you want to run this line right quick
# $ head -n 100 /dev/urandom | md5sum | tr -d " -" > ~/.pia_client_id
#
# http://bit.ly/1xCHso9
# Dtripp
#