forked from knownsec/pocsuite3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
19 changes: 19 additions & 0 deletions
19
pocsuite3/lib/yaml/nuclei/protocols/common/interactsh/__init__.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from dataclasses import dataclass, field | ||
from pocsuite3.modules.interactsh import Interactsh | ||
from pocsuite3.lib.core.log import LOGGER as logger | ||
|
||
|
||
@dataclass | ||
class InteractshClient: | ||
client: Interactsh = field(default_factory=Interactsh) | ||
interactsh_protocol: list = field(default_factory=list) | ||
interactsh_request: list = field(default_factory=list) | ||
interactsh_response: list = field(default_factory=list) | ||
|
||
def poll(self) -> None: | ||
results = self.client.poll() | ||
for result in results: | ||
logger.debug(result) | ||
self.interactsh_protocol.append(result['protocol']) | ||
self.interactsh_request.append(result['raw-request']) | ||
self.interactsh_response.append(result['raw-response']) |
This file contains 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
This file contains 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