goodhosts / cli

Simple hosts file management in a Go cli
MIT License
29 stars 8 forks source link

Goodhosts issues on OSX #16

Closed Mte90 closed 4 years ago

Mte90 commented 4 years ago

We are getting some crashes on OSX.

==> default: Issue executing goodhosts CLI: panic: runtime error: slice bounds out of range [381:379]
==> default: 
==> default: goroutine 1 [running]:
==> default: github.com/goodhosts/hostsfile.(*Hosts).removeByPosition(...)
==> default:    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:297
==> default: github.com/goodhosts/hostsfile.(*Hosts).combineIp(0xc0000d9ac8, 0xc0000145e0, 0x7)
==> default:    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:285 +0x582
==> default: github.com/goodhosts/hostsfile.(*Hosts).RemoveDuplicateIps(0xc0000d9ac8)
==> default:    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:224 +0x1f3
==> default: github.com/goodhosts/hostsfile.(*Hosts).Clean(0xc0000d9ac8)
==> default:    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:130 +0x40
==> default: github.com/goodhosts/cli/cmd.remove(0xc00001ea00, 0x3, 0x4)
==> default:    /home/runner/work/cli/cli/cmd/remove.go:75 +0x7f3
==> default: github.com/urfave/cli/v2.(*Command).Run(0xc0000127e0, 0xc00001e840, 0x0, 0x0)
==> default:    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/command.go:161 +0x4b9
==> default: github.com/urfave/cli/v2.(*App).RunContext(0xc000001200, 0x127d980, 0xc00001a080, 0xc000010050, 0x5, 0x5, 0x0, 0x0)
==> default:    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:302 +0x790
==> default: github.com/urfave/cli/v2.(*App).Run(...)
==> default:    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:211
==> default: main.main()
==> default:    /home/runner/work/cli/cli/main.go:55 +0x48e

Seems the line with the issue is https://github.com/goodhosts/hostsfile/blob/master/hosts.go#L297

luthermonson commented 4 years ago

this is consistent or intermittent? i saw another issue about remove by position, think it's related?

Mte90 commented 4 years ago

We have 2 users with this issue, so I am looking to release an old version of the plugin with a previous release.

tomjn commented 4 years ago

I downloaded and ran sudo goodhosts clean and got the same error:

❯ sudo goodhosts clean
panic: runtime error: slice bounds out of range [362:361]

goroutine 1 [running]:
github.com/goodhosts/hostsfile.(*Hosts).removeByPosition(...)
    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:297
github.com/goodhosts/hostsfile.(*Hosts).combineIp(0xc0000fbc18, 0xc0000c2540, 0x7)
    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:285 +0x582
github.com/goodhosts/hostsfile.(*Hosts).RemoveDuplicateIps(0xc0000fbc18)
    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:224 +0x1f3
github.com/goodhosts/hostsfile.(*Hosts).Clean(0xc0000fbc18)
    /home/runner/go/pkg/mod/github.com/goodhosts/hostsfile@v0.0.6/hosts.go:130 +0x40
github.com/goodhosts/cli/cmd.clean(0xc0000908c0, 0x2, 0x2)
    /home/runner/work/cli/cli/cmd/clean.go:29 +0x7f
github.com/urfave/cli/v2.(*Command).Run(0xc0000aac60, 0xc0000907c0, 0x0, 0x0)
    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/command.go:161 +0x4b9
github.com/urfave/cli/v2.(*App).RunContext(0xc00008e180, 0x127d980, 0xc000096008, 0xc0000a0020, 0x2, 0x2, 0x0, 0x0)
    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:302 +0x790
github.com/urfave/cli/v2.(*App).Run(...)
    /home/runner/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:211
main.main()
    /home/runner/work/cli/cli/main.go:55 +0x48e
tomjn commented 4 years ago

adding and removing is unaffected, it's just the clean operation that has the issue

tomjn commented 4 years ago

My hosts file for coomparison:

