Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements & Bug fixes #323

Merged
merged 6 commits into from
Sep 8, 2022
Merged

Some improvements & Bug fixes #323

merged 6 commits into from
Sep 8, 2022

Conversation

13ph03nix
Copy link
Contributor

No description provided.

@13ph03nix
Copy link
Contributor Author

#321

Copy link
Contributor Author

@13ph03nix 13ph03nix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed by @13ph03nix

@13ph03nix
Copy link
Contributor Author

更新内容如下:

  1. 用户可以在 PoC 中自定义协议和默认端口,方便对 url 格式化。
from pocsuite3.api import *


class TestPOC(POCBase):
    protocol = POC_CATEGORY.PROTOCOL.HTTP
    protocol_default_port = '10000'

    def _verify(self):
        print(self.url)
        print(self.scheme)
        print(self.rhost)
        print(self.rport)
        print(self.netloc)


register_poc(TestPOC)

image

  1. 使用 -p 参数给目标添加额外端口,可同时提供协议
  2. 使用 -s 参数可以 skip target 本身的端口,只使用 -p 提供的端口,例如:

image

  1. poc-console 优化

@13ph03nix 13ph03nix merged commit 44394b2 into knownsec:master Sep 8, 2022
@13ph03nix 13ph03nix deleted the dev branch September 8, 2022 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant