Memcache命令行和实用程序模块检查

memcacheinspector3的Python项目详细描述


简介

这是一个支持python3的https://github.com/jayclassless/memcacheinspector分支。pypi上的包是“memcacheinspector 3”,但导入的模块仍然是“memcacheinspector”

此套餐包括两项内容:

  • 用于从Memcached服务器提取密钥的Python模块。在
  • 用于探索、搜索和更新Memcached项的命令行实用程序。在

此实用程序使用SensePost Blog中讨论的Memcached状态“特性”。在

安装

使用pip(推荐):

$ pip install memcacheinspector3

或者,您可以下载源代码并手动安装:

^{pr2}$

安装该包将同时安装memcacheinspector python模块和mcinspect命令行实用程序。在

要求

使用

Usage: mcinspect [options] <action> [<arguments>]

Actions:
  list                     Lists all items stored in the server(s).
  dump                     Dumps all items (including values) stored in the
                           server(s).
  grep <pattern>           Dumps all items (including values) whose key or value
                           matches the specified search pattern.
  get <key> [<key> ...]    Retrieves the items with the specified key(s).
  set <key> <value>        Sets the item with the specified key and value.
  incr key                 Increments the value of the items with the specified
                           key(s).
  decr key                 Decrements the value of the items with the specified
                           key(s).
  delete <key> [<key> ...] Deletes the items with the specified key(s).
  flush                    Expires all items in the server(s).
  stats                    Retrieves statistics from the server(s).

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -s SERVER, --server=SERVER
                        Specifies a server to connect to. Can be used multiple
                        times. Defaults to '127.0.0.1:11211'.
  -z MAX_VALUE_SIZE, --max-value-size=MAX_VALUE_SIZE
                        The maximum size (in bytes) of a value can be when
                        performing a list or dump action. Zero or lower is
                        interpreted as no limit. Defaults to 0.
  -d DELTA, --delta=DELTA
                        The amount to change the value when using the incr or
                        decr actions. Defaults to 1.
  -i, --ignore-case     Ignore case distinctions in both the pattern and the
                        items during the grep action.
  -v, --invert-match    Inverts the sense of matching, to select non-matching
                        items during the grep action.

Output Format:
  list:
    <server connection string>|<expiration date>|<size in bytes>|<key>

  dump, grep:
    <server connection string>|<expiration date>|<size in bytes>|<key>
    <value>

  get, set, incr, decr:
    <server connection string>|<key>
    <value>

  delete:
    <server connection string>|<key>

  flush:
    <server connection string>

  stats:
    <server connection string>|<statistic key>|<value>

许可证

memcacheinspector在MIT License下发布。请参阅许可证文件以获取许可证的全文。在

参考文献

https://github.com/brondsem/memcacheinspector/tree/fork

http://pypi.python.org/pypi/memcacheinspector3/

http://www.python.org/

http://memcached.org/

https://pypi.org/project/python-memcached/

https://pip.pypa.io/

https://sensepost.com/blog/2010/blackhat-write-up-go-derper-and-mining-memcaches/

http://www.opensource.org/licenses/mit-license.php

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将json反序列化为列表<Object>   Spring框架中的java回滚机制   java如何使反射在JDK 16及更高版本上工作?   java终结器如何导致可移植性问题?   java Hibernate使用ON子句或alternative左连接获取   java aws codebuild maven项目失败“保存的引用不明确”   并发Java多线程读取单个大文件   java如果输入仅由1和0组成,请将其从二进制转换为十进制   java在RealmRecyServiceAdapter上调用updateData实际上并没有更新数据   javajsf:h commandlink操作是打开同一页面的新弹出窗口,而不是调用bean方法   java我们可以为其中一个变量同时添加@Column和@OneToOne注释吗?   java JBoss AS 7自定义登录模块从未调用   如何检查Java中是否存在数组中的元素   java Spring重试:未调用带@Recover注释的方法   如何解析带有Java错误HTTP格式问题的php消息   java如何在weblogic中部署可选的包共享库   java将配置单元中的数据集保存为avro格式的合并列   用Guice注入java泛型   java单选按钮组和额外选项   javajackson:如何读取字符串作为列表?