GithubHelp home page GithubHelp logo

集成pocsuite时报错:pocsuite.lib.core.exception.PocsuiteDataException: unable to access item 'registeredPocs' about pocsuite HOT 4 CLOSED

knownsec avatar knownsec commented on May 24, 2024
集成pocsuite时报错:pocsuite.lib.core.exception.PocsuiteDataException: unable to access item 'registeredPocs'

from pocsuite.

Comments (4)

hysia avatar hysia commented on May 24, 2024

多个 Cannon 实例 就可以了

from pocsuite.

like-water avatar like-water commented on May 24, 2024

@hysia 在哪里多个Cannon实例

还有,test.py中的import TestPOC是我后加的,如果不加的话,报错
File "<TestPOC>", line 1, in <module> NameError: name 'sf' is not defined
这里的sf是我的"pocstring"对应的;

from pocsuite.

nixawk avatar nixawk commented on May 24, 2024

@like-water Please read https://github.com/knownsec/Pocsuite/wiki/How-to-use-the-cannon-api for details.

#!/usr/bin/python
# coding:utf-8

from pocsuite.api.cannon import Cannon
info = {"pocname": "dlink_command_php_exec_noauth",
        "pocstring": open("./modules/dlink_command_php_exec_noauth.py").read(),
        "mode": "verify"}

target = "www.justfordemo.com"
invoker = Cannon(target, info)
result = invoker.run()
print(result)

from pocsuite.

like-water avatar like-water commented on May 24, 2024

@nixawk 谢谢,ok了;
这样写跟我之前
` kb.registeredPocs = {}

import TestPOC`
info中pocstring随意写
效果一样吧,
还是有什么特别的优点?

from pocsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.