Thread: Need help to start

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    2

    Post Need help to start

    Hello, I am new to Programming, and I am needing to make a program.
    I'm not entirely sure if this is the best language to program this specific program.
    Give me a suggestion if any, please.

    Anyway, I would like the program to do this:

    -Type in an IP address in a box.
    -Click the check button
    -And it checks if a certain program is running or installed on any computer with that IP Address.

    That is all. I need it as a basic administrative tool to test if someone is using certain hacks on a game. (Simple, popular, installed ones)
    Is it too hard for a beginner?

    Basically, is it possible, is it hard, what would be the best language to use, and if possible, you make a tutorial or some source on a GUI similar I can change to create it?
    I am better at modifying sources than creating them =P
    I know the structure of programming very well, and it's logic from scripting in a few other languages, but now it's time to move on to the hard one.

    Sorry for the long message, I hope you guys can help me out.
    Also sorry if it's in the wrong forum.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Open cmd and type

    netstat -an | find "<port>"

    where <port> is the port you want to check for (assuming Windows here, of course).
    Example, find if there's a web server on the local computer:

    netstat -an | find "80"
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Is it too hard for a beginner?
    Yes.

    > you make a tutorial or some source on a GUI similar I can change to create it?
    Tutorials deal in very general terms.
    You just basically asked someone to do all your work so you can do something simple like change the "written by" line.

    If you already know scripting languages like say Perl or Python, then use those instead.
    They have a much higher level API for connecting to a remote machine (a couple of lines of code, as opposed to about 100 lines of C).
    At least if you know as much as you claim, you should be able to at least prototype your idea in one of these languages.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    > you make a tutorial or some source on a GUI similar I can change to create it?
    No, we're not writing you a tutorial. Google it. But, I would advise you to stay well away from GUI until you have basic functionality down. For example, your program, instead of "clicking the check button", you could just type the IP into a console and hit enter, and that would be the same idea (but with much less code).

    > And it checks if a certain program is running or installed on any computer with that IP Address.
    That sounds illegal...and impossible. Apart from actually cracking into their system and examining the current processes (even kernel-mode ones), this is virtually impossible, let alone if you're trying to do everything over an IP connection.

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    2
    The only things I have used are basics like:
    Gamemaker, Pawn(GTA:SA), Torque Script, Hero Script, Javascript, and a little python actually.
    So nothing like Perl, C++, or anything.

    Python seems like the best attempt, since it's the easiest. Thanks for that.
    Also, I have done the netstat and etc... But that doesn't do much than show active IP's connected to the server
    Which, I have commands for. I can already view IP's of the players.

    I just need to figure out how to detect if they have a certain hack program existing in a specific directory.
    Their open port to join the server is 7777 already, but I don't know exactly how to do this plan.

    EDIT: I am not looking into accessing all their files and deleting/modifying, just one specific .exe in their game folder that if it exists, I will get a notice of it, and ban them from the server. I am not looking to hack into people's computer, although now, it may seem like it.

    And I do believe this is possible, but maybe if I program a plug-in into the server that runs off the game such as a "Anti-Hack Utility", it may work? Well sirs, I think I just answered my own question. Thanks for the help.
    Last edited by Miss; 02-26-2012 at 12:03 PM.

  6. #6
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    It doesn't matter what you're doing, you're still poking around their computer, searching for a file. It's still impossible, and it's still illegal.

    HOWEVER, if it's your game (you never really said), you could do some kind of local directory check that would verify and then send the data back to you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Start on this
    By RVDFan85 in forum C++ Programming
    Replies: 3
    Last Post: 12-09-2006, 01:22 AM
  2. Help me start...
    By RVDFan85 in forum C++ Programming
    Replies: 3
    Last Post: 12-01-2006, 06:31 AM
  3. Where to start...
    By column in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 02-06-2006, 08:20 PM
  4. help where to start
    By teknikal in forum C Programming
    Replies: 2
    Last Post: 10-28-2002, 08:45 PM
  5. Where to start
    By Unregistered in forum Game Programming
    Replies: 36
    Last Post: 05-06-2002, 11:05 PM