/etc/host ``` 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 0.0.0.0 coin-hive.com ::1 testwplocaltest.local #Local Site 127.0.0.1 testwplocaltest.local ::1 www.testwplocaltest.local #Local Site 127.0.0.1 www.testwplocaltest.local # End of section # Added by Docker Desktop # To allow the same kube context to work on the host and the container: 127.0.0.1 kubernetes.docker.internal 192.168.50.4 vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test two.wordpress.test vvv vvv.test one.wordpress.test two.wordpress.test vvv vvv.test one.wordpress.test two.wordpress.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test vvv vvv.test vvv vvv.test vvv vvv.test vvv vvv.test vvv vvv.test vvv vvv.test vvv vvv.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io two.wordpress.test multisite.test gitty.test vipone.test tomjn.test # NoCoin Filter List # Blocking Web Browser Bitcoin Mining # # Homepage: https://github.com/hoshsadiq/adblock-nocoin-list/ # Contribute: https://github.com/hoshsadiq/adblock-nocoin-list/issues # Changelog: https://github.com/hoshsadiq/adblock-nocoin-list/commits/master/hosts.txt # License: https://mit-license.org/ # # Last modified: 18 Mar 2020 # 0.0.0.0 cnhv.co 0.0.0.0 coin-hive.com 0.0.0.0 coinhive.com 0.0.0.0 authedmine.com 0.0.0.0 api.jsecoin.com 0.0.0.0 load.jsecoin.com 0.0.0.0 server.jsecoin.com 0.0.0.0 miner.pr0gramm.com 0.0.0.0 minemytraffic.com 0.0.0.0 crypto-loot.com 0.0.0.0 cryptaloot.pro 0.0.0.0 cryptoloot.pro 0.0.0.0 coinerra.com 0.0.0.0 coin-have.com 0.0.0.0 minero.pw 0.0.0.0 minero-proxy-01.now.sh 0.0.0.0 minero-proxy-02.now.sh 0.0.0.0 minero-proxy-03.now.sh 0.0.0.0 api.inwemo.com 0.0.0.0 rocks.io 0.0.0.0 adminer.com 0.0.0.0 ad-miner.com 0.0.0.0 jsccnn.com 0.0.0.0 jscdndel.com 0.0.0.0 coinhiveproxy.com 0.0.0.0 coinblind.com 0.0.0.0 coinnebula.com 0.0.0.0 monerominer.rocks 0.0.0.0 cdn.cloudcoins.co 0.0.0.0 coinlab.biz 0.0.0.0 go.megabanners.cf 0.0.0.0 baiduccdn1.com 0.0.0.0 wsp.marketgid.com 0.0.0.0 papoto.com 0.0.0.0 flare-analytics.com 0.0.0.0 www.sparechange.io 0.0.0.0 static.sparechange.io 0.0.0.0 miner.nablabee.com 0.0.0.0 m.anyfiles.ovh 0.0.0.0 www.coinimp.com 0.0.0.0 www.coinimp.net 0.0.0.0 www.freecontent.bid 0.0.0.0 www.freecontent.date 0.0.0.0 www.freecontent.faith 0.0.0.0 www.freecontent.loan 0.0.0.0 www.freecontent.racing 0.0.0.0 www.freecontent.win 0.0.0.0 www.blockchained.party 0.0.0.0 www.hostingcloud.download 0.0.0.0 www.cryptonoter.com 0.0.0.0 www.mutuza.win 0.0.0.0 crypto-webminer.com 0.0.0.0 cdn.adless.io 0.0.0.0 hegrinhar.com 0.0.0.0 verresof.com 0.0.0.0 hemnes.win 0.0.0.0 tidafors.xyz 0.0.0.0 moneone.ga 0.0.0.0 plexcoin.info 0.0.0.0 www.monkeyminer.net 0.0.0.0 go2.mercy.ga 0.0.0.0 coinpirate.cf 0.0.0.0 d.cpufan.club 0.0.0.0 krb.devphp.org.ua 0.0.0.0 nfwebminer.com 0.0.0.0 cfcdist.gdn 0.0.0.0 node.cfcdist.gdn 0.0.0.0 webxmr.com 0.0.0.0 xmr.mining.best 0.0.0.0 webminepool.com 0.0.0.0 webminepool.tk 0.0.0.0 hive.tubetitties.com 0.0.0.0 playerassets.info 0.0.0.0 tokyodrift.ga 0.0.0.0 webassembly.stream 0.0.0.0 www.webassembly.stream 0.0.0.0 okeyletsgo.ml 0.0.0.0 candid.zone 0.0.0.0 webmine.pro 0.0.0.0 andlache.com 0.0.0.0 bablace.com 0.0.0.0 bewaslac.com 0.0.0.0 biberukalap.com 0.0.0.0 bowithow.com 0.0.0.0 butcalve.com 0.0.0.0 evengparme.com 0.0.0.0 gridiogrid.com 0.0.0.0 hatcalter.com 0.0.0.0 kedtise.com 0.0.0.0 ledinund.com 0.0.0.0 nathetsof.com 0.0.0.0 renhertfo.com 0.0.0.0 rintindown.com 0.0.0.0 sparnove.com 0.0.0.0 witthethim.com 0.0.0.0 1q2w3.fun 0.0.0.0 1q2w3.me 0.0.0.0 bjorksta.men 0.0.0.0 crypto.csgocpu.com 0.0.0.0 noblock.pro 0.0.0.0 miner.cryptobara.com 0.0.0.0 digger.cryptobara.com 0.0.0.0 dev.cryptobara.com 0.0.0.0 reservedoffers.club 0.0.0.0 mine.torrent.pw 0.0.0.0 host.d-ns.ga 0.0.0.0 abc.pema.cl 0.0.0.0 js.nahnoji.cz 0.0.0.0 mine.nahnoji.cz 0.0.0.0 webmine.cz 0.0.0.0 www.webmine.cz 0.0.0.0 intactoffers.club 0.0.0.0 analytics.blue 0.0.0.0 smectapop12.pl 0.0.0.0 berserkpl.net.pl 0.0.0.0 hodlers.party 0.0.0.0 hodling.faith 0.0.0.0 chainblock.science 0.0.0.0 minescripts.info 0.0.0.0 cdn.minescripts.info 0.0.0.0 miner.nablabee.com 0.0.0.0 wss.nablabee.com 0.0.0.0 clickwith.bid 0.0.0.0 dronml.ml 0.0.0.0 niematego.tk 0.0.0.0 tulip18.com 0.0.0.0 p.estream.to 0.0.0.0 didnkinrab.com 0.0.0.0 ledhenone.com 0.0.0.0 losital.ru 0.0.0.0 mebablo.com 0.0.0.0 moonsade.com 0.0.0.0 nebabrop.com 0.0.0.0 pearno.com 0.0.0.0 rintinwa.com 0.0.0.0 willacrit.com 0.0.0.0 www2.adfreetv.ch 0.0.0.0 minr.pw 0.0.0.0 new.minr.pw 0.0.0.0 test.minr.pw 0.0.0.0 staticsfs.host 0.0.0.0 cdn-code.host 0.0.0.0 g-content.bid 0.0.0.0 ad.g-content.bid 0.0.0.0 cdn.static-cnt.bid 0.0.0.0 cnt.statistic.date 0.0.0.0 jquery-uim.download 0.0.0.0 cdn.jquery-uim.download 0.0.0.0 cdn-jquery.host 0.0.0.0 p1.interestingz.pw 0.0.0.0 kippbeak.cf 0.0.0.0 pasoherb.gq 0.0.0.0 axoncoho.tk 0.0.0.0 depttake.ga 0.0.0.0 flophous.cf 0.0.0.0 pr0gram.org 0.0.0.0 authedmine.eu 0.0.0.0 www.monero-miner.com 0.0.0.0 www.datasecu.download 0.0.0.0 www.jquery-cdn.download 0.0.0.0 www.etzbnfuigipwvs.ru 0.0.0.0 www.terethat.ru 0.0.0.0 freshrefresher.com 0.0.0.0 api.pzoifaum.info 0.0.0.0 ws.pzoifaum.info 0.0.0.0 api.bhzejltg.info 0.0.0.0 ws.bhzejltg.info 0.0.0.0 d.cfcnet.top 0.0.0.0 vip.cfcnet.top 0.0.0.0 eu.cfcnet.top 0.0.0.0 as.cfcnet.top 0.0.0.0 us.cfcnet.top 0.0.0.0 eu.cfcdist.loan 0.0.0.0 as.cfcdist.loan 0.0.0.0 us.cfcdist.loan 0.0.0.0 gustaver.ddns.net 0.0.0.0 worker.salon.com 0.0.0.0 s2.appelamule.com 0.0.0.0 mepirtedic.com 0.0.0.0 cdn.streambeam.io 0.0.0.0 adzjzewsma.cf 0.0.0.0 ffinwwfpqi.gq 0.0.0.0 ininmacerad.pro 0.0.0.0 mhiobjnirs.gq 0.0.0.0 open-hive-server-1.pp.ua 0.0.0.0 pool.hws.ru 0.0.0.0 pool.etn.spacepools.org 0.0.0.0 api.aalbbh84.info 0.0.0.0 www.aymcsx.ru 0.0.0.0 aeros01.tk 0.0.0.0 aeros02.tk 0.0.0.0 aeros03.tk 0.0.0.0 aeros04.tk 0.0.0.0 aeros05.tk 0.0.0.0 aeros06.tk 0.0.0.0 aeros07.tk 0.0.0.0 aeros08.tk 0.0.0.0 aeros09.tk 0.0.0.0 aeros10.tk 0.0.0.0 aeros11.tk 0.0.0.0 aeros12.tk 0.0.0.0 npcdn1.now.sh 0.0.0.0 mxcdn2.now.sh 0.0.0.0 sxcdn6.now.sh 0.0.0.0 mxcdn1.now.sh 0.0.0.0 sxcdn02.now.sh 0.0.0.0 sxcdn4.now.sh 0.0.0.0 jqcdn2.herokuapp.com 0.0.0.0 sxcdn1.herokuapp.com 0.0.0.0 sxcdn5.herokuapp.com 0.0.0.0 wpcdn1.herokuapp.com 0.0.0.0 jqcdn01.herokuapp.com 0.0.0.0 jqcdn03.herokuapp.com 0.0.0.0 1q2w3.website 0.0.0.0 video.videos.vidto.me 0.0.0.0 play.play1.videos.vidto.me 0.0.0.0 playe.vidto.se 0.0.0.0 video.streaming.estream.to 0.0.0.0 eth-pocket.de 0.0.0.0 xvideosharing.site 0.0.0.0 bestcoinsignals.com 0.0.0.0 eucsoft.com 0.0.0.0 traviilo.com 0.0.0.0 wasm24.ru 0.0.0.0 xmr.cool 0.0.0.0 api.netflare.info 0.0.0.0 cdnjs.cloudflane.com 0.0.0.0 www.cloudflane.com 0.0.0.0 clgserv.pro 0.0.0.0 hide.ovh 0.0.0.0 graftpool.ovh 0.0.0.0 encoding.ovh 0.0.0.0 altavista.ovh 0.0.0.0 scaleway.ovh 0.0.0.0 nexttime.ovh 0.0.0.0 never.ovh 0.0.0.0 2giga.download 0.0.0.0 webminerpool.com 0.0.0.0 minercry.pt 0.0.0.0 adplusplus.fr 0.0.0.0 ethtrader.de 0.0.0.0 gobba.myeffect.net 0.0.0.0 bauersagtnein.myeffect.net 0.0.0.0 besti.ga 0.0.0.0 jurty.ml 0.0.0.0 jurtym.cf 0.0.0.0 mfio.cf 0.0.0.0 mwor.gq 0.0.0.0 oei1.gq 0.0.0.0 wordc.ga 0.0.0.0 berateveng.ru 0.0.0.0 ctlrnwbv.ru 0.0.0.0 ermaseuc.ru 0.0.0.0 kdmkauchahynhrs.ru 0.0.0.0 uoldid.ru 0.0.0.0 www.jqrcdn.download 0.0.0.0 www.jqassets.download 0.0.0.0 www.jqcdn.download 0.0.0.0 www.jquerrycdn.download 0.0.0.0 www.jqwww.download 0.0.0.0 lightminer.co 0.0.0.0 www.lightminer.co 0.0.0.0 browsermine.com 0.0.0.0 api.browsermine.com 0.0.0.0 dl.browsermine.com 0.0.0.0 mlib.browsermine.com 0.0.0.0 minr.browsermine.com 0.0.0.0 static.browsermine.com 0.0.0.0 ws.browsermine.com 0.0.0.0 bmst.pw 0.0.0.0 bmnr.pw 0.0.0.0 bmcm.pw 0.0.0.0 bmcm.ml 0.0.0.0 videoplayer2.xyz 0.0.0.0 play.video2.stream.vidzi.tv 0.0.0.0 001.0x1f4b0.com 0.0.0.0 002.0x1f4b0.com 0.0.0.0 003.0x1f4b0.com 0.0.0.0 004.0x1f4b0.com 0.0.0.0 005.0x1f4b0.com 0.0.0.0 006.0x1f4b0.com 0.0.0.0 007.0x1f4b0.com 0.0.0.0 008.0x1f4b0.com 0.0.0.0 authedwebmine.cz 0.0.0.0 www.authedwebmine.cz 0.0.0.0 skencituer.com 0.0.0.0 site.flashx.cc 0.0.0.0 play1.flashx.pw 0.0.0.0 play2.flashx.pw 0.0.0.0 play4.flashx.pw 0.0.0.0 play5.flashx.pw 0.0.0.0 js.vidoza.net 0.0.0.0 mm.zubovskaya-banya.ru 0.0.0.0 mysite.irkdsu.ru 0.0.0.0 play.estream.nu 0.0.0.0 play.estream.to 0.0.0.0 play.estream.xyz 0.0.0.0 play.play.estream.nu 0.0.0.0 play.play.estream.to 0.0.0.0 play.play.estream.xyz 0.0.0.0 play.tainiesonline.pw 0.0.0.0 play.vidzi.tv 0.0.0.0 play.pampopholf.com 0.0.0.0 s3.pampopholf.com 0.0.0.0 play.malictuiar.com 0.0.0.0 s3.malictuiar.com 0.0.0.0 play.play.tainiesonline.stream 0.0.0.0 ocean2.authcaptcha.com 0.0.0.0 rock2.authcaptcha.com 0.0.0.0 stone2.authcaptcha.com 0.0.0.0 sass2.authcaptcha.com 0.0.0.0 sea2.authcaptcha.com 0.0.0.0 play.flowplayer.space 0.0.0.0 play.pc.belicimo.pw 0.0.0.0 play.power.tainiesonline.pw 0.0.0.0 play.s01.vidtodo.pro 0.0.0.0 wm.yololike.space 0.0.0.0 play.mix.kinostuff.com 0.0.0.0 play.on.animeteatr.ru 0.0.0.0 play.mine.gay-hotvideo.net 0.0.0.0 play.www.intellecthosting.net 0.0.0.0 mytestminer.xyz 0.0.0.0 play.vb.wearesaudis.net 0.0.0.0 flowplayer.space 0.0.0.0 s2.flowplayer.space 0.0.0.0 s3.flowplayer.space 0.0.0.0 thersprens.com 0.0.0.0 s2.thersprens.com 0.0.0.0 s3.thersprens.com 0.0.0.0 gramombird.com 0.0.0.0 play.gramombird.com 0.0.0.0 ugmfvqsu.ru 0.0.0.0 bsyauqwerd.party 0.0.0.0 ccvwtdtwyu.trade 0.0.0.0 baywttgdhe.download 0.0.0.0 pdheuryopd.loan 0.0.0.0 iaheyftbsn.review 0.0.0.0 djfhwosjck.bid 0.0.0.0 najsiejfnc.win 0.0.0.0 zndaowjdnf.stream 0.0.0.0 yqaywudifu.date 0.0.0.0 malictuiar.com 0.0.0.0 proofly.win 0.0.0.0 zminer.zaloapp.com 0.0.0.0 vkcdnservice.com 0.0.0.0 dexim.space 0.0.0.0 acbp0020171456.page.tl 0.0.0.0 vuryua.ru 0.0.0.0 minexmr.stream 0.0.0.0 gitgrub.pro 0.0.0.0 d8acddffe978b5dfcae6.date 0.0.0.0 eth-pocket.com 0.0.0.0 autologica.ga 0.0.0.0 whysoserius.club 0.0.0.0 aster18cdn.nl 0.0.0.0 nerohut.com 0.0.0.0 gnrdomimplementation.com 0.0.0.0 pon.ewtuyytdf45.com 0.0.0.0 hhb123.tk 0.0.0.0 dzizsih.ru 0.0.0.0 nddmcconmqsy.ru 0.0.0.0 silimbompom.com 0.0.0.0 unrummaged.com 0.0.0.0 fruitice.realnetwrk.com 0.0.0.0 synconnector.com 0.0.0.0 toftofcal.com 0.0.0.0 gasolina.ml 0.0.0.0 8jd2lfsq.me 0.0.0.0 afflow.18-plus.net 0.0.0.0 afminer.com 0.0.0.0 aservices.party 0.0.0.0 becanium.com 0.0.0.0 brominer.com 0.0.0.0 cdn-analytics.pl 0.0.0.0 cdn.static-cnt.bid 0.0.0.0 cloudcdn.gdn 0.0.0.0 coin-service.com 0.0.0.0 coinpot.co 0.0.0.0 coinrail.io 0.0.0.0 etacontent.com 0.0.0.0 exdynsrv.com 0.0.0.0 formulawire.com 0.0.0.0 go.bestmobiworld.com 0.0.0.0 goldoffer.online 0.0.0.0 hallaert.online 0.0.0.0 hashing.win 0.0.0.0 igrid.org 0.0.0.0 laserveradedomaina.com 0.0.0.0 machieved.com 0.0.0.0 nametraff.com 0.0.0.0 offerreality.com 0.0.0.0 ogrid.org 0.0.0.0 panelsave.com 0.0.0.0 party-vqgdyvoycc.now.sh 0.0.0.0 pertholin.com 0.0.0.0 premiumstats.xyz 0.0.0.0 serie-vostfr.com 0.0.0.0 salamaleyum.com 0.0.0.0 smartoffer.site 0.0.0.0 stonecalcom.com 0.0.0.0 thewhizmarketing.com 0.0.0.0 thewhizproducts.com 0.0.0.0 thewise.com 0.0.0.0 traffic.tc-clicks.com 0.0.0.0 vcfs6ip5h6.bid 0.0.0.0 web.dle-news.pw 0.0.0.0 webmining.co 0.0.0.0 wp-monero-miner.de 0.0.0.0 wtm.monitoringservice.co 0.0.0.0 xy.nullrefexcep.com 0.0.0.0 yrdrtzmsmt.com 0.0.0.0 wss.rand.com.ru 0.0.0.0 www.verifier.live 0.0.0.0 www.jshosting.bid 0.0.0.0 www.jshosting.date 0.0.0.0 www.jshosting.download 0.0.0.0 www.jshosting.faith 0.0.0.0 www.jshosting.loan 0.0.0.0 www.jshosting.party 0.0.0.0 www.jshosting.racing 0.0.0.0 www.jshosting.review 0.0.0.0 www.jshosting.science 0.0.0.0 www.jshosting.stream 0.0.0.0 www.jshosting.trade 0.0.0.0 www.jshosting.win 0.0.0.0 www.freecontent.download 0.0.0.0 www.freecontent.party 0.0.0.0 www.freecontent.review 0.0.0.0 www.freecontent.science 0.0.0.0 www.freecontent.stream 0.0.0.0 www.freecontent.trade 0.0.0.0 www.hostcontent.live 0.0.0.0 www.hostingcloud.accountant 0.0.0.0 www.hostingcloud.bid 0.0.0.0 www.hostingcloud.date 0.0.0.0 www.hostingcloud.download 0.0.0.0 www.hostingcloud.faith 0.0.0.0 www.hostingcloud.live 0.0.0.0 www.hostingcloud.loan 0.0.0.0 www.hostingcloud.party 0.0.0.0 www.hostingcloud.racing 0.0.0.0 www.hostingcloud.review 0.0.0.0 www.hostingcloud.science 0.0.0.0 www.hostingcloud.stream 0.0.0.0 www.hostingcloud.trade 0.0.0.0 www.hostingcloud.win 0.0.0.0 minerad.com 0.0.0.0 coin-cube.com 0.0.0.0 coin-services.info 0.0.0.0 service4refresh.info 0.0.0.0 money-maker-script.info 0.0.0.0 money-maker-default.info 0.0.0.0 money-maker-default.info 0.0.0.0 de-ner-mi-nis4.info 0.0.0.0 de-nis-ner-mi-5.info 0.0.0.0 de-mi-nis-ner2.info 0.0.0.0 de-mi-nis-ner.info 0.0.0.0 mi-de-ner-nis3.info 0.0.0.0 s2.soodatmish.com 0.0.0.0 s2.thersprens.com 0.0.0.0 play.feesocrald.com 0.0.0.0 cdn1.pebx.pl 0.0.0.0 play.nexioniect.com 0.0.0.0 play.besstahete.info 0.0.0.0 s2.myregeneaf.com 0.0.0.0 s3.myregeneaf.com 0.0.0.0 reauthenticator.com 0.0.0.0 rock.reauthenticator.com 0.0.0.0 serv1swork.com 0.0.0.0 str1kee.com 0.0.0.0 f1tbit.com 0.0.0.0 g1thub.com 0.0.0.0 swiftmining.win 0.0.0.0 cashbeet.com 0.0.0.0 wmtech.website 0.0.0.0 www.notmining.org 0.0.0.0 coinminingonline.com 0.0.0.0 alflying.bid 0.0.0.0 alflying.date 0.0.0.0 alflying.win 0.0.0.0 anybest.host 0.0.0.0 anybest.pw 0.0.0.0 anybest.site 0.0.0.0 anybest.space 0.0.0.0 dubester.pw 0.0.0.0 dubester.site 0.0.0.0 dubester.space 0.0.0.0 flightsy.bid 0.0.0.0 flightsy.date 0.0.0.0 flightsy.win 0.0.0.0 flighty.win 0.0.0.0 flightzy.bid 0.0.0.0 flightzy.date 0.0.0.0 flightzy.win 0.0.0.0 gettate.date 0.0.0.0 gettate.faith 0.0.0.0 gettate.racing 0.0.0.0 mighbest.host 0.0.0.0 mighbest.pw 0.0.0.0 mighbest.site 0.0.0.0 zymerget.bid 0.0.0.0 zymerget.date 0.0.0.0 zymerget.faith 0.0.0.0 zymerget.party 0.0.0.0 zymerget.stream 0.0.0.0 zymerget.win 0.0.0.0 statdynamic.com 0.0.0.0 alpha.nimiqpool.com 0.0.0.0 api.miner.beeppool.org 0.0.0.0 beatingbytes.com 0.0.0.0 besocial.online 0.0.0.0 beta.nimiqpool.com 0.0.0.0 bulls.nimiqpool.com 0.0.0.0 de1.eu.nimiqpool.com 0.0.0.0 ethmedialab.info 0.0.0.0 feilding.nimiqpool.com 0.0.0.0 foxton.nimiqpool.com 0.0.0.0 ganymed.beeppool.org 0.0.0.0 himatangi.nimiqpool.com 0.0.0.0 levin.nimiqpool.com 0.0.0.0 mine.terorie.com 0.0.0.0 miner-1.team.nimiq.agency 0.0.0.0 miner-10.team.nimiq.agency 0.0.0.0 miner-11.team.nimiq.agency 0.0.0.0 miner-12.team.nimiq.agency 0.0.0.0 miner-13.team.nimiq.agency 0.0.0.0 miner-14.team.nimiq.agency 0.0.0.0 miner-15.team.nimiq.agency 0.0.0.0 miner-16.team.nimiq.agency 0.0.0.0 miner-17.team.nimiq.agency 0.0.0.0 miner-18.team.nimiq.agency 0.0.0.0 miner-19.team.nimiq.agency 0.0.0.0 miner-2.team.nimiq.agency 0.0.0.0 miner-3.team.nimiq.agency 0.0.0.0 miner-4.team.nimiq.agency 0.0.0.0 miner-5.team.nimiq.agency 0.0.0.0 miner-6.team.nimiq.agency 0.0.0.0 miner-7.team.nimiq.agency 0.0.0.0 miner-8.team.nimiq.agency 0.0.0.0 miner-9.team.nimiq.agency 0.0.0.0 miner-deu-1.inf.nimiq.network 0.0.0.0 miner-deu-2.inf.nimiq.network 0.0.0.0 miner-deu-3.inf.nimiq.network 0.0.0.0 miner-deu-4.inf.nimiq.network 0.0.0.0 miner-deu-5.inf.nimiq.network 0.0.0.0 miner-deu-6.inf.nimiq.network 0.0.0.0 miner-deu-7.inf.nimiq.network 0.0.0.0 miner-deu-8.inf.nimiq.network 0.0.0.0 miner.beeppool.org 0.0.0.0 miner.nimiq.com 0.0.0.0 mon-deu-1.inf.nimiq.network 0.0.0.0 mon-deu-2.inf.nimiq.network 0.0.0.0 mon-deu-3.inf.nimiq.network 0.0.0.0 mon-fra-1.inf.nimiq.network 0.0.0.0 mon-fra-2.inf.nimiq.network 0.0.0.0 mon-gbr-1.inf.nimiq.network 0.0.0.0 nimiq.terorie.com 0.0.0.0 nimiqpool.com 0.0.0.0 nimiqtest.ml 0.0.0.0 ninaning.com 0.0.0.0 node.alpha.nimiqpool.com 0.0.0.0 node.nimiqpool.com 0.0.0.0 nodeb.nimiqpool.com 0.0.0.0 nodeone.nimiqpool.com 0.0.0.0 proxy-can-1.inf.nimiq.network 0.0.0.0 proxy-deu-1.inf.nimiq.network 0.0.0.0 proxy-deu-2.inf.nimiq.network 0.0.0.0 proxy-fra-1.inf.nimiq.network 0.0.0.0 proxy-fra-2.inf.nimiq.network 0.0.0.0 proxy-fra-3.inf.nimiq.network 0.0.0.0 proxy-gbr-1.inf.nimiq.network 0.0.0.0 proxy-gbr-2.inf.nimiq.network 0.0.0.0 proxy-pol-1.inf.nimiq.network 0.0.0.0 proxy-pol-2.inf.nimiq.network 0.0.0.0 script.nimiqpool.com 0.0.0.0 seed-1.nimiq-network.com 0.0.0.0 seed-1.nimiq.com 0.0.0.0 seed-1.nimiq.network 0.0.0.0 seed-10.nimiq-network.com 0.0.0.0 seed-10.nimiq.com 0.0.0.0 seed-10.nimiq.network 0.0.0.0 seed-11.nimiq-network.com 0.0.0.0 seed-11.nimiq.com 0.0.0.0 seed-11.nimiq.network 0.0.0.0 seed-12.nimiq-network.com 0.0.0.0 seed-12.nimiq.com 0.0.0.0 seed-12.nimiq.network 0.0.0.0 seed-13.nimiq-network.com 0.0.0.0 seed-13.nimiq.com 0.0.0.0 seed-13.nimiq.network 0.0.0.0 seed-14.nimiq-network.com 0.0.0.0 seed-14.nimiq.com 0.0.0.0 seed-14.nimiq.network 0.0.0.0 seed-15.nimiq-network.com 0.0.0.0 seed-15.nimiq.com 0.0.0.0 seed-15.nimiq.network 0.0.0.0 seed-16.nimiq-network.com 0.0.0.0 seed-16.nimiq.com 0.0.0.0 seed-16.nimiq.network 0.0.0.0 seed-17.nimiq-network.com 0.0.0.0 seed-17.nimiq.com 0.0.0.0 seed-17.nimiq.network 0.0.0.0 seed-18.nimiq-network.com 0.0.0.0 seed-18.nimiq.com 0.0.0.0 seed-18.nimiq.network 0.0.0.0 seed-19.nimiq-network.com 0.0.0.0 seed-19.nimiq.com 0.0.0.0 seed-19.nimiq.network 0.0.0.0 seed-2.nimiq-network.com 0.0.0.0 seed-2.nimiq.com 0.0.0.0 seed-2.nimiq.network 0.0.0.0 seed-20.nimiq-network.com 0.0.0.0 seed-20.nimiq.com 0.0.0.0 seed-20.nimiq.network 0.0.0.0 seed-3.nimiq-network.com 0.0.0.0 seed-3.nimiq.com 0.0.0.0 seed-3.nimiq.network 0.0.0.0 seed-4.nimiq-network.com 0.0.0.0 seed-4.nimiq.com 0.0.0.0 seed-4.nimiq.network 0.0.0.0 seed-5.nimiq-network.com 0.0.0.0 seed-5.nimiq.com 0.0.0.0 seed-5.nimiq.network 0.0.0.0 seed-6.nimiq-network.com 0.0.0.0 seed-6.nimiq.com 0.0.0.0 seed-6.nimiq.network 0.0.0.0 seed-7.nimiq-network.com 0.0.0.0 seed-7.nimiq.com 0.0.0.0 seed-7.nimiq.network 0.0.0.0 seed-8.nimiq-network.com 0.0.0.0 seed-8.nimiq.com 0.0.0.0 seed-8.nimiq.network 0.0.0.0 seed-9.nimiq-network.com 0.0.0.0 seed-9.nimiq.com 0.0.0.0 seed-9.nimiq.network 0.0.0.0 seed-can-1.inf.nimiq.network 0.0.0.0 seed-can-2.inf.nimiq.network 0.0.0.0 seed-deu-1.inf.nimiq.network 0.0.0.0 seed-deu-2.inf.nimiq.network 0.0.0.0 seed-deu-3.inf.nimiq.network 0.0.0.0 seed-deu-4.inf.nimiq.network 0.0.0.0 seed-fra-1.inf.nimiq.network 0.0.0.0 seed-fra-2.inf.nimiq.network 0.0.0.0 seed-fra-3.inf.nimiq.network 0.0.0.0 seed-fra-4.inf.nimiq.network 0.0.0.0 seed-fra-5.inf.nimiq.network 0.0.0.0 seed-fra-6.inf.nimiq.network 0.0.0.0 seed-gbr-1.inf.nimiq.network 0.0.0.0 seed-gbr-2.inf.nimiq.network 0.0.0.0 seed-gbr-3.inf.nimiq.network 0.0.0.0 seed-gbr-4.inf.nimiq.network 0.0.0.0 seed-pol-1.inf.nimiq.network 0.0.0.0 seed-pol-2.inf.nimiq.network 0.0.0.0 seed-pol-3.inf.nimiq.network 0.0.0.0 seed-pol-4.inf.nimiq.network 0.0.0.0 seed.nimiqpool.com 0.0.0.0 seed1.sushipool.com 0.0.0.0 shannon.nimiqpool.com 0.0.0.0 sunnimiq.cf 0.0.0.0 sunnimiq1.cf 0.0.0.0 sunnimiq2.cf 0.0.0.0 sunnimiq3.cf 0.0.0.0 sunnimiq4.cf 0.0.0.0 sunnimiq5.cf 0.0.0.0 sunnimiq6.cf 0.0.0.0 tokomaru.nimiqpool.com 0.0.0.0 whanganui.nimiqpool.com 0.0.0.0 www.besocial.online 0.0.0.0 miner.nimiq.com 0.0.0.0 jscoinminer.com 0.0.0.0 www.jscoinminer.com 0.0.0.0 play.tercabilis.info 0.0.0.0 play.istlandoll.com 0.0.0.0 s01.hostcontent.live 0.0.0.0 s02.hostcontent.live 0.0.0.0 s03.hostcontent.live 0.0.0.0 s04.hostcontent.live 0.0.0.0 s05.hostcontent.live 0.0.0.0 s06.hostcontent.live 0.0.0.0 s07.hostcontent.live 0.0.0.0 s08.hostcontent.live 0.0.0.0 s09.hostcontent.live 0.0.0.0 s10.hostcontent.live 0.0.0.0 s100.hostcontent.live 0.0.0.0 s11.hostcontent.live 0.0.0.0 s12.hostcontent.live 0.0.0.0 s13.hostcontent.live 0.0.0.0 binarybusiness.de 0.0.0.0 bitcoin-pay.eu 0.0.0.0 cloud-miner.de 0.0.0.0 cloud-miner.eu 0.0.0.0 easyhash.de 0.0.0.0 srcip.com 0.0.0.0 srcips.com ```
luthermonson commented 4 years ago

i will check with your data and confirm. thanks and sorry about this

luthermonson commented 4 years ago

ok so ya this is recreatable with your hostsfile content. im working on a patch and sorry about that

luthermonson commented 4 years ago

ok i fixed.. did this on windows so see below with a --dry-run. ill PR in a bit.

PS C:\Users\luthe\goodhosts\cli> goodhosts -f ./hostsfile clean --dry-run
::1 localhost testwplocaltest.local www.testwplocaltest.local #Local Site Local Site
0.0.0.0 001.0x1f4b0.com 002.0x1f4b0.com 003.0x1f4b0.com 004.0x1f4b0.com 005.0x1f4b0.com 006.0x1f4b0.com 007.0x1f4b0.com 008.0x1f4b0.com 1q2w3.fun
0.0.0.0 1q2w3.me 1q2w3.website 2giga.download abc.pema.cl ad-miner.com ad.g-content.bid adminer.com adplusplus.fr adzjzewsma.cf
0.0.0.0 aeros01.tk aeros02.tk aeros03.tk aeros04.tk aeros05.tk aeros06.tk aeros07.tk aeros08.tk aeros09.tk
0.0.0.0 aeros10.tk aeros11.tk aeros12.tk altavista.ovh analytics.blue andlache.com api.aalbbh84.info api.bhzejltg.info api.browsermine.com
0.0.0.0 api.inwemo.com api.jsecoin.com api.netflare.info api.pzoifaum.info as.cfcdist.loan as.cfcnet.top authedmine.com authedmine.eu authedwebmine.cz
0.0.0.0 axoncoho.tk bablace.com baiduccdn1.com bauersagtnein.myeffect.net berateveng.ru berserkpl.net.pl bestcoinsignals.com besti.ga bewaslac.com
0.0.0.0 biberukalap.com bjorksta.men bmcm.ml bmcm.pw bmnr.pw bmst.pw bowithow.com browsermine.com butcalve.com
0.0.0.0 candid.zone cdn-code.host cdn-jquery.host cdn.adless.io cdn.cloudcoins.co cdn.jquery-uim.download cdn.minescripts.info cdn.static-cnt.bid cdn.streambeam.io
0.0.0.0 cdnjs.cloudflane.com cfcdist.gdn chainblock.science clgserv.pro clickwith.bid cnhv.co cnt.statistic.date coin-have.com coin-hive.com
0.0.0.0 coinblind.com coinerra.com coinhive.com coinhiveproxy.com coinlab.biz coinnebula.com coinpirate.cf cryptaloot.pro crypto-loot.com
0.0.0.0 crypto-webminer.com crypto.csgocpu.com cryptoloot.pro ctlrnwbv.ru d.cfcnet.top d.cpufan.club depttake.ga dev.cryptobara.com didnkinrab.com
0.0.0.0 digger.cryptobara.com dl.browsermine.com dronml.ml encoding.ovh ermaseuc.ru eth-pocket.de ethtrader.de eu.cfcdist.loan eu.cfcnet.top
0.0.0.0 eucsoft.com evengparme.com ffinwwfpqi.gq flare-analytics.com flophous.cf freshrefresher.com g-content.bid go.megabanners.cf go2.mercy.ga
0.0.0.0 gobba.myeffect.net graftpool.ovh gridiogrid.com gustaver.ddns.net hatcalter.com hegrinhar.com hemnes.win hide.ovh hive.tubetitties.com
0.0.0.0 hodlers.party hodling.faith host.d-ns.ga ininmacerad.pro intactoffers.club jqcdn01.herokuapp.com jqcdn03.herokuapp.com jqcdn2.herokuapp.com jquery-uim.download
0.0.0.0 js.nahnoji.cz jsccnn.com jscdndel.com jurty.ml jurtym.cf kdmkauchahynhrs.ru kedtise.com kippbeak.cf krb.devphp.org.ua
0.0.0.0 ledhenone.com ledinund.com lightminer.co load.jsecoin.com losital.ru m.anyfiles.ovh mebablo.com mepirtedic.com mfio.cf
0.0.0.0 mhiobjnirs.gq mine.nahnoji.cz mine.torrent.pw minemytraffic.com miner.cryptobara.com miner.nablabee.com miner.pr0gramm.com minercry.pt minero-proxy-01.now.sh
0.0.0.0 minero-proxy-02.now.sh minero-proxy-03.now.sh minero.pw minescripts.info minr.browsermine.com minr.pw mlib.browsermine.com moneone.ga monerominer.rocks
0.0.0.0 moonsade.com mwor.gq mxcdn1.now.sh mxcdn2.now.sh nathetsof.com nebabrop.com never.ovh new.minr.pw nexttime.ovh
0.0.0.0 nfwebminer.com niematego.tk noblock.pro node.cfcdist.gdn npcdn1.now.sh oei1.gq okeyletsgo.ml open-hive-server-1.pp.ua p.estream.to
0.0.0.0 p1.interestingz.pw papoto.com pasoherb.gq pearno.com play.play1.videos.vidto.me play.video2.stream.vidzi.tv play1.flashx.pw play2.flashx.pw play4.flashx.pw
0.0.0.0 play5.flashx. playe.vidto.se playerassets.info plexcoin.info pool.etn.spacepools.org pool.hws.ru pr0gram.org renhertfo.com reservedoffers.club
0.0.0.0 rintindown.com rintinwa.com rocks.io s2.appelamule.com scaleway.ovh server.jsecoin.com site.flashx.cc skencituer.com smectapop12.pl
0.0.0.0 sparnove.com static.browsermine.com static.sparechange.io staticsfs.host sxcdn02.now.sh sxcdn1.herokuapp.com sxcdn4.now.sh sxcdn5.herokuapp.com sxcdn6.now.sh
0.0.0.0 test.minr.pw tidafors.xyz tokyodrift.ga traviilo.com tulip18.com uoldid.ru us.cfcdist.loan us.cfcnet.top verresof.com
0.0.0.0 video.streaming.estream.to video.videos.vidto.me videoplayer2.xyz vip.cfcnet.top wasm24.ru webassembly.stream webmine.cz webmine.pro webminepool.com
0.0.0.0 webminepool.tk webminerpool.com webxmr.com willacrit.com witthethim.com wordc.ga worker.salon.com wpcdn1.herokuapp.com ws.bhzejltg.info
0.0.0.0 ws.browsermine.com ws.pzoifaum.info wsp.marketgid.com wss.nablabee.com www.authedwebmine.cz www.aymcsx.ru www.blockchained.party www.cloudflane.com www.coinimp.com
0.0.0.0 www.coinimp.net www.cryptonoter.com www.datasecu.download www.etzbnfuigipwvs.ru www.freecontent.bid www.freecontent.date www.freecontent.faith www.freecontent.loan www.freecontent.racing
0.0.0.0 www.freecontent.win www.hostingcloud.download www.jqassets.download www.jqcdn.download www.jqrcdn.download www.jquerrycdn.download www.jquery-cdn.download www.jqwww.download www.lightminer.co
0.0.0.0 www.monero-miner.com www.monkeyminer.net www.mutuza.win www.sparechange.io www.terethat.ru www.webassembly.stream www.webmine.cz www2.adfreetv.ch xmr.cool
0.0.0.0 xmr.mining.best xvideosharing.site
127.0.0.1 kubernetes.docker.internal localhost testwplocaltest.local www.testwplocaltest.local
192.168.50.4 gitty.test multisite.test one.wordpress.test one.wordpress.test.192.168.50.4.xip.io tomjn.test two.wordpress.test vipone.test vvv vvv.test
255.255.255.255 broadcasthost
tomjn commented 4 years ago

awesome :) thanks for such a quick turn around!