Re: Using a Compromised Router to Capture Network Traffic

From: Fabio Pietrosanti (naif) (naif@blackhats.it)
Date: 07/16/02


Date: Tue, 16 Jul 2002 17:43:51 +0200
From: "Fabio Pietrosanti (naif)" <naif@blackhats.it>
To: pen-test@securityfocus.com


On Mon, Jul 15, 2002 at 10:43:49AM -0800, Penetration Testing wrote:
> Hi all.
>
> I have recently completed some experimentation into using a captured
> router to sniff network traffic on a remote network. This is in the same
> vein as Gauis' article in Phrack 56 (Things to do in cisco land when you
> are dead).
>
> I have tried to build on Gauis' work in that I terminated the GRE tunnel
> on a Cisco router instead of a *nix machine. I explored a couple of
> possible scenarios for this, the net result being that it is possible to
> remotely capture (bi-directional) network traffic using NO customised
> tools; all that is required is one cisco router with vanilla IOS, and a
> machine that can run snoop or tcpdump.

Why having a "so complex" infrastructure ?

All you need is linux 2.4.X kernel with netfilter and GRE support and the following tools:

- iptables
- iproute2
- any sniffing/hijacking tools ( ettercap, dsniff, hunt, ethereal )

Using this configuration you can do whatever you want:

- create funny policy routing rules
- intercept traffic
- hijack traffic
- decrement TTL and manipulate traffic in many way
- insert NAT rules to eventually bypass firewall

and you don't need to have a cisco router neither to have to cope with GRE
encapsulation :)

Using a cisco router for hacking purpose is crazy, use linux! :)

Regards

--

Fabio Pietrosanti ( naif ) E-mail: naif@blackhats.it - naif@sikurezza.org PGP Key (DSS) http://naif.itapac.net/naif.asc -- "Hacking is the future of security research" R.Power, CSI Free advertising: www.openbsd.org Multiplatform Ultra-secure OS

---------------------------------------------------------------------------- This list is provided by the SecurityFocus Security Intelligence Alert (SIA) Service. For more information on SecurityFocus' SIA service which automatically alerts you to the latest security vulnerabilities please see: https://alerts.securityfocus.com/



Relevant Pages

  • RE: Cant enter 2 XP machines into a Workgroup
    ... Firewalls like NIS modify Windows own security files. ... If a comsumer level router like those of Linksys and Netgear ...
    (microsoft.public.windowsxp.network_web)
  • Re: Wireless intrusion - WPA and TKIP cracked with ease
    ... model number of ALL your wireless hardware. ... unpatched security holes in your unspecified router and firmware. ... protocols to select, but on a different page, had an encryption on/off ...
    (alt.internet.wireless)
  • RE: Cant enter 2 XP machines into a Workgroup
    ... I had my XP Home machine hard ... Firewalls like NIS modify Windows own security files. ... If a comsumer level router like those of Linksys and Netgear ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cisco VPN AIM: is really needed for me?
    ... offloads the encryption and the only benefit is lower CPU utilization. ... As far as security goes, the 2600 series is supported on 12.4 code, ... IOS 12.4ADV SECURITY ...
    (comp.dcom.sys.cisco)
  • Re: Secure file and folder permissions
    ... router, yada, yada, yada. ... maybe some advanced security techniques were in order. ... can I ask what procedure you follow to secure ... Use a password on your Windows account and make sure it is ...
    (microsoft.public.windowsxp.security_admin)