Hack Like a Pro: How to Use Driftnet to See What Kind of Images Your Neighbor Looks at Online « Null Byte :: WonderHowTo

Welcome back, my tenderfoot hackers!We have looked at a number of ways that we sniff traffic on the network with such tools asWireshark,tcpdump,dnsiff, and others, but each of these tools is only capable of pulling packets off the wire.Those packets can be examined for various attributes such as the source and destination IP address, what port is going to and coming from, the ASCII characters in the packet, and if we're lucky, maybe a password or two. Usually our sniffing is visualized like the Wireshark output below.What none of these tools do is detect and display graphic files that are passing over the wire. This would require that such a tool would be able to...Identify packets containing the binaries for a portion of a graphic file,Then combine of the binaries of the packets,And then display them.That is quite a task for any tool to do.How to See What Images Your Neighbor Is Looking at OnlineFortunately for us, such a tool has been developed, albeit still in beta form. The tool is calleddriftnetand it was developed by Chris Lightfoot and is packaged with bothKaliandBackTrack. Although far from perfect, it gives us the capability to sniff the wire for graphics, audio, or MPEG4 images and display them to an X window.In our example situation, we'll be trying to determine what kind of images our neighbor is looking at. If you suspect your neighbor of watching pornographic films online, you can get a general idea of what their tastes may be byviewing trends in your area, but we'll be trying to pinpoint exactly what they're looking at instead.Step 1: Open Kali & DriftnetLet's fire up Kali and open driftnet. Go to Applications, Kali Linux, Sniffing/Spoofing, Web Sniffers, and then driftnetWhen you do, you will be greeted by this driftnet help screen.Using driftnet is very simple without any options. Simple type the following at the prompt.kali >driftnetWhen you do so, driftnet will open a small X window screen in the upper left-hand corner as seen in the screenshot below. Expand that screen as large as possible, if you want to see the images going across the wire.If you do not designate a directory to store the images in (-d switch), driftnet will create a directory within your/tmpdirectory to store the images it captures.Step 2: Hack the NetworkNext, we need to get inside our neighbors network. We can do this by connecting to his access point (AP) in any of many ways. Check out my tutorials on crackingWEP passwords,WPA2 passwordsand usingReaverorcoWPAttyto crack WPS.Maybe even easier, would be to set up anEvil Twinand let your neighbor connect to it. Remember, your neighbor's computer will automatically connect to the strongest AP. You can turn the power up on your AP so that your Evil Twin is stronger than his local AP and he will automatically connect to yours. Then, you can easily sniff all his traffic!Of course, if it's your own AP and you're curious as to what your child, spouse, or girlfriend is viewing online, you won't need to do any cracking. You simply start sniffing the traffic and capturing the graphic images with driftnet.I hope it goes without saying that this technique applies equally well to your corporate, school, or other institution's network. The key issue with these wired networks is overcoming the fact that the switch isolates traffic, but this can be overcome in a number of different ways such as MAC flooding orusing dsniff.Step 3: View the Graphic FilesNow, let's go back to the driftnet X window screen to see what are neighbor has been viewingHmm...looks like he hasn't been viewing porn at all, but rather the latest Sport Illustrated Swimsuit issue!Step 4: View the Tmp DirectoryThe viewer in driftnet is great to view what is crossing the wire in real-time, but driftnet also captures the images and places them on your computer in the/tmpdirectory. Navigate to the/tmpwith the following.kali > cd /tmpThen, list all the directories there.kali > ls -lAt the very top of my screen and the directory listing, you can see a new directory nameddrifnet-y46mNv. Note that driftnet is spelled incorrectly. After all, it is only a beta.Next, navigate to that directory.kali > cd drifnet-y46mNvAnd then list the contents.kali > ls -lHere we can see all the images that driftnet captured as we were sniffing our neighbor's traffic. Driftnet can also be used to capture MPEG4 files and audio files, but I'll leave that for another day.Driftnet is one of those open source tools that does the job, but still needs a bit of refinement. In our case, it enabled us to snoop on our neighbors Internet viewing. We'll explore more of driftnet's capabilities in future tutorials, sokeep coming back, my tenderfoot hackers!Want to start making money as a white hat hacker?Jump-start your hacking career with our2020 Premium Ethical Hacking Certification Training Bundlefrom the newNull Byte Shopand get over 60 hours of training from cybersecurity professionals.Buy Now (90% off) >Other worthwhile deals to check out:97% off The Ultimate 2021 White Hat Hacker Certification Bundle99% off The 2021 All-in-One Data Scientist Mega Bundle98% off The 2021 Premium Learn To Code Certification Bundle62% off MindMaster Mind Mapping Software: Perpetual LicenseSpying neighborimage via ShutterstockRelatedNews:The Best Apps for Customized Cover Photos on Your Facebook TimelineNews:Simple Man-in-the-Middle Script: For Script KiddiesReal Scenarios #2:The Creepy Teacher [Part 1]How To:Watch This Sunday's 2013 Pro Bowl Football Game OnlineHow To:Get the New iPad Pro Wallpapers on Any iPhoneHow To:Get All the New iPad Pro Wallpapers on Your iPhoneNews:Could This Be Our First Look at the iPhone 7 Pro?How To:Printable iPhone 11, 11 Pro & 11 Pro Max Cutouts — See Which Size Is Right for YouHow To:Generate Viral Memes Like a Pro with These Apps for Your iPhoneInstagram 101:How to Add More Than 30 Hashtags to Your PostsHow To:What to Do if You Accidentally Liked a Photo on InstagramHack Like a Pro:How to Get Even with Your Annoying Neighbor by Bumping Them Off Their WiFi Network —UndetectedHow To:Add Your Own Custom Screensaver Images to Your Kindle Lock ScreenThe Clone Wars:The Russians Flirt with Instagram & Fake Follower Vending MachinesHack Like a Pro:How to Hack into Your Suspicious, Creepy Neighbor's Computer & Spy on HimNews:The 5 Best Apps for Scanning Text & Documents on AndroidHow To:Make Your Galaxy S20's Photos Instagram-Ready in SecondsHow To:Rotate Photos Without Any Cropping on the iPhone 11, 11 Pro, or 11 Pro Max When EditingNews:Jeep's New AR Experience Lets You Interact with a Car That Isn't Actually ThereHow To:Hide All of the Social Numbers on Your Facebook Page with the DemetricatorInstagram 101:Why You Should Never Put Hashtags in Your PostsHow To:Use container fields with FileMaker Pro 10News:Here's What We Know About the Mysterious Triple Camera in Huawei's Upcoming FlagshipApple Announces New iPad Pro:9.7-Inch Screen, Better Audio, & MoreHow To:Save Custom Shooting Presets in Filmic Pro So You Don't Have to Adjust Settings Later for Similar ShotsNews:Scandy Gives Tango Owners a Taste of 3D ScanningHow To:Add Life to Wallpapers with Filters & EffectsNews:Online E-Commerce Video Games RetailersNews:The Epson International Pano Awards Photography Contest - Deadline April 15, 2011News:Nextdoor Brings Private Social Networks to a Neighborhood Near YouCamera Plus Pro:The iPhone Camera App That Does it AllNews:Slow Motion Footage of Surfers from Jaws Beach, HawaiiNews:Minecraft Super Compact Block ChangerNews:Sunflower goal and tips!How To:Trick YouTube Into Being a Decent Video EditorNews:Hayao Miyazaki's "My Neighbor Totoro" CakesHow To:The Official Google+ Insider's Guide IndexNews:Bees have come to Farmville!News:ASC DP shoots on 5D, looks like crapNews:What kind of camera do I need?