Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: Re: SSHD and SSH Call-out via Port Knocking

Subject: Re: Re: SSHD and SSH Call-out via Port Knocking
Date: 8 Sep 2005 15:45:56 -0000
Ah, one specific octet per command port, so 
you need to nock them in the right order.

Actually, it's one numeric per port, so 12 knocks to build the address.

Still don't see the point to this one.

The reason behind having the server call out, rather than allowing you to call 
in, is that it leaves the server with NO listeners on the externally facing 
network interface.  If there are essentially no listeners, then there's nothing 
for hackers to attack.
Also, since the callout is using a public-key authentication method, you have 
to have the servers public key already loaded in your authorized_keys file.

I see. Combining this with the first one, you
could spawn an sshd that is bound to the 
loopback interface, thus never exposing an 
sshd, even for 30 seconds.

I hadn't actually thought of it that way, but it could be used that way.
They really were intended to be 2 different methods of access.

Or am I missing something here ?

You're close, very close.  What I was attempting to do, that wasn't done with 
normal port knocking implementations, was to transfer data, not via TCP payload 
or traditional transport mechanisms, but via the actual knock sequence.
Think of it like morse code, only with 65Kx2 (tcp/udp) different code 
components instead of just long and short.

By building information via knock sequences (and using more than one port for 
each numeric), you could possibly extend this so that it contains not only the 
IP address, but a numeric ID that represents a user who is going to connect 
from the stated IP address, as well as a PIN number to use for that connection.

Again, all of this without any form of payload that could be sniffed.  It's 
just hits to certain ports.

<Prev in Thread] Current Thread [Next in Thread>