September 20th, 2003, 10:21 PM
As a gigantic, long term personal project, I was hoping to write a fairly simple port scanning utility in C. I am an absolute newbie to C, yet have a good general knowledge of the language as well as some books to help me out.
But, I was just wondering if anyone would be willing to just give me a general outline of what exact areas I would have to study and become proficient in.
Basically, I have no clue where to start, and simply pulled this as a project out of a hat, and am looking for advice =).
And please dont tell me to start with something smaller, because im stubborn and arrogant.
September 20th, 2003, 10:28 PM
From my experience, the best way to learn any language is the observe how programs work.
Take a look at http://www.planet-source-code.com/vb...t.asp?lngWId=3 , search for a port-scanner, and examine the source code.
If you got the books you need, great. If not, pick up a couple at your local bookstore, and try searching for some tutorials. In fact, our own White Eskimo has put together a fantastic tut on an intro to c and c++. Check that out here: http://www.antionline.com/showthread...ght=c+tutorial
It\'s 106 miles to Chicago, we\'ve got a full tank of gas, half a pack of cigarettes, it\'s dark and we\'re wearing sunglasses.
September 20th, 2003, 10:40 PM
thanks a lot Showtime8000 also, i wrote one about intro to file input and file output which you can check out here: http://www.antionline.com/showthread...hreadid=247364 I learned how to program by reading others code and then taking small fragments of code and putting it together to see what exactly it does. Showtime is right...look at someone elses code and learn how it all works. Thats the best way to learn i think... (by the way...my tutorials were written in C++, but you can easily figure out what it all means because the languages are so similar)
Support your right to arm bears.
^^This was the first video game which i played on an old win3.1 box
September 20th, 2003, 10:44 PM
I found this page, its not the one i used when i coded a port scanner cant remember that
its got a step by step guide which is ideal for you :-)
they have other tutorials that go into other aspects of port scanners
September 21st, 2003, 05:37 PM
Thanks alot guys, this is just what I needed!
All of you really kick ass =D.
I'll be sure to contribute something back once I've finished.
September 21st, 2003, 05:44 PM
you will have to learn socket programming to do this. if you are writing this program for windows then you should look into the winsock library, if this is for *nix then i would really recommend you getting the book Unix Network Programming by Stevens. For *nix I also recommend you checking out the following tutorials, http://www.ecst.csuchico.edu/~beej/guide/net/ and http://g0tr00t.mson.org/docs/programming/socket.txt
September 21st, 2003, 05:52 PM
Look in the tutorials, they got a tut on what your looking to do.
It's a great tutorial.
But why travel all that way, just read white_eskimoes, it's real informative!
And i highly recommend it.......
Cheers and i hope you find the Answer to your Question.
And let the Force Be With You.