Jump to content

making NMap Gui using Java


Pizza
 Share

Recommended Posts

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  :-)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...