(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
// | |
// AppDelegate.swift | |
// pushtest | |
// | |
// Created by sawapi on 2014/06/08. | |
// Copyright (c) 2014年 sawapi. All rights reserved. | |
// | |
// iOS8用 | |
import UIKit |
import UIKit | |
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
} | |
override func didReceiveMemoryWarning() { |
var crypto = require('crypto') | |
, key = 'your secret key here' | |
, plaintext = 'Text to be encrypted' | |
, cipher = crypto.createCipher('aes-256-cbc', key) | |
, decipher = crypto.createDecipher('aes-256-cbc', key); | |
var encryptedPassword = cipher.update(plaintext, 'utf8', 'base64'); | |
encryptedPassword += cipher.final('base64') | |
var decryptedPassword = decipher.update(encryptedPassword, 'base64', 'utf8'); |
#!/usr/bin/perl | |
# hb_honeypot.pl -- a quick 'n dirty honeypot hack for Heartbleed | |
# | |
# This Perl script listens on TCP port 443 and responds with completely bogus | |
# SSL heartbeat responses, unless it detects the start of a byte pattern | |
# similar to that used in Jared Stafford's (jspenguin@jspenguin.org) demo for | |
# CVE-2014-0160 'Heartbleed'. | |
# | |
# Run as root for the privileged port. Outputs IPs of suspected heartbleed scan |
function proxy () { | |
UNSET="" | |
PROXY="http://127.0.0.1:8080" | |
PROXY_ENV=(http_proxy https_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY) | |
if [ $1 == on ]; then | |
for i in $PROXY_ENV; do | |
export $i=$PROXY | |
done | |
echo "proxy set" | |
elif [ $1 == off ]; then |
#!/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 |