Pizza Posted March 18, 2008 Share Posted March 18, 2008 i am trying to make Nmap GUI using Java i know how to make buttons and stuff i can execute commend but i have little problem with this public class Nmap { public static void main(String arg[]) { try { Process p = Runtime.getRuntime().exec("cmd /c start nmap -sS xxx.xxx.xxx.xxx"); p.waitFor(); } catch (Exception err) { err.printStackTrace(); } } } nmap does start but it closes really quick is there anyway to prevent it and make cmd.exe stay until user presses key?(if i can do this i will be done with this when i have spring break with some most used commends) :) Please help :-) Quote Link to comment Share on other sites More sharing options...
soulbleed Posted March 19, 2008 Share Posted March 19, 2008 There already is a GUI for nmap. There is also a universal GUI for almost all command line apps called TheGUI. http://aluigi.altervista.org/mytoolz/thegui.zip Quote Link to comment Share on other sites More sharing options...
Pizza Posted March 20, 2008 Author Share Posted March 20, 2008 There already is a GUI for nmap. There is also a universal GUI for almost all command line apps called TheGUI. http://aluigi.altervista.org/mytoolz/thegui.zip thanks but i am trying to make my own using Java :) Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted March 20, 2008 Share Posted March 20, 2008 There already is a GUI for nmap. There is also a universal GUI for almost all command line apps called TheGUI. http://aluigi.altervista.org/mytoolz/thegui.zip thanks but i am trying to make my own using Java :) java would make this harder then a few others because it's programming in a VM vs programming with the 'real OS' you might want to think of a different language Quote Link to comment Share on other sites More sharing options...
Pizza Posted March 20, 2008 Author Share Posted March 20, 2008 i only know java for now :( i will try to learn other lang :) but if i could make bat file that keeps running till key is pressed and bat file does nmap + commend that came from java if you get what i mean Quote Link to comment Share on other sites More sharing options...
Psyphon Posted March 26, 2008 Share Posted March 26, 2008 ill get it done Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.