How to Read a Packet Capture .cap File from Command Line

There are a couple of ways to read a packet capture .cap file from the command line. I’ll show you how!

tcpdump

The tack r filename option for tcpdump will display a capture file onto . . . → Read More: How to Read a Packet Capture .cap File from Command Line

cURL Ignore SSL Certificate Warnings

To ignore any ssl certificate warnings with curl, use the tack k option.

Here is an example:

$ curl -I -k https://scottlinux.com

$ curl -I -k https://scottlinux.com HTTP/1.1 200 OK Date: Tue, 14 Feb 2012 20:00:03 GMT . . . → Read More: cURL Ignore SSL Certificate Warnings

Remote Access Without Opening Ports

Q. How can I access my computer or family’s computer remotely without having to open up ports in the firewall? A. Using a [free] third party app is the solution

Here are a few free* solutions to . . . → Read More: Remote Access Without Opening Ports

Troubleshoot ssh Authentication Failure

ssh has a built in debug mode from the client side to provide information in troubleshooting a connection. This will provide information such as mismatch in client/server configuration options, key conflicts, permission problems, and various other useful . . . → Read More: Troubleshoot ssh Authentication Failure

Banner Grabs with netcat and nmap

netcat can be used to quickly grab a service banner, as well as trusty nmap. I’ll show you some tips!

The netcat command is simply:

$ nc [target] [port]

Add tack v to get more verbosity.

. . . → Read More: Banner Grabs with netcat and nmap

TCP/OS Fingerprinting Tools – p0f and nmap

The particular way an operating system or device sends and receives TCP packets provides a unique fingerprint. TCP header information such as the window size, TTL, overall SYN packet size, MSS, MTU and so forth can help . . . → Read More: TCP/OS Fingerprinting Tools – p0f and nmap

OS X Version from Command Line

There are a few ways to find the OS X version from the command line. I’ll show you how!

$ system_profiler SPSoftwareDataType

Output looks like this:

$ system_profiler SPSoftwareDataType Software: System Software Overview: System Version: . . . → Read More: OS X Version from Command Line

OS X Monitor Virtual Memory Usage from Command Line

OS X has a simple command line tool to monitor virtual memory usage: vm_stat. I’ll show you how it works! Crack open a terminal and run vm_stat. You will see an output somewhat like below:

$ vm_stat . . . → Read More: OS X Monitor Virtual Memory Usage from Command Line

OS X Lion Show Hidden Library Folder

To enable viewing the Library folder which is hidden in OS X Lion, crack open a terminal (Utilities > Terminal) and use this terminal command:

chflags nohidden ~/Library

. . . → Read More: OS X Lion Show Hidden Library Folder

Open and Extract winmail.dat Files

How can I open winmail.dat or other .dat files?

Outlook users sending HTML emails with attachments often reach other users as an odd winmail.dat file. (Thanks, Microsoft!) I’ll show you some tips on how to . . . → Read More: Open and Extract winmail.dat Files

Quick Intro to zsh: auto complete

zsh or the z shell is an interactive shell that builds upon features of other shells such as bash, ksh, and tcsh. zsh is great for advanced script monkeys but also is an excellent simple . . . → Read More: Quick Intro to zsh: auto complete

flac – Audio Codec of Choice

Similar to MP3 (but lossless), flac is an audio codec for your music. Instead of ripping to MP3, consider ripping to flac!

flac stands for free lossless audio codec

Why choose flac?

flac is awesome for various . . . → Read More: flac – Audio Codec of Choice

Clear or Flush Arp Cache in OS X

To clear or delete the arp cache in Mac OS X, crack open a terminal and issue the following command:

$ sudo arp -a -d

Done! Thanks . . . → Read More: Clear or Flush Arp Cache in OS X