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: | an anternative to port-knoking using the OpenBSD pf only |
|---|---|
| Date: | Mon, 23 Jan 2006 22:44:52 +0100 |
Hi there,
pass in proto tcp from any os "Windows 2000"
This rule allows packets from any Windows 2000 machine. With this feature is possible to block all incoming packets except those that come from a specific operating system.
I've tested this tecnique with a tool I'm writing that is capable of rewriting outgoing (and incoming) packets, but maybe fragroute with some modifications can do the same.
I added the invented os fingerprint to pf os databese by inserting this line to /etc/pf.os (my os fingerprints database)
8192:128:0:60:M3884,N,W0,N,N,T:poplix:::poplix fi
Now I can configure pf with the following ruleset:
block in on rl0 all
pass in from any os poplix keep stateThis new os fingerprint entry will identify my packets and allow them to pass through firewall.
Linux client runs tripp with the following rule:
OUT (tcp.flags='syn')
set(
tcp.win='8192',ip.ttl='128',ip.flags.df='0',
tcp.options='mss=3884+noop+wss=0+noop+noop+ts=TS'
);
Result:
root@sd:# ssh papuasia.org -l poplix ssh: connect to host papuasia.org port 22: Connection timed out root@sd:#
root@sd:~# tripp -o eth0 -f rules -g 10.0.0.138 -S & rewriter for outgoing traffic started
root@sd:~# ssh papuasia.org -l poplix poplix@papuasia.org's password: ********** poplix@papuasia.org:~$
Note that is also possible to kill tripp after the connection is estabilished (in this case on password request).
Notes on tripp: Please note that tripp is in a very embrional state: ip options are not processed, not all tcp options are supported, most icmp types are dropped (echo request end echo reply only pass through tripp), tripp works on ethernet only and it has been tested on linux only. For more info visit http://tripp.dynalias.org
I hope that someone can find it useful, ciao poplix
http://www.securityfocus.com/sponsor/pen-test_050831 -------------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Tool to make mitm on ssh2, Cedric Foll |
|---|---|
| Next by Date: | Re: Local Honeynet Group, corp . mule |
| Previous by Thread: | Websphere Application Server, Dhoydadh |
| Next by Thread: | Re: an anternative to port-knoking using the OpenBSD pf only, Joachim Schipper |
| Indexes: | [Date] [Thread] [Top] [All Lists] |