start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping |
| #!/usr/bin/env python | |
| import socket | |
| import threading | |
| import select | |
| import sys | |
| terminateAll = False | |
| class ClientThread(threading.Thread): |
| #!/usr/bin/env python | |
| import os | |
| import requests | |
| import uuid | |
| from random import randint | |
| from uuid import uuid4 | |
| def read_in_chunks(file_object, chunk_size=65536): | |
| while True: |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from werkzeug.wrappers import Request, Response | |
| from werkzeug.wsgi import responder | |
| from werkzeug.serving import run_simple | |
| from werkzeug.routing import Map, Rule | |
| from StringIO import StringIO | |
| from httplib import HTTPResponse | |
| import requests |
| #! /usr/bin/env python | |
| import os, socket, thread, select | |
| __version__ = '0.1.0 Draft 1' | |
| BUFLEN = 8192 | |
| VERSION = 'Python Proxy/'+__version__ | |
| HTTPVER = 'HTTP/1.1' | |
| class ConnectionHandler: |
| #!/usr/bin/python2 | |
| """ | |
| Use scapy to modify packets going through your machine. | |
| Based on nfqueue to block packets in the kernel and pass them to scapy for validation | |
| """ | |
| import nfqueue | |
| from scapy.all import * | |
| import os |
| # Constants - taken from dpkt/ssl.py | |
| import struct | |
| # SSLv3/TLS versions | |
| SSL3_V = 0x0300 | |
| TLS1_V = 0x0301 | |
| TLS11_V = 0x0302 | |
| TLS12_V = 0x0303 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | |
| # vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4 | |
| """ | |
| THIS CODE IS OUTDATED! Please use this instead: | |
| https://pypi.org/project/pyuac/ | |
| https://github.com/Preston-Landers/pyuac |
| import socket | |
| import random | |
| import time | |
| import sys | |
| log_level = 2 | |
| def log(text, level=1): | |
| if log_level >= level: | |
| print(text) |