Skip to content

Fix preservation of scan id at scan init#1978

Merged
TheTechromancer merged 1 commit into
blacklanternsecurity:stablefrom
cmyui:patch-1
Nov 18, 2024
Merged

Fix preservation of scan id at scan init#1978
TheTechromancer merged 1 commit into
blacklanternsecurity:stablefrom
cmyui:patch-1

Conversation

@cmyui

@cmyui cmyui commented Nov 18, 2024

Copy link
Copy Markdown
Contributor

I was reading through the codebase & noticed this change happened here: 02acd94#diff-c6756c35a5fb1d7b87dc0ed3d33a2d211374dc196f245d26a362c82c8c346d5cR131

It looked like an unintentional regression, so I thought I'd open a pr to check

(id is a python builtin function, and str(id) returns):

cmyui@Joshs-MacBook-Pro ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> str(id)
'<built-in function id>'

I noticed this change here: blacklanternsecurity@02acd94#diff-c6756c35a5fb1d7b87dc0ed3d33a2d211374dc196f245d26a362c82c8c346d5cR131

I can only assume it was unintentional, given `id` is a python builtin function, and `str(id)` returns:
```py
cmyui@Joshs-MacBook-Pro ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> str(id)
'<built-in function id>'
```
@TheTechromancer

Copy link
Copy Markdown
Contributor

Nice catch! Thankfully this only would have triggered if a scan_id was manually specified.

@TheTechromancer
TheTechromancer merged commit 985624a into blacklanternsecurity:stable Nov 18, 2024
@cmyui
cmyui deleted the patch-1 branch November 26, 2024 06:09
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.

2 participants