Git Product home page Git Product logo

sslsplit_portable's Introduction

Ubuntu 16.04 | Debian 8.x

# 可选:apt -y install libevent-dev libnet1-dev libssl-dev libpcap-dev

0.Dependence/Dependence.md

1.解密机器配置

openssl genrsa -out ca.key 4096
openssl req -new -x509 -days 1826 -key ca.key -out ca.crt

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

iptables -I INPUT -j ACCEPT
iptables -I FORWARD -j ACCEPT

iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443

sslsplit -D -k ca.key -c ca.crt -l connect.log -L sample.log https 0.0.0.0 8443

###### 可选:转发到IDS机器
sslsplit -D -k ca.key -c ca.crt -l connect.log -L sample.log https 0.0.0.0 8443
-T 192.168.8.3 -I eth0

2.内网主机配置

ip route change default via 192.168.8.2 dev ens192

##### 修改程序行为,默认加上参数,举例:curl

1.vi curl.sh 
#!/bin/sh

curl='/usr/bin/curl-bak -k'
exec $curl $@

2.
cp /usr/bin/curl /usr/bin/curl-bak
cp curl.sh /usr/bin/curl
chmod +x /usr/bin/curl

3.测试
curl https://z.cn

##########################################################

备注:
1.浏览器HTTPS流量解密可以使用Wireshark + SSLKEYLOGFILE 
2.Burp Suit  根证书 或 透明代理(未测试)
3.如程序不支持“不安全”的SSL连接和传输,需要把自签名的根证书添加到系统

sslsplit_portable's People

Contributors

zer0d0y avatar

Watchers

James Cloos 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.