Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Programming


Programming A place for our community to discuss their own security related coding projects.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2009, 10:50 PM
Jase21's Avatar
Junior Member
 
Join Date: Oct 2007
Posts: 15
Default How to add GUI to command line

Hello,

My problem:
Suppose that there is no GUI front-end to a tool say nmap (nmap has a gui front-end, but lets assume that it doesn't) then, how can I make a gui to the various commands in nmap.
There are various flags (and I could make a check box to add each) but how to connect(communicate) with the command line.

Another example:
Suppose the windows telnet thing.
I need a gui that have an address field, port field, and a connect button.
When I press connect it should map to
o (address) (port number)
o 192.168.1.1 23

Which programming language and libraries are to be used.
(Rapid to build)
I hope the questions are clear.
Please help.
Thank You very much.
__________________
Believe to see
Reply With Quote
  #2 (permalink)  
Old 10-04-2009, 10:54 PM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,401
Default

I would suggest getting into something like a netbeans environment. You can code GUIs in almost any language. You need to decide qt or gtk. Python has a some nice front end tools. Sounds like you dont know much about programming though. Honestly there is pretty much a GUI for every tool out there already.
Reply With Quote
  #3 (permalink)  
Old 10-04-2009, 11:25 PM
Jase21's Avatar
Junior Member
 
Join Date: Oct 2007
Posts: 15
Default

Python suites well.
Just give me a few idea on how to intergrate(map) the command line within the gui.
__________________
Believe to see

Last edited by pureh@te; 10-04-2009 at 11:46 PM.
Reply With Quote
  #4 (permalink)  
Old 10-04-2009, 11:46 PM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,401
Default

Quote:
Originally Posted by Jase21 View Post
Python suites well.
Just give me a few idea on how to intergrate(map) the command line within the gui.
When creating the gui you just link the buttons or check box's or whatever to shell commands.

You may need something simpler like this Anjuta Integrated Development Environment
Reply With Quote
  #5 (permalink)  
Old 10-04-2009, 11:58 PM
Jase21's Avatar
Junior Member
 
Join Date: Oct 2007
Posts: 15
Default

Quote:
Originally Posted by pureh@te View Post
When creating the gui you just link the buttons or check box's or whatever to shell commands.
That is exactly what I wanted. Linking to shell command. Could you please elaborate it. Can you just give a sample code or point me to some tutorials.
Thanks
__________________
Believe to see
Reply With Quote
  #6 (permalink)  
Old 10-05-2009, 12:36 AM
pureh@te's Avatar
Jenkem Addict
 
Join Date: Mar 2007
Location: /dev/null
Posts: 5,401
Default

Quote:
Originally Posted by Jase21 View Post
That is exactly what I wanted. Linking to shell command. Could you please elaborate it. Can you just give a sample code or point me to some tutorials.
Thanks
What has google told you? I have provided more than enough search terms for you to complete your goal. Personally I rarely use anything but the command line, in fact I don't even start X unless I have to so I am most likely the wrong person to be asking about GUI code.
Reply With Quote
  #7 (permalink)  
Old 10-05-2009, 03:02 AM
Member
 
Join Date: May 2009
Posts: 82
Default

for a basic checkbox gui its just some if thens deciding what is inside of a system() call... f.ex simple gui ccheckbox 1,2,3 command name is.... lol

//Could be looped and done lots of other things with and check() is no existent.

if (check(1)) {arg1 = "--lolarg1";}

if (check(2)) {arg2 = "--lolarg2";}

if (check(3)) {arg3 = "--lolarg3";}

system(("lol %c %c %c",arg1,arg2,arg3));
Reply With Quote
  #8 (permalink)  
Old 10-05-2009, 08:57 AM
h1jack~~d(^_^)b's Avatar
Member
 
Join Date: Jul 2009
Posts: 78
Default

putty is a graphical SSH, Telnet and Rlogin client for X. It is a
direct port of the Windows SSH client of the same name.
sreenshot:
h x x p://img.informer.com/screenshots/8/8410_1.png
__________________
Nought's had, all's spent, ... Where our desire is got without content

Last edited by h1jack~~d(^_^)b; 10-05-2009 at 09:02 AM. Reason: + sreenshot
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2