This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import datetime | |
| import json | |
| import argparse | |
| import logging | |
| from collections import namedtuple | |
| try: | |
| from elasticsearch import Elasticsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import sys | |
| import json | |
| import os | |
| def out(text, *args): | |
| print(text % args) | |
| HOST = "http://127.0.0.1:9200" | |
| QUERY = "_nodes/stats" | |
| NODE = 'data' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from itertools import chain | |
| def model_to_dict(instance, fields=None, exclude=None): | |
| """ | |
| Returns a dict containing the data in ``instance`` suitable for passing as | |
| a Form's ``initial`` keyword argument. | |
| ``fields`` is an optional list of field names. If provided, only the named | |
| fields will be included in the returned dict. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import datetime | |
| import json | |
| import copy | |
| import argparse | |
| import logging | |
| try: | |
| from elasticsearch import Elasticsearch | |
| except ImportError: | |
| print("Please install elasticsearch-py first") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| from winappdbg import Process, System | |
| import sys | |
| import time | |
| import ctypes.util | |
| if __name__ == '__main__': | |
| python_lib = "python{0}{1}.dll".format(sys.version_info.major, sys.version_info.minor) | |
| python_dll = ctypes.util.find_library(python_lib) | |
| s = System() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| import ctypes | |
| from ctypes.wintypes import * | |
| LPVOID = ctypes.c_void_p | |
| PVOID = LPVOID | |
| PSID = PVOID | |
| LPDWORD = ctypes.POINTER(DWORD) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import datetime | |
| import json | |
| import argparse | |
| import logging | |
| try: | |
| from elasticsearch import Elasticsearch | |
| except ImportError: | |
| print("Please install elasticsearch-py first") | |
| sys.exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| import json | |
| import sys | |
| import pprint | |
| import argparse | |
| import cStringIO | |
| import tarfile | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("-g", "--grep") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import logging.handlers | |
| import argparse | |
| import socket | |
| def arguments(): | |
| parser = argparse.ArgumentParser(__file__, description='syslog logger') | |
| parser.add_argument("--address", "-n", default="localhost") |
NewerOlder