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. |

| Subject: | Re: Determine forwarded ports? |
|---|---|
| Date: | Tue, 27 Mar 2007 17:38:00 +0200 (IST) |
On Thu, 22 Mar 2007, joeull wrote:
Can you determine the ports that are forwarded during an SSH connection? I'd like to create a script using the randomly forwarded ports in our application, but don't know how to determine that. I can grep and diff nestat -lant | grep -i list, but I'd like just get a clean list of the currently forwarded ports. I'm using OpenSSH_4.3p2.
It is not clear what you mean: AFAIK, there is no way to instruct [Open]SSH to forward random ports. That is you always says what ports you want to forward. If you have a script that generates that random numbers you should extend the script to store the numbers somewhere (maybe environment variables) and read the stored list once you need it. -- Regards, ASK
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Determine forwarded ports?, Mariyappan, Balaji (GE Indust, ES RAIL, consultant) |
|---|---|
| Next by Date: | Re: [Fwd: Compliancy with changes to US Daylight Saving Time in 2007] Determine forwarded ports?, joeull |
| Previous by Thread: | Re: pubkey authentication problem, Darren Tucker |
| Next by Thread: | Re: [Fwd: Compliancy with changes to US Daylight Saving Time in 2007] Determine forwarded ports?, joeull |
| Indexes: | [Date] [Thread] [Top] [All Lists] |