Pizza Posted March 18, 2008 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
soulbleed Posted March 19, 2008 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
Pizza Posted March 20, 2008 Author 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
SomeoneE1se Posted March 20, 2008 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
Pizza Posted March 20, 2008 Author 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
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.