All Projects → mueller-ma → Block Ads Via Dns

mueller-ma / Block Ads Via Dns

Licence: gpl-3.0
Block ads and malware via local DNS server

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Block Ads Via Dns

Unencrypted Backdoor With Process Cloaking
Unencrypted backdoor
Stars: ✭ 16 (-68%)
Mutual labels:  malware
Malware Ioc
Indicators of Compromises (IOC) of our various investigations
Stars: ✭ 955 (+1810%)
Mutual labels:  malware
Pecli
CLI tool to analyze PE files
Stars: ✭ 46 (-8%)
Mutual labels:  malware
Malware Samples
A collection of malware samples caught by several honeypots i manage
Stars: ✭ 863 (+1626%)
Mutual labels:  malware
Njrat 0.7d Stub Csharp
njRAT C# Stub - Fixed For PowerShell
Stars: ✭ 28 (-44%)
Mutual labels:  malware
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-36%)
Mutual labels:  malware
Yargen
yarGen is a generator for YARA rules
Stars: ✭ 795 (+1490%)
Mutual labels:  malware
Pentesting Bible
Learn ethical hacking.Learn about reconnaissance,windows/linux hacking,attacking web technologies,and pen testing wireless networks.Resources for learning malware analysis and reverse engineering.
Stars: ✭ 8,981 (+17862%)
Mutual labels:  malware
Virustotal Tools
Submits multiple domains to VirusTotal API
Stars: ✭ 29 (-42%)
Mutual labels:  malware
Angststealer
Angst is the first python malware to have its own plugin system allowing for quick and easy account takeover. Along with its ability for easy plugin integration it has incredibly low detections.
Stars: ✭ 44 (-12%)
Mutual labels:  malware
Thezoo
A repository of LIVE malwares for your own joy and pleasure. theZoo is a project created to make the possibility of malware analysis open and available to the public.
Stars: ✭ 7,849 (+15598%)
Mutual labels:  malware
Pi Hole
A black hole for Internet advertisements
Stars: ✭ 34,076 (+68052%)
Mutual labels:  dns-server
Norimaci
Norimaci is a simple and lightweight malware analysis sandbox for macOS
Stars: ✭ 37 (-26%)
Mutual labels:  malware
Brutus
A Python-powered exploitation framework and botnet.
Stars: ✭ 17 (-66%)
Mutual labels:  malware
Acme Dns
Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely.
Stars: ✭ 1,041 (+1982%)
Mutual labels:  dns-server
Threatpursuit Vm
Threat Pursuit Virtual Machine (VM): A fully customizable, open-sourced Windows-based distribution focused on threat intelligence analysis and hunting designed for intel and malware analysts as well as threat hunters to get up and running quickly.
Stars: ✭ 814 (+1528%)
Mutual labels:  malware
Wordpress Wp Vcd Malware Attack Solution
Another attack on wordpress 4.8
Stars: ✭ 31 (-38%)
Mutual labels:  malware
Docker Bind
Bind caching DNS server on Debian with wild-card domain support
Stars: ✭ 50 (+0%)
Mutual labels:  dns-server
Zeus
NOT MY CODE! Zeus trojan horse - leaked in 2011, I am not the author. This repository is for study purposes only, do not message me about your lame hacking attempts.
Stars: ✭ 1,043 (+1986%)
Mutual labels:  malware
Malcom
Malcom - Malware Communications Analyzer
Stars: ✭ 988 (+1876%)
Mutual labels:  malware

Block ads and malware via local DNS server

Installation

Debian, Raspbian & Ubuntu

  • Install DNS Server: sudo apt install bind9
  • Go to the bind directory: cd /etc/bind/
  • Add this to /etc/bind/named.conf: include "/etc/bind/named.conf.blocked";
  • Create db.blocked and add this (taken from here):
$TTL 24h

@       IN SOA server.yourdomain.com. hostmaster.yourdomain.com. (
               2003052800  86400  300  604800  3600 )

@       IN      NS   server.yourdomain.com.
@       IN      A    0.0.0.0
*       IN      A    0.0.0.0
  • Your /etc/bind/named.conf.options should look like this:
options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

    forwarders {
        8.8.8.8;
        8.8.4.4;
    };

    //========================================================================
    // If BIND logs error messages about the root key being expired,
    // you will need to update your keys.  See https://www.isc.org/bind-keys
    //========================================================================
    dnssec-validation auto;

    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };
    check-names master ignore;
    check-names slave ignore;
    check-names response ignore;
};
  • Replace the forwarders entries with other dns server if you do not want to use Google DNS
  • cd to your home directory cd ~
  • Download generate-zonefile.sh wget https://raw.githubusercontent.com/mueller-ma/block-ads-via-dns/master/generate-zonefile.sh
  • Make it executable chmod +x generate-zonefile.sh
  • Run generate-zonefile.sh ./generate-zonefile.sh

Router / DHCP Server

  • Give your Debian server a static IP
  • Change DNS Server in the DHCP settings to the IP of your Debian Server. If you are asked for a second DNS server enter the same IP twice.

Optional

  • Add local blacklist and whitelist
  • Create cronjob
  • Change the URL to StevenBlack GitHub Hosts in generate-zonefile.sh

Limitations

  • The db.blocked will cause some errors on bind start
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].