|
| 1 | +import base64 |
| 2 | +import binascii |
| 3 | +import collections |
| 4 | +import json |
| 5 | +import os |
| 6 | +import re |
| 7 | +import socket |
| 8 | +import ssl |
| 9 | +import struct |
| 10 | +import textwrap |
| 11 | +import time |
| 12 | +import urllib |
| 13 | +import zlib |
| 14 | + |
1 | 15 | from pocsuite3.lib.controller.controller import start |
2 | | -from pocsuite3.lib.core.common import (encoder_bash_payload, check_port, |
| 16 | +from pocsuite3.lib.core.common import (OrderedDict, OrderedSet, check_port, |
| 17 | + encoder_bash_payload, |
3 | 18 | encoder_powershell_payload, get_host_ip, |
4 | | - get_host_ipv6, single_time_warn_message) |
| 19 | + get_host_ipv6, mosaic, |
| 20 | + single_time_warn_message, urlparse) |
5 | 21 | from pocsuite3.lib.core.data import conf, kb, logger, paths |
6 | 22 | from pocsuite3.lib.core.datatype import AttribDict |
7 | | -from pocsuite3.lib.core.common import OrderedSet, OrderedDict, mosaic, urlparse |
8 | 23 | from pocsuite3.lib.core.enums import PLUGIN_TYPE, POC_CATEGORY, VUL_TYPE |
9 | 24 | from pocsuite3.lib.core.interpreter_option import (OptBool, OptDict, OptFloat, |
10 | 25 | OptInteger, OptIP, OptItems, |
|
17 | 32 | from pocsuite3.lib.core.settings import DEFAULT_LISTENER_PORT |
18 | 33 | from pocsuite3.lib.request import requests |
19 | 34 | from pocsuite3.lib.utils import (generate_shellcode_list, get_middle_text, |
20 | | - random_str, minimum_version_required) |
| 35 | + minimum_version_required, random_str) |
| 36 | +from pocsuite3.lib.yaml.nuclei import Nuclei |
21 | 37 | from pocsuite3.modules.censys import Censys |
22 | 38 | from pocsuite3.modules.ceye import CEye |
23 | 39 | from pocsuite3.modules.fofa import Fofa |
24 | 40 | from pocsuite3.modules.httpserver import PHTTPServer |
25 | | -from pocsuite3.modules.listener import (REVERSE_PAYLOAD, BIND_PAYLOAD, bind_shell, |
26 | | - bind_tcp_shell, bind_telnet_shell) |
27 | | -from pocsuite3.modules.quake import Quake |
28 | 41 | from pocsuite3.modules.hunter import Hunter |
| 42 | +from pocsuite3.modules.interactsh import Interactsh |
| 43 | +from pocsuite3.modules.listener import (BIND_PAYLOAD, REVERSE_PAYLOAD, |
| 44 | + bind_shell, bind_tcp_shell, |
| 45 | + bind_telnet_shell) |
| 46 | +from pocsuite3.modules.quake import Quake |
29 | 47 | from pocsuite3.modules.seebug import Seebug |
30 | 48 | from pocsuite3.modules.shodan import Shodan |
31 | 49 | from pocsuite3.modules.spider import crawl |
32 | 50 | from pocsuite3.modules.zoomeye import ZoomEye |
33 | | -from pocsuite3.modules.interactsh import Interactsh |
34 | 51 | from pocsuite3.shellcodes import OSShellcodes, WebShell |
35 | 52 |
|
36 | | -__all__ = ('requests', 'PluginBase', 'register_plugin', 'PLUGIN_TYPE', |
37 | | - 'POCBase', 'Output', 'AttribDict', 'POC_CATEGORY', 'VUL_TYPE', |
38 | | - 'register_poc', 'conf', 'kb', 'logger', 'paths', 'minimum_version_required', |
39 | | - 'DEFAULT_LISTENER_PORT', 'load_file_to_module', 'OrderedDict', 'OrderedSet', |
40 | | - 'load_string_to_module', 'single_time_warn_message', 'CEye', |
41 | | - 'Seebug', 'ZoomEye', 'Shodan', 'Fofa', 'Quake', 'Hunter', 'Censys', |
42 | | - 'PHTTPServer', 'REVERSE_PAYLOAD', 'BIND_PAYLOAD', 'get_listener_ip', 'mosaic', |
43 | | - 'urlparse', 'get_listener_port', 'get_results', 'init_pocsuite', |
44 | | - 'start_pocsuite', 'get_poc_options', 'crawl', 'OSShellcodes', |
45 | | - 'WebShell', 'OptDict', 'OptIP', 'OptPort', 'OptBool', 'OptInteger', |
46 | | - 'OptFloat', 'OptString', 'OptItems', 'get_middle_text', |
47 | | - 'generate_shellcode_list', 'random_str', 'encoder_bash_payload', 'check_port', |
48 | | - 'encoder_powershell_payload', 'get_host_ip', 'get_host_ipv6', 'bind_shell', |
49 | | - 'bind_tcp_shell', 'bind_telnet_shell', 'Interactsh') |
50 | | - |
51 | 53 |
|
52 | 54 | def get_listener_ip(): |
53 | 55 | return conf.connect_back_host |
|
0 commit comments