Slashdot Mirror


BitHammer, the BitTorrent Banhammer

michaelcole writes: Its name is BitHammer. It searches out and bans BitTorrent users on your local sub-net.

I'm a digital nomad. That means I travel and work, often using shared Wi-Fi. Over the last year, I've been plagued by rogue BitTorrent users who've crept onto these public hostpots either with a stolen/cracked password, or who lie right to my face (and the Wi-Fi owners) about it.

These users clog up the residential routers' connection tables, and make it impossible to use tools like SSH, or sometimes even web browsing. Stuck for a day, bullied from the Wi-Fi, I wrote BitHammer as a research project. It worked rather well. It's my first Python program. I hope you find it useful.

86 of 429 comments (clear)

  1. It's okay when I do it... by MetalliQaZ · · Score: 4, Insightful

    but, so help me God, if Comcast blocks bittorrent traffic, I'm going to call for heads to roll!

    --
    "Here Lies Philip J. Fry, named for his uncle, to carry on his spirit"
    1. Re:It's okay when I do it... by i+kan+reed · · Score: 3, Insightful

      Well, yeah, if someone is leeching your bandwidth, they aren't paying customers who can use whatever technologies they want.

      On the other hand, the cheapness of cloud bandwidth has eliminated all the legal utility of bit torrent for me. "Large" legal collections of things tend to be available for straight download nowadays.

    2. Re:It's okay when I do it... by Anonymous Coward · · Score: 5, Insightful

      thats not what this is about, it's about people who don't share some bandwith they payed for, it's about people who just use up all the bandwith anywhere they can no matter if they payed for it or if it's gratis or if they're using it illegitimately

    3. Re:It's okay when I do it... by jones_supa · · Score: 2, Insightful

      On the other hand, the cheapness of cloud bandwidth has eliminated all the legal utility of bit torrent for me. "Large" legal collections of things tend to be available for straight download nowadays.

      Cloud distribution is probably also much more efficient.

      Don't get me wrong, I think BitTorrent is very cool technological achievement. But transferring data between semi-random hosts around the globe and opening hundreds of TCP connections per computer while doing it, is like the ultimate way to clog the pipes.

    4. Re:It's okay when I do it... by Grishnakh · · Score: 5, Insightful

      Of course it's more efficient. It's the classic centralization vs. decentralization problem. Centralization is always more efficient overall. However, it has disadvantages: single point of failure, inflexibility, etc. In this case, one big disadvantage is cost: cloud distribution requires signing up for and paying for an account somewhere to store all this data. Peer-to-peer tools don't have this (though they do have the problem of how to distribute the .torrent files, which is semi-centralized but doesn't have to be since anyone can send them around to anyone else directly). Cloud distribution puts the data at the mercy of a single provider; peer-to-peer tools let everyone share data willy-nilly, and as long as one person, anywhere, has the data, it can be replicated to everyone else easily.

      Similarly, it would likely be more efficient if we all gave up our PCs and went back to using mainframes of some sort (or some kind of centralized server infrastructure, not an actual zOS mainframe), with our "PCs" just being thin clients, and us all having user accounts on them. The administration would be much easier and more effective, and the power usage would probably be much less than what we're doing now. However, that would put us at the mercy of a few providers, would likely cost more long-term, at least for those of us who manage our own computers and don't have to regularly call the Geek Squad for personal visits like my dumb neighbor, and would massively limit flexibility since we'd only be able to do things that are pre-approved for the most part.

    5. Re:It's okay when I do it... by Anonymous Coward · · Score: 2, Insightful

      He's probably not selling broadband Internet access to a captive audience. That's why.

    6. Re:It's okay when I do it... by nabsltd · · Score: 4, Informative

      Don't get me wrong, I think BitTorrent is very cool technological achievement. But transferring data between semi-random hosts around the globe and opening hundreds of TCP connections per computer while doing it, is like the ultimate way to clog the pipes.

      BitTorrent uses UDP when done correctly, and pretty much becomes the absolute best way to get data to many computers very quickly.

      A torrent with few seeders isn't very efficient, but one with many hundreds of well-configured peers is hard to beat on overall transfer speed.

    7. Re:It's okay when I do it... by Half-pint+HAL · · Score: 5, Insightful

      Note that I'm NOT talking about using public wi-fi here, just the idea that bittorrent has no place.

      Then you are discussing on the wrong article.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    8. Re:It's okay when I do it... by jeffmeden · · Score: 2

      but, so help me God, if Comcast blocks bittorrent traffic, I'm going to call for heads to roll!

      I really wish I had mod points to downvote this garbage post.

      If tor promised X amount of bandwidth to all of its users, your point would be more valid. That's not the case. Comcast is a PAID service that promises X amount of bandwidth. Tor and Comcast should never, ever be compared in this way. It's a fucking shame that people even think your post is upvoteable.

      The people who use tor for downloading movies/music/etc should be hanged. They're ruining it for those who use it for legit purposes.

      Whoops! Where/when did Tor get into this discussion? Tor and Bittorrent are so far from the same thing that you are going to need to hand in your geek card.

    9. Re:It's okay when I do it... by Jawnn · · Score: 2

      If you took money for a service, and then arbitrarily cut off paying customers of that service, it's most certainly not okay.

    10. Re: It's okay when I do it... by Anonymous Coward · · Score: 2, Insightful

      Ye Olde Bay has been trackerless for the better part of five years. Doesn't seem "fucked" to me.

    11. Re:It's okay when I do it... by Aaden42 · · Score: 2

      So, there’s this thing called “DHT”

      https://en.wikipedia.org/wiki/...

      It’s kinda handy...

    12. Re:It's okay when I do it... by squiggleslash · · Score: 3, Informative

      Because when you sell something, you have an obligation to provide the product sold.

      Sell Internet access? Provide Internet access.

      --
      You are not alone. This is not normal. None of this is normal.
    13. Re:It's okay when I do it... by Anarchduke · · Score: 4, Funny

      But they are both scary Internet-thingies. You must be a cyberterrorist if you if it doesn't scare you.

      --
      who prays for Satan? Who in 18 centuries has had the humanity to pray for the 1 sinner that needed it most? ~Mark Twain
    14. Re:It's okay when I do it... by yacc143 · · Score: 3, Insightful

      Furthernore, having a router that cannot handle that many TCP connections is kind of broken. I'm using a Linux PC as the LAN server/router, and you can blast around what you want, have 10K NATed TCP connections and everything works fine. The cable company's provided "router", OTOH, does not even handle long running ssh connections (especially when they go idle for periods) without any torrent traffic properly. Worse, it does not even send a RST packet, so your local ssh client thinks everything is fine till it tries to send something, ...

    15. Re:It's okay when I do it... by AmiMoJo · · Score: 4, Informative

      Bittorrent tries to transfer data between clients that are close together when possible. That means that often the data can stay within the ISP's internal network, never going out over the clogged pipes connecting to the wider internet. Those pipes are where things get backed up, which is why streaming video providers like Netflix and YouTube offer to give ISPs cache servers to place inside their networks.

      BitTorrent can actually help ISPs, and be more efficient than centralized distribution from that point of view.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    16. Re:It's okay when I do it... by Cyberdyne · · Score: 2

      Actually this is complete bullshit. Torrent'ing in no way "help ISPs".
      The shear number of connections a single person generates by downloading using torrents is ridiculous. It is basically a legal DDoS (well depending on what your downloading). The problems from bittorrent isn't because of the bandwidth used, it is from the number of connections.

      The number of connections is completely irrelevant to any proper ISP (i.e. one which isn't NATting or snooping on your traffic): 100 packets per second on a single TCP connection is precisely the same traffic as 1 packet per second on each of 100 connections, except that it may spread out across more peering/transit links. My ISP literally does not know, let alone care, how many TCP connections I have open right now - only how many packets and how many bytes I'm transferring each way. It does indeed benefit my ISP if more of my traffic is local, since that means it can go via cheaper peering links at LoNAP or LINX rather than the expensive Level3 global transit they use for routing to/from more remote networks.

      Where it does matter, though, is your home router/firewall/NAT device, which does need to keep track of each and every connection while it's active: a hundred or so connections might well overwhelm the available state storage long before you run out of bandwidth. On that level, downloading a single file is the same whether it comes from the ISP itself or another continent.

      Of course, some ISPs are more clueful than others; mine is not only entirely happy for us to run torrent, servers (official policy: do whatever you like except spam; copyright and other issues are up to the police/courts not your ISP) but are even considering hosting their own Tor exit node. No shaping or filtering except the overall bandwidth limit - which caused packet loss for 0.83% of the last week. If only all ISPs could run like that!

  2. Traffic Shaper? by Anonymous Coward · · Score: 2, Insightful

    Maybe he should be more angry at the business owners for using cheap routers and/or not implementing traffic shaping, etc. With a proper traffic shaping implementation, you can absolutely SLAM a connection with Bittorrent usage, even torrents with thousands of seeds and peers, and casual web-browsing remains essentially unaffected. I've download torrents that are several hundred gigabytes, pegging my connection the whole time. Thanks to my PFsense traffic shaper, it doesn't even so much as impact my pings when I play videogames.

    1. Re:Traffic Shaper? by Wonko+the+Sane · · Score: 2

      Regardless of whether or not this is a good idea, if more people start using VPNs in general that would be a good thing.

    2. Re:Traffic Shaper? by Holi · · Score: 2

      Yes, because your local coffee shop owner is always going to be well versed in router configuration and network engineering.

      --
      Sorry, teleporters just kill you and then make a copy. A perfect, soul-less copy.
    3. Re:Traffic Shaper? by Anonymous Coward · · Score: 5, Insightful

      Maybe he should be more angry at the business owners for using cheap routers and/or not implementing traffic shaping, etc.

      Or he could do the correct thing and pay for a portable hotspot of his very own. Once you are paying the bills, you get to dictate the terms.

      If someone else is monopolizing the business owner's bandwidth, that's not your business. You can inform the business owner of the situation, but if they choose to do nothing, that is their choice to make, not yours.

    4. Re:Traffic Shaper? by jeffmflanagan · · Score: 3, Interesting

      They may not be, but if they want to provide working WiFi, they should hire someone who is.

    5. Re:Traffic Shaper? by spire3661 · · Score: 4, Insightful

      He is supposed to HIRE someone that is. Just like you hire someone to install a water heater, or electrical lines. If you are deploying COMMERCIALLY, you should hire someone who knows what the fuck they are doing, or dont bother.

      --
      Good-bye
    6. Re:Traffic Shaper? by WhoBeDaPlaya · · Score: 2

      Well those baristas aren't bimbos right? I mean, they got a degree for something :P

    7. Re: Traffic Shaper? by bill_mcgonigle · · Score: 2

      so go to a coffee shop where the wifi doesn't suck. Problem solved, coffee shops customer-regulated into competitively providing decent internet.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    8. Re:Traffic Shaper? by Luthair · · Score: 2

      Or more likely they just won't provide wifi and everyone loses?

    9. Re:Traffic Shaper? by Holi · · Score: 2

      Or you can bring you own internet with you. If you don't like the service they provide for free, then pay for your own.

      --
      Sorry, teleporters just kill you and then make a copy. A perfect, soul-less copy.
    10. Re: Traffic Shaper? by jeffmeden · · Score: 3, Funny

      so go to a coffee shop where the wifi doesn't suck. Problem solved, coffee shops customer-regulated into competitively providing decent internet.

      Can you recommend one? I have to get the latest season of game of thrones before my buddies find out I am only caught up on true blood. I mean, i have to check my email. That's right, check my email. List please?

    11. Re:Traffic Shaper? by mr_mischief · · Score: 2

      Yes, yes. Every little mom and pop outlet on the corner should hire someone to provide you with your free perk while you sip your $1.50 Americana the next three hours.

    12. Re:Traffic Shaper? by Archangel+Michael · · Score: 3, Insightful

      Assholes are assholes, because they don't give a shit about anyone but themselves. These are borderline sociopaths, who love to skirt around the edges and fuck everyone else up, simply because they can. Giving them "geek street cred" for breaking things for the rest of us is not noble cause.

      Case in point, your suggestion, just because someone can leach 100% of the bandwidth from a mom n pop WiFi setup, will simply mean that nobody will be able to use it, because the choice of having a BitTorrent client running at the coffee shop screwing everyone, or paying someone to configure and maintain it will mean no wifi at the coffee shop. Which means BitTorrent guy will lose out as well, he is just too stupid to care.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    13. Re:Traffic Shaper? by yacc143 · · Score: 2

      Most home routers won't work in a public setting, nowadays:

      Please consider, that by default such devices are setup to provide DHCP from a small range of addresses.

      Typically, SOHO router will provide less than 128 IP addresses. The problem is that they hand it out in a way that is tuned to a more stable environment, in ISP routers herearound I've seen 24h as a typical lease period. So if you have enough repeat customers, are located in an area that has spotty mobile coverage, people tend to get no IP address more often than you would prefer. Notice that in such situation, using a (semi-) random IP address from the network works quite well (but while you can do it easily enough on a laptop via tcpdump, figuring out network address, gateway and so on is not feasible on mobiles/tabs).

    14. Re:Traffic Shaper? by Cramer · · Score: 3, Insightful

      This is complete BS. Sure, if you want to take a $19 Tiger Direct OEM surplus belkin right out of the box, plug it in and walk away, yes, it will suck. (pretty much for any use) But 5 minutes with the setup wizard -- after all, someone has to setup the wifi -- and all that is fixable. Anyone even hinting at needing "industrial" hardware (aka. "enterprise", aka. damned expensive) to host a public hotspot doesn't know jack about running a hotspot -- or is a Cisco/Juniper/etc. vendor. There are hundreds of thousands of shops all over the planet using netgear, linksys, belkin, buffaloe, etc. consumer "crap" for their guest wifi networks; and they work perfectly fine... until a torrenting asshole hops on the network, which is what this guy is trying to fix.

    15. Re:Traffic Shaper? by Stan92057 · · Score: 2

      "Which means BitTorrent guy will lose out as well, he is just too stupid to care."

      No the loss is temporary, it just mean he/she will move on to another that's what assholes do. As you said they just don't care.

      --
      Jack of all trades,master of none
  3. Alternative headline by OzPeter · · Score: 5, Insightful

    Vigilante beats up on people in order to get public wifi access that he believes is rightfully his

    That's what it amounts to. He can't get the access he wants, so he just pushes his way in and takes it.

    If access is so important to your work, why aren't you/they paying for it?

    --
    I am Slashdot. Are you Slashdot as well?
    1. Re:Alternative headline by TubeSteak · · Score: 5, Insightful

      He can't get the access he wants, so he just pushes his way in and takes it.

      As opposed to the bittorrent user(s) who are pushing everyone else out of the way and preventing their access?

      Assuming that both parties are wrong does not logically lead to the conclusion that their wrong acts are equivalent.
      I'm on the side of preserving the common good, not protecting the random data hog.

      --
      [Fuck Beta]
      o0t!
    2. Re:Alternative headline by OzPeter · · Score: 4, Insightful

      As opposed to the bittorrent user(s) who are pushing everyone else out of the way and preventing their access?

      Its one thing to do so with permission from the network owners .. its another thing to wade in and beat up on people just so you can get what you want.

      Two wrongs do not make a right.

      --
      I am Slashdot. Are you Slashdot as well?
    3. Re:Alternative headline by Anonymous Coward · · Score: 2, Insightful

      A very different view on it. In fact a very good view to take on it. AT&T, T-Mobile, Sprint, and Verizon all have data only lines you can buy. They are tad pricy but if access is that important...

      It would basically be like going to a public park and deciding you do not want any dogs other people brought around and bringing along a paint ball gun to run them off. But your dog is OK.

      So I predict an escalation in the 'war'. Bittorrent apps detecting this behavior. Then showing macaddr and machine name and ip of the computer doing it. Then someone else just coming up with an auto retaliate program that DOSs the computer off the network all together using 802.11 protocols.

      Basically this story is 'cheap ass doesnt like the behavior of other cheap asses and builds tool to bully other cheap asses'.

    4. Re:Alternative headline by Anonymous Coward · · Score: 5, Insightful

      Assuming that both parties are wrong does not logically lead to the conclusion that their wrong acts are equivalent.
      I'm on the side of preserving the common good, not protecting the random data hog.

      In one case a person can't access Internet as he wants as an unfortunate side effect of the others usage and bad network configuration.
      In the other case the other person can't access Internet as he wants due to actively being suppressed by the first user.
      Yes, clearly the two wrong acts aren't equivalent. The torrent user is just an inconsiderate asshole while this dude is an outright malicious asshole.

    5. Re:Alternative headline by niado · · Score: 5, Informative

      As opposed to the bittorrent user(s) who are pushing everyone else out of the way and preventing their access?

      Its one thing to do so with permission from the network owners .. its another thing to wade in and beat up on people just so you can get what you want.

      Two wrongs do not make a right.

      This is not in the summary, but in his readme on github the submitter states "After talking with the frustrated non-technical people who owned/managed them, I wrote this program to help network users and owners."

      The implication is that this tool is written for use by whomever manages the network. Most networks would have a "no bittorrent" rule, if the network owner was savvy enough to know this. The tool is an interesting enforcement mechanism.

    6. Re:Alternative headline by Racemaniac · · Score: 2

      your only mistake is that the bittorrent user doesn't affect one other user, but all of the people on the public wifi.
      So it's one idiot ruining it for the entire cafe, vs one vigilante shutting him up.
      Yes it's a dirty trick, but it shouldn't be needed...

    7. Re:Alternative headline by Solandri · · Score: 5, Interesting

      on github the submitter states "After talking with the frustrated non-technical people who owned/managed them, I wrote this program to help network users and owners."

      While the program can be used with the network owner's permission, the fact that it can more easily be used without permission makes it rather dubious.

      I think he's/we're going about this the wrong way. If this is really a widespread problem afflicting non-technical people trying to run a public wi-fi hotspot, what needs to happen is for router configs to limit the number of connections from a single MAC address by default. If you're a gamer or running bittorrent on your own network, it's easy enough to change those configs. But on a public hotspot, they're the ones who'll be forced to contact the network owners, not the people trying to get legit access.

      I'm also a bit skeptical that the submitter really talked with the owner. If you've got access to the router via the owner, the most obvious thing to try first is QoS. Assign torrent traffic to low priority, default everything else to medium (to catch encrypted bittorrent), and give ports 80 and 443 (http and https) high priority to keep web browsing customers happy. You need to be careful about giving ssh high priority because it's possible to run a tunnel over ssh and do your torrenting that way.

    8. Re:Alternative headline by Penguinisto · · Score: 4, Insightful

      Two wrongs do not make a right.

      As odd as this is going to sound, I disagree. A simple blanket statement that makes no allowance for corner cases? I'm going to need something more than that to be convinced.

      Let me explain...

      In this particular instance, the "wrong" of hogging bandwidth is far, far greater than the "wrong" of blasting the hogs into oblivion. Even though privately-owned and run, one should expect at least some sense of common courtesy when using a resource like wifi. If you want to download pr0n and/or ripped movies, for heaven's sake do it at home and pay for the pipe. There are very few legitimate reasons to run multi-GB BitTorrents at full-bore in a coffee shop, and I promise you that there are simply not that many people who desperately need an emergency .iso download of CentOS or Ubuntu away from home.

      Certainly, the guy could get a hotspot (as suggested), but that's like telling the guy to go buy his own property if they want a quiet park to sit in when a small group in the public park has a constant loud party going on. Also, hotspots don't always work as advertised - I lost count of the times I've had to duck into a rural/small-town MickeyD's or coffee shop because the stupid employer-issued hotspot/3g/4g device didn't have enough bars to get a decent connection.

      Maybe I sound like a dick for cheering this guy on, but think this through for a moment - if coffee shop owners start getting slammed with MPAA/RIAA C&D orders, if their costs skyrocket, and if they generally figure the wifi to be more trouble than it's worth, then eventually the "free" wifi will become metered, will be QoS'd down to practically nothing, or worse. None of us want that. I like knowing that if my normal connectivity goes tits-up, I can duck into a coffee shop, buy a cup of joe, and use their wifi to do what needs done until I can get connected normally again.

      It's abusers of the system that eventually become the reason why we can't have nice things, so this little "wrong" is a pretty nice way to keep bigger "wrong"s to a minimum, no?

      --
      Quo usque tandem abutere, Nimbus, patientia nostra?
    9. Re:Alternative headline by niado · · Score: 2

      on github the submitter states "After talking with the frustrated non-technical people who owned/managed them, I wrote this program to help network users and owners."

      While the program can be used with the network owner's permission, the fact that it can more easily be used without permission makes it rather dubious.

      True, but it is just a tool that can be used irresponsibly, like any other. An interesting comparison would be bittorrent itself.

      If this is really a widespread problem afflicting non-technical people trying to run a public wi-fi hotspot, what needs to happen is for router configs to limit the number of connections from a single MAC address by default.

      Yes that would be an ideal solution, though it would require manufacturer intervention, which is unlikely at best.

      If you've got access to the router via the owner, the most obvious thing to try first is QoS.

      I certainly agree. The submitter mentions several technical solutions including QoS on his github page, and says they are better than using his "bithammer" tool. The advantage of his tool is that it does not require much involvement on the part of a non-technical proprietor.

    10. Re:Alternative headline by Grishnakh · · Score: 3, Insightful

      Exactly right. No one should have the right to beat up on a bully, and if they do, they should be punished greatly for it. Only the first bully is allowed to be a bully, and he shouldn't face any repercussions at all for his actions. But if anyone tries standing up to him because the authorities aren't bothering to do anything, or are actively encouraging him, those people should be brutally put down.

      That's the way we handle bullying in schools, after all.

    11. Re:Alternative headline by toygeek · · Score: 3, Insightful

      This, a thousand times owner. I rely on 'net connectivity for a living. If my internet drops, I'm packing my bags and going to one of my backup locations. One of those is a McDonalds, another is a local gas station that has wifi (?) and a friends house. The friends house is my first pick of course and usually the one I get. But if I have to go to McDonalds or the gas station and somebody is making it impossible for me to make a living and feed my family because someone is torrenting, I will feel every bit justified in using bithammer. Why?

      Because I have every right to use the network as the guy making it impossible for me to use it.

    12. Re:Alternative headline by amiga3D · · Score: 3, Funny

      Best analogy I've seen in a while. But can you do it as a car analogy?

    13. Re:Alternative headline by mlts · · Score: 4, Interesting

      Tragedy of the commons.

      I see this during the weeks that there are festivals in Austin. People camping tables at local cafes, not ordering anything, but using the wireless network for Netflix, with an occasional uTorrent downloading a movie to watch later on.

      One coffee shop here in Austin chucked their Wi-Fi because the tables kept occupied with people who didn't even at least buy a drink. As soon as they stopped doing that, their business went up, since they had paying clients again.

      Another place turned off their APs from 11 to 1, and again, their business is booming.

      If I had a shop, I'd have a Wi-Fi system that would use one time passwords (doesn't have to be extremely secure... something like AOL's old system with two words and a hyphen between them is good enough) which grant the user time, as well as a block of bandwidth. These would be free of charge with a purchase. This way, if someone wants to download a 22 gig BD-R rip, they can... but they will be making a lot of purchases. Elaborating on this, there could always be two tiers, one paid for with the one use password, and free... so people who made purchases would have higher precedence than the person who is at work, but whose laptop is in their car in the parking lot with a terabyte torrent chugging away.

      It gets worse when you go RV-ing, to the point where a device with tethering or a personal Mi-Fi-like device is an absolute requirement. There are just too many people who will clog up a RV park's Wi-Fi, making it unusable for everyone else. Plus, for decent Wi-fi, it is expensive... and RV parks don't make that much money per square meter of space relative to a hotel or coffee shop.

    14. Re:Alternative headline by thegarbz · · Score: 2

      You have every right to use a network as presented. If the network doesn't offer QoS take it up with the provider. You have no business banning others because you're oh so important.

  4. Free Wifi by Anonymous Coward · · Score: 5, Insightful

    You're using a free public network and selectively booting the users who don't fit into your specified profile.
    Why not just buy your own connection and stop being such a fucking Nazi?

    1. Re:Free Wifi by Anonymous Coward · · Score: 2, Insightful

      If the torrent leeches don't care, why should he? And if you are neither him or a torrent leech, how is it your business to judge?

  5. Wow by ceoyoyo · · Score: 4, Insightful

    Other people are using a *public* wifi connection you're connected to, using some of the bandwidth you feel you're entitled to, so you attack them with a cache poisoning exploit?

    Hopefully you do this to someone who can hit back. Or just get arrested.

    1. Re:Wow by Urkki · · Score: 2

      Other people are using a *public* wifi connection you're connected to, using some of the bandwidth ...

      They are not "using some of the bandwidth". They are DOSsing the router by filling its connection table. Quite different.

  6. Self-entitled much? by Anonymous Coward · · Score: 5, Interesting

    This basically boils down to: "My use is more important than your use, under a flimsy excuse that your use could potentially interfere with my use, I will deliberately abuse the network in order to wilfully interfere with your use."

    The computer abuse act and FCC guidelines about wilful interference comes to mind....

  7. Re:Don't do that by Wonko+the+Sane · · Score: 3, Insightful

    You can ask this person to stop doing it, because he's not anonymous.

    That does not fix the problem that what he's doing is possible in the first place.

  8. IP-Based Banning on a Dynamic Network? by dannywoodz · · Score: 3, Informative

    Right, so someone comes in, gets an IP address via DHCP, turns on BitTorrent and gets banned 'as long as the program [BitHammer] is running'. Rinse, lather, repeat: now you have no traffic on your network, because all IP addresses in your subnet are on the banlist. Niiiiice.

    1. Re:IP-Based Banning on a Dynamic Network? by Opportunist · · Score: 3, Informative

      Not really, it's just as easy to automate as the rest.

      It shouldn't take long to poison the whole access point. If you run a packet generator it should take a few seconds. Top.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    2. Re:IP-Based Banning on a Dynamic Network? by stewsters · · Score: 3, Interesting

      The fun part is when you spoof the MAC of the ARP cache poisoner.

  9. Look Michael Cole... by Anonymous Coward · · Score: 4, Insightful

    I don't like your announcing on WWE programming, and I don't like Bittorrent BanHammer. Please leave Slashdot.

  10. an opinion from the self entitled generation by Fnord666 · · Score: 5, Insightful

    Over the last year, I've been plagued by rogue BitTorrent users who've crept onto these public hostpots either with a stolen/cracked password, or who lie right to my face (and the Wi-Fi owners) about it.

    Huh? They lie right to your face about it? Wait a minute. Who the hell are you anyway and what do you have to say about it? If it bothers you, buy yourself a mobile hotspot and STFU. At least maybe they are actually buying food/coffee/whatever and aren't just using the cafe as their personal office. What's the next complaint? That their conversations are too loud and you can't hear your conference calls?

    --
    'The tyrant will always find pretext for his tyranny.' - Aesop's Fables
    1. Re:an opinion from the self entitled generation by omtinez · · Score: 5, Insightful

      Mod parent up. It's the tragedy of the commons, but taking justice into your own hands makes you just as bad if not worse than the BitTorrent users

    2. Re:an opinion from the self entitled generation by ilsaloving · · Score: 2, Insightful

      Bittorrent users are effectively performing a denial of service attack on an entire network that doesn't belong to them.

      Please explain how running a script like this, with the owners permission, makes the script-writer worse than the torrenters?

      The torrenters do not have a god given right to abuse someone else's network. I've been in places where the wifi is basically useless, but the shop is almost empty, which means there are people consuming wifi bandwith and not even having the courtesy of being a patron of said shop.

      I'm sorry, but people like that can go fuck themselves. If you can't express even the simplest forms of common courtesy, you don't deserve any in return.

    3. Re:an opinion from the self entitled generation by ilsaloving · · Score: 2

      Assuming you were even correct, you will be very hard pressed to find a single public network owner be upset that someone took it upon themselves to clean up their network for them.

      Businesses provide wifi as a service to help bring in paying customers. The likelyhood that a paying customer is going to come in and suddenly start torrenting a boatload of crap is exceedingly low.

      Case in point... I've been to places where the network was hosed, but I was the only person there with a computer. The bandwidth was all being consumed by people who weren't even customers of the establishment. What are the possible options? You can't canvas an entire neighbourhood looking for people abusing the wifi connection. Call the police? Yeah right.

      So along comes someone who is fed up and finally does something about it. Assuming that he got the owners permission, he just performed a public service for free, to the benefit of everyone else that wanted to use that network. That makes him a hero, not a criminal.

      What I find particularly sad is people like you who would rather defend abusers and vilify good samaritans, instead of the other way around. This is why trolls will always win, because it's easier for people like you to target and pull down the few who actually contribute something useful to society, instead of railing against the people who are instigating genuine harm.

  11. Re:It's hard being an editor, sure. by ArcadeMan · · Score: 4, Funny

    Just because is missing words does not mean it a bad article.

  12. Re:You crippled your wifi? by TheRealMindChild · · Score: 3, Informative

    This doesn't have to do with bandwidth. It has to do with the size of the connection table... a table used to keep track of which internal/external addresses have established connections. With these cheap residential routers, they have very little memory, so when you have a hundreds of connections, it fills the table and things go to shit.

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  13. Re:It's hard being an editor, sure. by war4peace · · Score: 3, Informative

    It's kind of convoluted but still technically correct.
    "bans BitTorrent users your local sub-net" = "prohibits them your local sub-net." = "forbids them your local sub-net." = "forbids your subnet to them".

    I agree it could have been reworded but it's not a complete fuck-up.

    --
    ...gis sdrawkcab (usually not responding to ACs; don't bother posting as AC)
  14. bandwidth isn't the problem by Chirs · · Score: 4, Insightful

    The issue is that cheap access points/firewalls run out of resources trying to manage (and possibly do connection-tracking) on all the different connections. If a bittorrent user suddenly opens up a few thousand additional connections (regardless of actual bandwidth) then that ends up knocking everyone else off that firewall.

    The bittorrent users could prevent the problem by limiting how many connections are allowed per torrent, but it sounds like they're not doing that.

    Rather than forcing bittorrent users off the network entirely, it would be better if the access point itself limited the number of connections per MAC address to something reasonable. This would prevent the symptom from occurring.

    1. Re:bandwidth isn't the problem by ceoyoyo · · Score: 3, Insightful

      The issue is that this guy is using a security weakness in a network protocol to redirect the traffic of users he doesn't like to himself. I'm sure you've heard the idea that the ends don't justify the means?

      Should hotels, coffee shops and other "public" wifi providers use better APs? Probably. Should APs in general be made better? Likely. Should bittorrent users be more considerate? Yes. Is this guy an asshole committing crimes on other people's networks in his own self-interest? Absolutely.

  15. Incredible by ArcadeMan · · Score: 4, Interesting

    I'm shocked by some of the replies so far. Some of you are furious because this guy is trying to limit the people who abuse the system?

    Imagine you are at a buffet. It's all-you-can-eat but with no instructions or limits on the way to do it. Now imagine there's a few people at the front of the line and they're putting all the food available into buckets, leaving nothing but scraps for everyone else. Would you be pissed at those people or at the one who would stand up and yell "Hey, leave some for the others"?

    1. Re:Incredible by Anonymous Coward · · Score: 5, Insightful

      I'd be upset if his solution was to poison the food so the people that took it all started vomiting.

    2. Re:Incredible by ArhcAngel · · Score: 2

      I didn't realize badanalogyguy had another account.

      In your scenario bithammer would be you taking out a hammer and hitting the guy with the bucket until he stopped taking food most likely due to the fact he is now dead.

      --
      "A person is smart. People are dumb, panicky dangerous animals and you know it." - K
    3. Re:Incredible by SecurityGuy · · Score: 2

      He's not yelling anything. He is bodily throwing out the people holding the buckets. That might well be a reasonable response if he was the restaurant owner, but he's not.

      I wouldn't care if this guy ran this on HIS network. He has no business doing it on someone else's.

      Also, crap article. This doesn't belong on slashdot.

  16. The arms race continues by inhuman_4 · · Score: 5, Interesting

    The BitHammer relies on Local Peer Disocovery which gives priority to peers that are close to the bit torrent client. This is good for ISPs because it tries to keep the bit torrent traffic inside their own network instead of hammering peering connections. This also makes connections faster for the bit torrent client.

    If you want to get around BitHammer you just need to turn off Local Peer Discovery, if BitHammer can't find you it can't block you. But now the ISPs are going to get screwed because Local Peer Discovery is turned off. This will also make the torrents slower for the client.

    Sounds like a loose/loose situation to me.

  17. When all you know how to use is a (ban) hammer.... by jazzdude00021 · · Score: 2

    ....every problem tends to look like a nail.

    If you read poster's GitHub page, he even admits there are better ways to do this than using his program. This program is not an elegant solution. It is the equivalent of using duct tape and plastic wrap to replace a broken car window. Sure, it solves the problem, but it's not a good longterm solution. Best usage case: solve the problem of BitTorrent users hogging the connection until proper QoS is set up.

  18. Re:You crippled your wifi? by spire3661 · · Score: 3

    Then maybe the business should be using a commercial level router in a commercial setting......

    --
    Good-bye
  19. Congratulations and fuck you by Just+Some+Guy · · Score: 4, Insightful

    This is not your Internet. If a public hotspot is being overloaded by any client, not just someone's porn torrent, then that's between the user and the network admin. It's not your job or your right to be The Internet Police. Running a BT client on a public net is a dickish thing to do, but I can imagine scenarios when I might need to do it myself: "oh crap, my root drive is horked and I desperately need to download a Debian USB image. Good thing there's a Starbucks around the block!"

    A sane policy would be for the net admins to limit the number of open connections or UDP sessions from a single machine. An insane policy is to think that "my technodick is bigger than yours and I'm going to knock you offline" is less than sociopathic.

    Guess what, OP: I don't like your SSH sessions interfering with my Skype. Check out my new SSHWACK Banhammer that frees open networks from latency-hogging assholes like you. Are you sure you want to start this game?

    --
    Dewey, what part of this looks like authorities should be involved?
  20. Re:Misread the summary by Opportunist · · Score: 2

    It usually goes hand in hand. Someone describing himself as a "digital nomad" is usually on par in assholeness as the average "carbon neutral" person or anyone else who turns what people simply do into their lifestyle.

    I can't help it, "digital nomad" always sounds to me like the internet version of the guy who keeps bumping from one friend to the next and camping on their couch 'til they get tossed out 'cause they're too cheap to buy or rent an apartment themselves.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  21. It's broken. by warren.oates · · Score: 2
    [~/src/bithammer-master]% ./bithammer
    File "./bithammer", line 57
    print "Finding network gateway ..."

    SyntaxError: Missing parentheses in call to 'print'

    So it won't work anyway.

    --
    Doh.
  22. So why are you entitled to mess with the network? by bobbied · · Score: 3, Insightful

    You write a utility that scans network traffic (strike 1) so you can find traffic *you* don't agree with (strike 2). Then, you engage in a DOS attack to stop it? (Strike 3). You are out; at least you should be.

    What on earth entitles you to do such nonsense on a network you don't own? The business owner can do what he wants and allow what he wants. If you want to offer to run your little hack, after explaining what it does and getting their permission have fun, but you have ZERO right to just march in and start making a mess of somebody's ARP cache because you don't like what's going on. Morally, You need permission to do this kind of thing on a network you don't own or legally control, so until you have permission BUTT OUT!

    You probably yell at your neighborhood kids for riding their bikes in the street or not crossing at the corners after the full "Stop, Look, and Listen" routine too.... If it's not your network, keep your packet sniffing and ARP poisoning attacks to yourself. You don't know if the BitTorrent traffic isn't the owner's laptop downloading CentOS in the back room or some guy working for the MPAA who hacked in from 2 miles away, and it's NONE OF YOUR BUSINESS.

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
  23. Re:It's hard being an editor, sure. by Wootery · · Score: 2

    I'd agree if the word denies were used in place of bans. When using bans, it doesn't seem correct to omit the from.

  24. Re:It's hard being an editor, sure. by pjt33 · · Score: 2

    I was more struck by the hostpots. I'm not entirely sure what they are, but I think it probably means that the owners of the cafes where OP does his web browsing serve their own fingers for cannibalistic patrons.

  25. Can I do it on Tomato? by emil · · Score: 2

    It would be nice if this could get translated down into something that could run out of busybox on a WRT54G. I've got the latest Shibby Tomato with bandwidth limiting, and this would be a nice add-on.

  26. Re:So why are you entitled to mess with the networ by hexchaimen · · Score: 3, Informative

    ^Agreed! There are so many legit reasons to utilize torrents, ugh! Being an admin of over a dozen public wifi locations, the largest having nearly 1000 clients a day, with 30 WAPs. I never block bitTorrent only traffic shape to extreme cases (eg some one DL at 100Mbps for over 15mins will be bumped to a 10Mbps speed), and each client is in a /30 subnet to protect users from self righteous people like this.

  27. Fallacies by Anonymous Coward · · Score: 2, Informative

    One wrong is greater than another? In this instance, no. Neither own the network, both are abusing it in their own ways. I like hat you did there, with the ripped movies/porn reference. Cause those are the only things people do with bittorrent, right? That's why their wrong is greater, cause they must be stealing from both ends, bandwidth AND content, right?

    There are already tools available for network owners to manage their networks with a minimum of fuss, QoS, port blocking and other tools right in the router their IT guy already set up for them. This is a greifer tool, pure and simple. If it can knock a bittorrent user off the network, it can knock anyone off the network.

    This uses ARP spoofing as a way to deny service to another legitimate user of the network. The same thing can be used to defend or even fix this issue. This tool will work for maybe a few weeks before torrent clients upgrade to defend against it. Probably by doing the same thing but redirecting ALL local traffic to the bittorrent user instead. Let's face it, a few extra connections form people trying to watch Youtube vids and browse websites and email really aren;t gonna affect the leech much if he's busy downloading gobs of files.

    This guy is an idiot anyways, as the people clogging up his local wifi spots are not torrent users, but everyone else around him. The kid watching youtube, the girl watching netflix, the guy downloading sports highlight clips from ESPN's website....video is here and business connections are actually pretty shitty on a small scale like your local coffeehouse or a hotel. Gigabit would help but it ain't here for 99% of America.

    This guy has made a hacking tool for small networks. A little tweaking and you own the network instead and can use ALL the bandwidth. Just read his github page, the guy basically admits that its a hacking tool, it won't work at least half the time to "fix" the problem it claims to fix, and the bittorrent use may not even be the problem in the first place.

    This shouldn't be on Slashdot in its current context, its an advertisement for a scriptkiddie tool.

  28. not mooching == cocksucker? by raymorris · · Score: 2

    >> is leeching your bandwidth, they aren't paying cu
    >> ... eliminated all the legal utility of bit torrent FOR ME

    > corporate cocksucker

    Let me see if I understand you correctly. Because IKR pays his own bills rather than mooching off his neighbors, and prefers to download legitimate copies rather than malware-infested torrents, he's a corporate cocksucker? Lay off the drugs, dude. And get a job.

  29. efficient =~ !fast by raymorris · · Score: 2, Insightful

    > A torrent with few seeders isn't very efficient, but one with many hundreds of well-configured peers is hard to beat on overall transfer speed.

    From that phrasing, it almost sounds like you're supposing that more speed is more efficient. Faster means less efficient more often than not. For something easy to visualize, a moped going 20 MPH requires several few ounces of fuel per hour. To go several thousand miles per hour, an X-37 must burn around 15,000 pounds of fuel per MINUTE.

    Downloading from many sources means taking up many resources. Downloading from one source (the closest one) would be significantly more efficient, and almost as fast.

  30. Thanks for the comments by michaelcole · · Score: 4, Informative

    Hey everybody, thanks for the comments. Most of you probably won't ever see this comment, but I appreciate your interest and feedback about the program. Believe it or not, I thought about alot each of the ethical issues yall brought up. And well, frankly there isn't a good way for strangers to work together anonymously. That's probably a good definition of a stranger. If you have any questions, I'm happy to answer them here. Anyways thanks again and best wishes! Mike