Nmap Development mailing list archives
Re: Zenmap not terminating properly on Windows
From: Giorgio Zoppi <giorgio.zoppi () gmail com>
Date: Thu, 20 Aug 2009 09:58:08 +0200
2009/8/20 David Fifield <david () bamsoftware com>:
On Wed, Aug 19, 2009 at 09:22:08PM -0500, Lane Christiansen wrote:On Wed, Aug 19, 2009 at 6:56 PM, David Fifield<david () bamsoftware com> wrote:Does someone have an idea of how to solve this? Is there a Python way to run a terminal program without opening a terminal window? To see what I mean, edit zenmapCore/NmapCommand.py and change the line shell_state = (sys.platform == "win32") to shell_state = TrueI think you just change the extension from ".py" to ".pyw". I think.Thanks for the suggestion, but I may not have been clear. I don't mean running a Python program without a terminal window, but running nmap.exe from a Python program using the subprocess module.
I guess that subprocess module on Win32 could import the following modules: from win32api import GetCurrentProcess, DuplicateHandle, \ GetModuleFileName, GetVersion from win32con import DUPLICATE_SAME_ACCESS, SW_HIDE from win32pipe import CreatePipe import win32process So you could use it directly as you were programming in C with the win32 api in order to obtain what you want :) If the import gives you problems, you need Mark Hammond's win32 extensions for Python. -- Quiero ser el rayo de sol que cada día te despierta para hacerte respirar y vivir en me. "Favola -Moda". _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Zenmap not terminating properly on Windows Nick Marsh (Aug 14)
- Re: Zenmap not terminating properly on Windows David Fifield (Aug 19)
- Re: Zenmap not terminating properly on Windows Lane Christiansen (Aug 19)
- Re: Zenmap not terminating properly on Windows David Fifield (Aug 19)
- Re: Zenmap not terminating properly on Windows Giorgio Zoppi (Aug 20)
- Re: Zenmap not terminating properly on Windows Lane Christiansen (Aug 19)
- Re: Zenmap not terminating properly on Windows Nick Marsh (Aug 20)
- Re: Zenmap not terminating properly on Windows David Fifield (Sep 28)
- Re: Zenmap not terminating properly on Windows David Fifield (Aug 19)