News for hackers. Stuff that matters.
Re:Lans.py: capture usernames, passwords, messages and injec... by MrOrelliOReilly on Saturday November 09, 2013 @01:25AM (#6700877)
Could anyone point me to a resource that offers a high level explanation of how stuff like this 'works'? I'm happy to spend time parsing the source code but that won't tell me how/why you're able to intercept HTTP requests or w/e is happening. I just want to understand :'((

EDIT Looking for something more complete than a wiki article on ARP spoofing

Re:Lans.py: capture usernames, passwords, messages and injec... by est on Saturday November 09, 2013 @02:20AM (#6700979)
> how/why you're able to intercept HTTP requests or w/e is happening.

Basically, in a typical LAN, you think the server is communicating directly with you alone, but in fact it's broadcasting to everyone. Your NIC and OS just happen try not to receive it.

Re:Lans.py: capture usernames, passwords, messages and injec... by droopybuns on Saturday November 09, 2013 @01:50AM (#6700934)
Buy the book Violent Python. It is exactly what you need, and is available on kindle.
Re:Lans.py: capture usernames, passwords, messages and injec... by MrOrelliOReilly on Saturday November 09, 2013 @11:51AM (#6702167)
Definitely going to check this out, thanks!
Re:Lans.py: capture usernames, passwords, messages and injec... by Tarang on Saturday November 09, 2013 @03:56AM (#6701135)
Usually if you have a normal ethernet switch/WiFi your TCP packets end up going to everyone.

Endpoints only self-choose to listen to stuff addressed to them.

Re:Lans.py: capture usernames, passwords, messages and injec... by alexkus on Saturday November 09, 2013 @08:48AM (#6701605)
That's the major difference between hubs and switches.

As a generalisation: hubs just push everything received from one port out to all ports.

Switches are cleverer in that they only direct the right traffic (that may include broadcast traffic) to all ports.

Of course, there are cheap 'switches' that are nothing more than hubs.

Re:Lans.py: capture usernames, passwords, messages and injec... by gcb1 on Saturday November 09, 2013 @12:38AM (#6700787)
doesnt all switches protect you from arp poisoning? or am i missing something on the attack vector? i understand the proxy part is cool... but the vector appears to be a non issue. i just skimmed the readme...
Re:Lans.py: capture usernames, passwords, messages and injec... by e12e on Saturday November 09, 2013 @12:45AM (#6700799)
Most certainly not. Many enterprise switches can be/should be/are configured to protect against it -- but most consumer grade (home) switches I've seen don't.

Not sure what the status of various wireless routers/aps (eg: software ap on *bsd/linux).

Re:Lans.py: capture usernames, passwords, messages and injec... by gcb1 on Sunday November 10, 2013 @01:45PM (#6707824)
i think what you call home switches are hubs. they operate on different network layers, hence the different name.
Re:Lans.py: capture usernames, passwords, messages and injec... by akx on Sunday November 10, 2013 @01:52PM (#6707859)
I don't think hubs (ie. the sort of switch that indiscriminately transmits every packet to every port) have been in widespread use for ages anymore.
Re:Lans.py: capture usernames, passwords, messages and injec... by victorhooi on Saturday November 09, 2013 @12:51AM (#6700809)
Hi,

This is for wireless networks I believe.

Yes, some of those offer client isolation but it's often not the default. (Or maybe I'm thinking RADIUS keys per client since the isolation won't stop you sniffing?)

So assuming you've authenticated (I.e. you have the WEP or WPA key), you'll see all the traffic.

Cheers, Victor

Re:Lans.py: capture usernames, passwords, messages and injec... by oftenwrong on Friday November 08, 2013 @09:00PM (#6700361)
Can't wait to see what they call the GTK version
Re:Lans.py: capture usernames, passwords, messages and injec... by vanni on Saturday November 09, 2013 @06:58AM (#6701391)
The name would be appropriate, anyway, because it can be used for penetration testing :D
Re:Lans.py: capture usernames, passwords, messages and injec... by bbayer on Saturday November 09, 2013 @05:02AM (#6701229)
Please use 2 or 4 spaces while writing python code. It becomes impossible to read.
Re:Lans.py: capture usernames, passwords, messages and injec... by nilliams on Saturday November 09, 2013 @08:02AM (#6701516)
I agree with you for code samples in READMEs, but for actual code allow people to respectfully disagree [1].

The benefit of tabs is that you can open it in your editor and set you editor to view tabs at whatever your spacing preference (2 or 4 spaces).

That github doesn't let you specify the tab-sizing you wish to view the code at is no fault of the author's (it would be a nice feature for github to add).

Please don't throw PEP8 at me :)

[1] http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/

Re:Lans.py: capture usernames, passwords, messages and injec... by smnrchrds on Saturday November 09, 2013 @10:55AM (#6701933)
Why not? It's a convention almost everyone has agreed upon. More than 95% of python code out there uses spaces[1]. The new PEP-8 prefers spaces over tabs. I have configured my text editor to put 4 spaces when I press the tab key and auto-indent with 4 spaces as well. Now, if I want to contribute to a project which uses tabs instead of spaces or use such a project in my own code, I have to change my text editor preferences every time I open those files or fork the project and convert tabs to spaces.

Tabs may have some advantages over spaces, but uniformity is far more important.

[1] http://sideeffect.kr/popularconvention/#python

Re:Lans.py: capture usernames, passwords, messages and injec... by free652 on Saturday November 09, 2013 @10:58AM (#6701945)
Spaces look uniformed everywhere. Configuring every tool to use tabs with the right size is just crazy:

* SVN diff tools

* Web SVN webbrowsers

* Vi

* Eclipse

* Chrome

Re:Lans.py: capture usernames, passwords, messages and injec... by ilaksh on Saturday November 09, 2013 @05:14AM (#6701248)
Does this defeat SSL or SSH?
Re:Lans.py: capture usernames, passwords, messages and injec... by posnet on Saturday November 09, 2013 @08:23AM (#6701553)
There is a tool, SSL strip that removes SSL from the target machines https request dynamically. While not breaking SSL it is effective on a non observant user. https://github.com/moxie0/sslstrip
Re:Lans.py: capture usernames, passwords, messages and injec... by gfodor on Saturday November 09, 2013 @05:41AM (#6701294)
unless this is the github account of the NSA, i would sure as hell hope not
Re:Lans.py: capture usernames, passwords, messages and injec... by NicoJuicy on Saturday November 09, 2013 @07:44AM (#6701475)
inject a javascript that intercepts the form submit action. Send it to another server, don't stop the event.

You have all passwords now ^^

Re:Lans.py: capture usernames, passwords, messages and injec... by lifeonedge99 on Saturday November 09, 2013 @01:05AM (#6700829)
any penetration testing companies after you yet? you have some amazing potential! fantastic work.
Re:Lans.py: capture usernames, passwords, messages and injec... by flingtriangle on Sunday November 10, 2013 @04:51PM (#6708597)
I wish! That's the dream job.
Re:Lans.py: capture usernames, passwords, messages and injec... by zoltar92 on Friday November 08, 2013 @10:10PM (#6700505)
hahaha aawesome! :P