the monkey in the middle...the monkey in the middle a pen-testers guide to playing in traffic....

16
Anch Presents: The Monkey In the Middle A pen-testers guide to playing in traffic.

Upload: others

Post on 28-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Anch Presents:

The Monkey In the Middle A pen-testers guide to playing in traffic.

Page 2: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Twitter: @boneheadsanon

A little about me Over 10 years experience in testing pens (Fountain is my favorite)

Page 3: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Why we play in traffic?❖ Traffic is interesting stuff.!

❖ Gives us insight in to how things work.!

❖ Allows us to gather information on a target.!

❖ Allows us to change things as they go by.!

❖ Most importantly…. !❖ It allows us to prank our

friends.

Page 4: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

How to get into traffic…

❖ Always wear a helmet…!❖ It can be dangerous.!

❖ Really messes with networks.!

❖ Your host might not be fast enough.!

❖ Switches alert on some things.!

❖ IDS usually will catch it.

Page 5: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

How to get into traffic…

❖ A tool discussion!❖ ARP Spoofing!❖ DNS Poisoning/Spoofing!❖ DHCP Snooping!❖ Transparent Proxies

Page 6: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

The most dangerous option

ARP Spoofing/Poisoningarpspoof - Provided as part of the dsniff suite of tools.!!❖ EASILY detected on a network.!❖ If done incorrectly can take down

entire segments of the network.!❖ Need a fairly powerful host to keep up

with the traffic.

Page 7: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Another, slightly less dangerous way

DNS Poisoning/SpoofingCain is able to perform this function amongst other tools.!!❖ May still require you to ARP Spoof

first.!❖ Used in conjunction with other tools!❖ Provides your IP address the answer

to DNS queries.

Page 8: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Still a little less dangerous

DHCP SpoofingThe ever famous ettercap provides this function in an excellent way.!!❖ Still need to be able to sniff traffic going to

from your target (throwing star works well for this if you have physical access.!

❖ Switches can be configured to check for, deny, and alert on this attack.!

❖ Used in conjunction with other tools.

Page 9: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Actually doing something with traffic once you have it…

ProxiesMultiple tools provide this service:!❖ Burp!❖ Mallory!❖ Squid

Page 10: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Proxies

Burp Suite

Java, runs on almost anything, lots of options in the free version, paid has even more.!!❖ Just Works most of the time.!❖ Will hold http gets/posts based on

configuration.!❖ Can change cookies, variables, html

responses.!❖ Has powerful SSL options.

Page 11: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Proxies

Mallory!

An excellent tool with very good SSL support, very fast and very configurable.!!❖ Linux/MacOS are easiest to get

working.!❖ Pretty advanced to get setup. Can be

very picky.!❖ Not a lot of pre-built tools for it. (Some

firefox extensions)!❖ Not maintained much.

Page 12: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Proxies

Squid

Fast regular caching proxy. Can be setup to be transparent with iptables/pf!!❖ Good for fast static replacement.!❖ Lots of modules and support.!❖ Best to prank your friends with.

Page 13: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

SSH Monkey In the Middle

Time for a DEMO!

Page 14: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

Lets Talk about Pranks…

The “All Porn Internet” (Redux)

No Demo, but it’s available.!❖ Adjusts to your taste of pornography.!❖ Won’t force it on you, you have to ask for

it.!❖ Gender/Preference Neutral!!

SSID: AllPr0nInternet!WPA: LetMeSeeIt!

Page 15: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain

–Nancy Willard

“Sometimes questions are more important than answers.”

Page 16: The Monkey In the Middle...The Monkey In the Middle A pen-testers guide to playing in traffic. Twitter: @boneheadsanon A little about me Over 10 years experience in testing pens (Fountain