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

Error when changing a host comment #2739

Closed
woodpecker07 opened this issue Nov 13, 2023 · 1 comment
Closed

Error when changing a host comment #2739

woodpecker07 opened this issue Nov 13, 2023 · 1 comment
Labels

Comments

@woodpecker07
Copy link

woodpecker07 commented Nov 13, 2023

Zenmap GUI crashes when I change a host comment created with a prior version.

I have saved a scan with V7.92 and added some host comments. It was possible to create new comments, change them etc. without problems.

Now I have installed V7.94, loaded the prior scan and tryed to update some of the comments.

Zenmap crashes with this message:

Version: 7.94
Traceback (most recent call last):
File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.10\site-packages\zenmapGUI\ScanInterface.py", line 782, in _save_comment
comment = buff.get_text(
TypeError: Gtk.TextBuffer.get_text() takes exactly 4 arguments (3 given)

OS: Win 10 Pro 21H2

@woodpecker07
Copy link
Author

woodpecker07 commented Nov 13, 2023

Problem solved by changing function save_comment, ScanInterface.py, Lines 782 and 783:

comment = buff.get_text(
buff.get_start_iter(), buff.get_end_iter(),True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant