start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| # https://gist.github.com/949831 | |
| # http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
| # command line OTA distribution references and examples | |
| # http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
| # http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
| # http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
| # http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| ########################################################################### | |
| # Rotating bits (tested with Python 2.7) | |
| from __future__ import print_function # PEP 3105 | |
| # max bits > 0 == width of the value in bits (e.g., int_16 -> 16) | |
| # Rotate left: 0b1001 --> 0b0011 | |
| rol = lambda val, r_bits, max_bits: \ | |
| (val << r_bits%max_bits) & (2**max_bits-1) | \ |
| #!/usr/bin/env python | |
| # Joshua J. Drake (@jduck) of ZIMPERIUM zLabs | |
| # Shout outs to our friends at Optiv (formerly Accuvant Labs) | |
| # (C) Joshua J. Drake, ZIMPERIUM Inc, Mobile Threat Protection, 2015 | |
| # www.zimperium.com | |
| # | |
| # Exploit for RCE Vulnerability CVE-2015-1538 #1 | |
| # Integer Overflow in the libstagefright MP4 'stsc' atom handling | |
| # | |
| # Don't forget, the output of "create_mp4" can be delivered many ways! |
| #Requires -RunAsAdministrator | |
| #Requires -Version 5.0 | |
| # requires Windows 10 | |
| Get-EtwTraceProvider | Select-Object SessionName, Guid | sort SessionName | |
| # as Markdown | |
| <# | |
| #Requires -RunAsAdministrator | |
| $result = Get-EtwTraceProvider | sort SessionName | |
| $result | %{"|Name|GUID|";"|----|----|";}{"|$($_.SessionName)|$($_.Guid)|"} | |
| #> |
| $EventFilterArgs = @{ | |
| EventNamespace = 'root/cimv2' | |
| Name = 'PowerShellProcessStarted' | |
| Query = 'SELECT FileName, ProcessID FROM Win32_ModuleLoadTrace WHERE FileName LIKE "%System.Management.Automation%.dll"' | |
| QueryLanguage = 'WQL' | |
| } | |
| $Filter = New-CimInstance -Namespace root/subscription -ClassName __EventFilter -Property $EventFilterArgs | |
| $CommandLineConsumerArgs = @{ |
| function ConvertTo-Rc4ByteStream { | |
| <# | |
| .SYNOPSIS | |
| Converts an input byte array to a RC4 cipher stream using the specified key. | |
| Author: @harmj0y | |
| License: BSD 3-Clause | |
| Required Dependencies: None | |
| Optional Dependencies: None |
| [Colors] | |
| AbstractTableViewBackgroundColor=#002B36 | |
| AbstractTableViewHeaderTextColor=#657B83 | |
| AbstractTableViewSelectionColor=#073642 | |
| AbstractTableViewSeparatorColor=#808080 | |
| AbstractTableViewTextColor=#657B83 | |
| DisassemblyAddressBackgroundColor=#002B36 | |
| DisassemblyAddressColor=#657B83 | |
| DisassemblyAutoCommentBackgroundColor=#XXXXXX | |
| DisassemblyAutoCommentColor=#85833A |