pupy/client/additional_imports.py

83 lines
1.2 KiB
Python
Raw Normal View History

import umsgpack
2015-09-21 19:53:37 +00:00
import socket
import threading
import Queue
import collections
import SocketServer
import struct
import os
import sys
import time
import traceback
import uuid
import subprocess
import StringIO
import imp
import hashlib
import hmac
2015-09-21 19:53:37 +00:00
import base64
import logging
import re
import ssl
import tempfile
import string
import datetime
import random
import shutil
import platform
import errno
import stat
2015-09-21 19:53:37 +00:00
import zlib
import code
import glob
import math
import binascii
import shlex
import json
import ctypes
import threading
2019-10-23 13:14:09 +00:00
import urlparse
2015-09-21 19:53:37 +00:00
import urllib
import urllib2
2016-03-16 22:17:03 +00:00
import getpass
import __future__
2016-11-21 22:26:15 +00:00
import netaddr
import urllib_auth
2019-05-27 07:35:05 +00:00
import http_parser
import unicodedata
2019-05-27 07:35:05 +00:00
try:
import psutil
except Exception as e:
print "psutil: ", e
2018-02-14 20:20:02 +00:00
import pyexpat
import fnmatch
2019-02-12 20:32:44 +00:00
try:
import dukpy
except ImportError:
print "dukpy not found"
try:
import kcp
2019-02-12 20:32:44 +00:00
except ImportError:
print "kcp not found"
try:
import uidle
2019-02-12 20:32:44 +00:00
except ImportError:
print "uidle not found"
2018-01-11 15:03:24 +00:00
import poster
if 'win' in sys.platform:
import ctypes.wintypes
2018-01-11 15:03:24 +00:00
import win_inet_pton
import winkerberos
else:
import pty
try:
import kerberos
except ImportError:
2019-10-27 08:47:30 +00:00
print "kerberos not found"