start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
ack | |
bundle | |
cat | |
cd | |
cd- | |
ceedling | |
cp | |
curl | |
diff | |
find |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
#install openssl | |
#sudo aptitude install python-openssl | |
from OpenSSL import SSL | |
import socket, SocketServer | |
class SSlSocketServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): | |
def __init__(self, server_address, RequestHandlerClass, bind_and_activate=True): | |
SocketServer.BaseServer.__init__(self, server_address, |
#!/usr/bin/ruby | |
require 'socket' | |
begin | |
addr = ['<broadcast>', 9] | |
UDPSock = UDPSocket.new | |
UDPSock.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true) | |
mac_address = ARGV[0] |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |