Port Knocking
Moderator: Moderators
- Libra Monkee
- Moderator
- Posts: 6478
- Joined: Wed Mar 29, 2006 11:04 pm
- Location: The Ether
- Contact:
Port Knocking

Libra Monkee- "Helping DCAWD meet its Equal Opportunity requirement since 2006."
- complacent
- DCAWD Founding Member
- Posts: 11651
- Joined: Sun Aug 29, 2004 8:00 pm
- Location: near the rockies. very.
- Contact:
-
- DCAWD Groupie
- Posts: 1659
- Joined: Fri Nov 19, 2004 7:00 pm
- Location: washington, dc
- Contact:
- Sabre
- DCAWD Founding Member
- Posts: 21432
- Joined: Wed Aug 11, 2004 8:00 pm
- Location: Springfield, VA
- Contact:
I used it a long time ago for a project I had. Feel free to ask questions 

Sabre (Julian)

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
- Libra Monkee
- Moderator
- Posts: 6478
- Joined: Wed Mar 29, 2006 11:04 pm
- Location: The Ether
- Contact:
-
- DCAWD Groupie
- Posts: 1316
- Joined: Sun Oct 01, 2006 3:48 pm
- Location: Arlington, VA
- Contact:
"open a port" is too specific. "information could be transmitted" is more appropriate. Consider the case of two prisoners communicating by tapping a mutual wall.Libra Monkee wrote:By knocking on certain sequence of closed firewall ports you could open a port for your connection. Does that sound right?
rocket scientist
- complacent
- DCAWD Founding Member
- Posts: 11651
- Joined: Sun Aug 29, 2004 8:00 pm
- Location: near the rockies. very.
- Contact:
wow, you might be a little crotchety...schvin wrote:makes me cross. i guess the obfuscation and neat factors are high, but doesn't seem scalable or usable from an enterprise perspective, so that makes me cross. i seem to be getting crotchety in my old age.

I think it's "cool enough" for say a warez box or that one box that you keep some tools on.
But I agree, it would not be easily deployed amongst the enterprise.
colin
a tank, a yammie, a spaceship
i <3 teh 00ntz
a tank, a yammie, a spaceship
i <3 teh 00ntz
- ElZorro
- DCAWD Founding Member
- Posts: 5958
- Joined: Thu Aug 12, 2004 8:00 pm
- Location: USA! USA!
Nothing says it couldn't be deployed across an enterprise - think of it like a key, with the ports being the tumblers. Hit the tumblers right and the lock opens. You can encode this into software (great in client server applications). The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.
Jason "El Zorro" Fox
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
- complacent
- DCAWD Founding Member
- Posts: 11651
- Joined: Sun Aug 29, 2004 8:00 pm
- Location: near the rockies. very.
- Contact:
Agreed, the obfuscation is out teh window when you start coding it into software...ElZorro wrote:Nothing says it couldn't be deployed across an enterprise - think of it like a key, with the ports being the tumblers. Hit the tumblers right and the lock opens. You can encode this into software (great in client server applications). The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.
If you look at it as a one trick pony that only "works" as a one trick pony, you start to get a better idea of how it can be implemented and still remain "cool".
colin
a tank, a yammie, a spaceship
i <3 teh 00ntz
a tank, a yammie, a spaceship
i <3 teh 00ntz
-
- DCAWD Groupie
- Posts: 1659
- Joined: Fri Nov 19, 2004 7:00 pm
- Location: washington, dc
- Contact:
- Sabre
- DCAWD Founding Member
- Posts: 21432
- Joined: Wed Aug 11, 2004 8:00 pm
- Location: Springfield, VA
- Contact:
Ah, now that isn't true! Take your key analogy (which was great!) one step further. Knowing that you are on a computer, you can now establish a out-of-band sequence that the ports should be knocked on. There are 65536 ports available (technically), so if you have a function that generates the next sequence psuedo-randomly, it doesn't matter if you sniff the traffic of the previous connection sequence, as the next time it will be a different port combination. If you knock on 5 ports before the right one opens, you have a VERY small chance that you will ever guess the right sequence (think 1 in a billion). Now if you can find the sequence, you're in with no problem... but let's hope the person that designed the system did something better than cos(x)*100ElZorro wrote:The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.

Sabre (Julian)

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
-
- DCAWD Groupie
- Posts: 1659
- Joined: Fri Nov 19, 2004 7:00 pm
- Location: washington, dc
- Contact:
- Sabre
- DCAWD Founding Member
- Posts: 21432
- Joined: Wed Aug 11, 2004 8:00 pm
- Location: Springfield, VA
- Contact:
Now you're thinking in the right direction 

Sabre (Julian)

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.

92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
- ElZorro
- DCAWD Founding Member
- Posts: 5958
- Joined: Thu Aug 12, 2004 8:00 pm
- Location: USA! USA!
Excellent.Sabre wrote:so if you have a function that generates the next sequence psuedo-randomly, it doesn't matter if you sniff the traffic of the previous connection sequence, as the next time it will be a different port combination.

Jason "El Zorro" Fox
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.