UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Sponsored Links
Latest Postings
The History Thread...
by Gremelin
Today at 09:42 AM
Doom 3
by Cyrez
09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#7228 - 07/15/02 08:51 AM Ports
Moffesto Offline
UGN Supporter

Registered: 04/22/02
Posts: 730
Loc: Kuntucky
Would someone kindly explain how ports work
_________________________
2 people can keep a secret as long as one is dead

Top
Sponsored Links
      
#7229 - 07/15/02 11:44 AM Re: Ports
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
I would run out of numbers before I ran out of ways to interpret the meaning of ports in the Anarchy forum...
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#7230 - 07/15/02 02:08 PM Re: Ports
Moffesto Offline
UGN Supporter

Registered: 04/22/02
Posts: 730
Loc: Kuntucky
my bad, i posted in the wrong fucking forum.
_________________________
2 people can keep a secret as long as one is dead

Top
#7231 - 07/15/02 06:15 PM Re: Ports
Mornse Offline
Member

Registered: 03/03/02
Posts: 185
Loc: Vancouver
A port is basically the entrance to your computer from the outside world. Think of it as a door. A socket from a program opens up a port, (an example is apache opens up port 80 because that's the http port), and then other programs can connect to the computer trough port 80 once it's opened and something is listning. So the basic definition is a door into your computer. A port scanner will tell you what doors are open on the computer you are scanning.
_________________________
Cha want some w***up?

http://www.dopeskill.com

Top
#7232 - 07/16/02 09:11 PM Re: Ports
Mac-10Daddy Offline
Junior Member

Registered: 06/23/02
Posts: 17
Loc: ny
LOL PORT SCANNERS ARE FOR N00BS MDOS is for advanced
_________________________
Its all fun and games until someone gets hurt...Then its hallarious

Top
#7233 - 07/16/02 10:16 PM Re: Ports
unreal Offline



Registered: 03/01/02
Posts: 860
Loc: KCRQ
Well Mac-10Daddy, while you telnet to each of the 65000+ TCP ports in DOS, we'll keep using port scanners...

Top
#7234 - 07/16/02 11:08 PM Re: Ports
CryptoKnight Offline
Junior Member

Registered: 03/06/02
Posts: 71
/me kicks Mac-10Daddy on the balls
you are an idiot. and don't even try to give me a smart-ass answer i can already tell you know shit. unless you were trying to be sarcastic which i know you weren't
_________________________
"If you let your wife stand on your toe tonight, she'll stand on your face tomorrow morning" - Sir/Saint Thomas More

-CryptoKnight-

Top
#7235 - 07/17/02 12:34 AM Re: Ports
sinetific Offline
nobody

Registered: 03/02/02
Posts: 815
Loc: Ann Arbor
Wtf is MDOS? is it like DDOS? or maybe the retard is thinking of MSDOS... anyways enough flaming. Think of ports as gateways, doorways, openings, or um ports on your computer that allow people to access the information on it, whether its in the form of a webserver, telnet server, mail server, or other things of the sort. Ports on your computer only to be opened if your acting as a server and for direct connections. Firewalls work by not allowing TCP conections to these ports, although they are still open...
The best way to close open ports is to shut down the service thats keeping them open such as NetBEUI that keeps 137 138 139 open I believe. How people acn do NBTstat look ups on you and all that. If you wanna learn more read about TCP/IP as you can cause that what the nets based on. Theirs shitloads that I could go into about ports but I dont wanna take the time. (If Im wrong about anything feel free to correct me).

Top
#7236 - 07/17/02 01:29 PM Re: Ports
Gremelin Online   shocked

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Quote:
Originally posted by unreal:
Well Mac-10Daddy, while you telnet to each of the 65000+ TCP ports in DOS, we'll keep using port scanners...
65535
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#7237 - 07/17/02 05:29 PM Re: Ports
unreal Offline



Registered: 03/01/02
Posts: 860
Loc: KCRQ
Yes Gizzy...and "65000+" covers that.

Top
#7238 - 07/18/02 09:23 PM Re: Ports
Mornse Offline
Member

Registered: 03/03/02
Posts: 185
Loc: Vancouver
Gizzy is just trying to show off that he knows exactly the number of ports
_________________________
Cha want some w***up?

http://www.dopeskill.com

Top
#7239 - 07/19/02 05:30 PM Re: Ports
dashocker Offline
Member

Registered: 03/05/02
Posts: 524
Loc: Cornfields everywhere...
lol
how old is this topic?
anyway. heh. MDOS is l33t! heh
does this mean that guy cant tell the difference between an OS and a port scanner, sad...
anyway, a port is where ships go.
think of your comp as a body of water, people are boats, and ports are places in which they can dock or enter it. Sometimes u need harbor passes like user names or passwords or bohemian slave girls. Sometimes the harbor cant be entered because its blocked off for the day(firewall). And maybe its just there because a program has to open a port to make a connection with another port. i.e. internet explorer to a website, and theres nothing u can do after u access the port. Basically like the port is there so 2 merchants can trade privately back and forth [Thumb]

ph33r my analogy.

Top
#7240 - 07/19/02 06:11 PM Re: Ports
ninjaneo Offline
UGN Security Staff

Registered: 03/06/02
Posts: 256
Loc: CA, USA
Quote:
Originally posted by Mac-10Daddy:
LOL PORT SCANNERS ARE FOR N00BS MDOS is for advanced
lmfao

MsDos = lame not port scanners

Where the fuck do you come off saying Port Scanners are lame? It is one of the fastest if not the fastest way to see if there is any ports open.

MsDos at least the commands I know would be about the SLOWEST and least effective method of scanning for ports on a range let alone a single IP address..

Top
#7241 - 07/22/02 07:45 AM Re: Ports
Scallion Offline
Junior Member

Registered: 03/04/02
Posts: 48
Loc: iraq
Hm...just to note a few things that haven't been made clear enough:

1. There are two types of ports: TCP and UDP. TCP create three-way-handshake connections, UDP just receives packets.
2. I thought there were 32676 ports, not 65000+? Possibly I am wrong - 32676 is the limit on an int, but a unsigned int (this is for C datatypes) would run up to 65000+.
3. You should close all the ports you can on your computer.
4. You don't just "open" ports. You have to assign a program (known to the unix world as a daemon!) to listen to the port.

Now for some Mac-10Daddy bashing:
You are a worthless shit. Why the fuck do you contaminate these boards with your worthless comments. I can't believe I just gave up 1x10^-8375 cents worth of bandwidth and time to download and read the HTML that comprised your message. It's your kind that disgusts me. Get the fuck off this board you worthless turd. Go find an ugly girl to finger, or better yet, your dog.

What a worthless shit.

Top
#7242 - 07/22/02 08:00 AM Re: Ports
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
Scallion Corrections:

An int may consist of 2 bytes in 16-bit operating systems. But the int has 4 bytes on 32-bit systems. Output sizeof(int) on your machine to verify my words.

Yes, there are most DEFINATELY 65536 ports. 0-65535. Port 0 is reserved for a randomly selected available port by the system. In the TCP/IP protocol there is 2 bytes reserved for the port specs. So naturally they'll use it to its full potential.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#7243 - 07/22/02 09:54 AM Re: Ports
Scallion Offline
Junior Member

Registered: 03/04/02
Posts: 48
Loc: iraq
I think my comment related two things of interest to me:

1. I am unsure of how many ports are on a system (Although this has changed; you have now informed me!)
2. Did the developers of whatever system you're using use an int or an unsigned int or a different datatype.

I never claimed there's only 32676 ports I expressed my lack of knowledge concerning the total number of ports on a system and provided a possible number that might be there, lol.

Top
#7244 - 07/22/02 10:20 AM Re: Ports
ninjaneo Offline
UGN Security Staff

Registered: 03/06/02
Posts: 256
Loc: CA, USA
jebus christ, Scallion you dont have to be so elite hehehe. SR: I think you have competition

this was just to comment on how l33t Scallion's post was

Top
#7245 - 07/22/02 10:35 AM Re: Ports
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
"2. Did the developers of whatever system you're using use an int or an unsigned int or a different datatype."

signed or unsigned is irrelevent to my point. You said:

"32676 is the limit on an int, but a unsigned int (this is for C datatypes) would run up to 65000+"

This would be true on a 16 bit system. For a 32-bit system I'd rewrite it like this:

"2147483648 is the limit on an int, but a unsigned int (this is for C datatypes) would run up to 4294967295"

A lot of long-time programmers think that int is only 2 bytes. Lots of people make that mistake. But now in the days of 32-bit systems, it's 4. Just letting you know. I'm 100% sure on this.

Here, I'll diagram it again like this for ya - just trying to express myself in a way that is easily understood:

unsigned int on a 16-bit system
0 to 65535

signed int on a 16-bit system
-32768 to 32767

unsigned int on a 32-bit system
0 to 4294967295

signed int on a 32-bit system
-2147483648 to 2147483647

---

Now, for proof, write a small C program. Output the return value of 'sizeof(int)' and you'll get 4 on 32-bit systems, and 2 on 16-bit systems.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#7246 - 07/22/02 11:56 AM Re: Ports
Scallion Offline
Junior Member

Registered: 03/04/02
Posts: 48
Loc: iraq
SR, dude, you're freakin' out!

As to whether something is signed or unsigned has to do a lot with the maximum value that can be assigned to that variable.

The first bit of a signed int is a 1 or a 0 (duh, bit!) that determines what the sign of the value is. This takes 1 bit away from the overall size of the int - hence, if we count up our powers of two, then we'll realize that for every bit that is lost, the total value a int can hold is decreased by a power of 2.

I totally understand your 16-bit and 32-bit explanations (NEWS FLASH: contrary to public belief, no, i am not a total idiot! lol) and I'll even bet I could find out what it would be for a 64-bit system too!

And...um, I know C too, I can write a quick program. Thanks. Yep. C++ too, i'm leet out the wazoo. NONO, i'm not "elite", only lamers can be "elite".

Top
#7247 - 07/22/02 01:33 PM Re: Ports
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
heh, nah, I'm not freakin out. When my point isn't coming across properly, I get very verbose. I was just trying to tell you about var sizes, and you think I'm talking about max values. Two subtly different things. The conflict probably arose cause you look at var types in terms of value, and I look at them in terms of size. When considering a var's size, sign is irrelevent - that's my point.

I just felt compelled to tell ya that int is actually 32-bit and why cause you said it was 16-bit so-to-speak.

(you don't have to prove that you're not an idiot by proving you know how negative numbers is translated from binary. )
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#7248 - 07/22/02 02:17 PM Re: Ports
dashocker Offline
Member

Registered: 03/05/02
Posts: 524
Loc: Cornfields everywhere...
hmm, good point, i forgot to mention programs must be listening on ports. guess it was just implied.

Top
#7249 - 07/23/02 09:44 AM Re: Ports
Scallion Offline
Junior Member

Registered: 03/04/02
Posts: 48
Loc: iraq
Ok. Max values vs. var sizes understood.

Hurrah...someone valued my comment that you have to put a listener on ports...

Top
#7250 - 07/23/02 02:44 PM Re: Ports
dashocker Offline
Member

Registered: 03/05/02
Posts: 524
Loc: Cornfields everywhere...
yeah, ur j33t

Top
Page 1 of 2 1 2 >

Moderator:  Infinite 
Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2148 Members
46 Forums
34464 Topics
69634 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27626
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Tim050, Gecko666, defghi795767, Devo60, ali
2148 Registered Users
Who's Online
1 registered (Gremelin), 324 Guests and 375 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!