Git Product home page Git Product logo

internethacker's Introduction

InternetHacker

A tool to manipulate web pages on behalf of the visitor being on the same network as this server.

Quick start

You can use the InternetHacker class to quickly setup the tool.

InternetHacker.create()
                .useDns(new DnsCombinedHacker("google.com", "example.com"))
                .start();

The default pom.xml file puts the main class to com.gianlu.internethacker.Main. The code above should be placed in a file called Main.java inside src/com/gianlu/internethacker/ like so:

package com.gianlu.internethacker;

import com.gianlu.internethacker.hackers.DnsCombinedHacker;
import java.io.IOException;

public class Main {

    public static void main(String[] args) throws IOException {
        InternetHacker.create()
                .useDns(new DnsCombinedHacker("google.com", "example.com"))
                .start();
    }
}

Setup

Using the DNS server by itself isn't very useful as the Host header will tell the truth about what we're doing and the server may refuse to respond. Anyway, here's a checklist of things to do to set it up:

  • Set the DNS server as system or router default and make sure the changes are applied (restart everything to be sure)
  • Check that the server is working by using dig or nslookup
  • Clear the DNS cache of your system
  • You're ready

In the feature, a more effective solution will be to use the DNS and proxy servers in combination: the DNS server will point to the proxy which will effectively do the changes.

Strategies

DNS

The DnsModule setup a DNS server on port 53 which, through the help of some DnsHacker, will fake DNS requests. Some pre-made DNS hackers are available:

Proxy

The ProxyModule setup a proxy server on the given port which, through the help of some ProxyHacker, will manipulate the data being transferred in between. Some pre-made proxy hackers are available:

  • ProxyHttpUrlSwapHacker will swap the request URL without any redirect. ATM, matching the URL is a bit tricky.

Sources

internethacker's People

Contributors

devgianlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.