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

Zenmap crashes while trying to automate using power automate desktop #2870

Open
thara-niro opened this issue Jun 24, 2024 · 0 comments
Open
Labels

Comments

@thara-niro
Copy link

Describe the bug

I am automating zenmap scan through power automate for desktop and save the scan as xml file. During execution of power automate script, zenmap crashes.
nmapscript.txt
xml_error
zenmap_crash_error

To Reproduce
1.Install zenmap application for Windows
2.Open power automate for desktop
3.Create a new flow with name 'nmapflow'
4.Copy paste the command in the file 'nmapscript.txt'
5.Make sure you change the folder path to save file accordingly for your setup
6.save and run the flow
7.At step 10, in the script you get a notification zenmap parsing error and zenmap crashes
8. The same zenmap command works fine when I do it manually: "nmap -p- -sS -T4 -A -v Monitor.codefusion.com -oX "C:\Users\Nirojan\OneDrive\Desktop\Tharani\Codefusion\nmap_scan\power_automate\monitornmapcheck\monitorcodefusion.xml"

Expected behavior
Zenmap should succesfully save the output in xml format without crash

Version info (please complete the following information):

  • OS: Windows 11 Pro
  • Zenmap version 7.95
  • Output of nmap --version: Nmap version 7.95 ( https://nmap.org )
    Platform: i686-pc-windows-windows
    Compiled with: nmap-liblua-5.4.6 openssl-3.0.13 nmap-libssh2-1.11.0 nmap-libz-1.3.1 nmap-libpcre2-10.43 Npcap-1.79 nmap-libdnet-1.12 ipv6
    Compiled without:
    Available nsock engines: iocp poll select

Additional context

Stack trace

Traceback (most recent call last):
File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.11\site-packages\zenmapGUI\ScanInterface.py", line 552, in verify_execution
self.load_from_command(scan)
File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.11\site-packages\zenmapGUI\ScanInterface.py", line 608, in load_from_command
parsed.nmap_output = command.get_output()
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.11\site-packages\zenmapCore\NmapCommand.py", line 261, in get_output
self.stdout_file.seek(0)
File "../lib/python3.11/tempfile.py", line 500, in func_wrapper
ValueError: I/O operation on closed file.

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

No branches or pull requests

1 participant