-
September 20th, 2003, 10:21 PM
#1
Junior Member
Personal project
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.
Thanks alot!
-
September 20th, 2003, 10:28 PM
#2
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
Good luck
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.
Hit it!
-
September 20th, 2003, 10:40 PM
#3
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
#4
I found this page, its not the one i used when i coded a port scanner cant remember that
http://truncode.org/papers.php
its got a step by step guide which is ideal for you :-)
http://truncode.org/files/papers/tcpscan.txt
they have other tutorials that go into other aspects of port scanners
hth
i2c
-
September 21st, 2003, 05:37 PM
#5
Junior Member
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
#6
Member
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
happy coding
-
September 21st, 2003, 05:52 PM
#7
try www.lameindustries.org
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|