forked from ivre/ivre
-
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.
Merge pull request ivre#1609 from p-l-/enh-httpx-headers-body
Active/httpx: support headers & body reported with `-irr` flag
- Loading branch information
Showing
22 changed files
with
328 additions
and
220 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /usr/bin/env python | ||
|
||
# This file is part of IVRE. | ||
# Copyright 2011 - 2023 Pierre LALET <[email protected]> | ||
# Copyright 2011 - 2024 Pierre LALET <[email protected]> | ||
# | ||
# IVRE is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by | ||
|
@@ -1077,7 +1077,9 @@ def handle_http_content( | |
path: str = "/", | ||
) -> None: | ||
title_m = _EXPR_TITLE.search(data) | ||
if title_m is not None: | ||
if title_m is not None and not any( | ||
s["id"] == "http-title" for s in port.get("scripts", []) | ||
): | ||
title = nmap_encode_data(title_m.groups()[0]) | ||
port.setdefault("scripts", []).append( | ||
{ | ||
|
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /usr/bin/env python | ||
|
||
# This file is part of IVRE. | ||
# Copyright 2011 - 2023 Pierre LALET <[email protected]> | ||
# Copyright 2011 - 2024 Pierre LALET <[email protected]> | ||
# | ||
# IVRE is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by | ||
|
@@ -234,8 +234,7 @@ def _get(self, spec, limit=None, skip=None, sort=None, fields=None): | |
if not data: | ||
break | ||
if limit is None: | ||
for rec in data: | ||
yield rec | ||
yield from data | ||
else: | ||
for rec in data: | ||
yield rec | ||
|
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
Oops, something went wrong.