Information Gathering

cURL For OSINT – Unlocking The Power Of Command Line Tools For Intelligence Gathering

cURL is a command line tool created in 1998 by Daniel Stenberg, a Swedish Developper/Programmer.
Daniel Stenberg’s website. The latest version of the Tool and the code is open source.

What Exactly Does cURL dD?

I am not a cURL expert and it’s quite difficult giving an exact explanation so I will try and give the most basic explanation.

cURL means Client URL and you already know from above that it’s a command line tool, so it’s basically a tool that permits/enables data transfer over many network protocols (HTTPS, HTTP, FTP, it also supports SSL Certificates).

The tool communicates with a web server with a URL and tells the server the data to be sent or received. (yes you read that correctly, the tool can do both)

Difficulty

cURL is fairly easy to use, and if you have never opened your Terminal before, now is the time to do so.

Installation

I simply installed cURL with Homebrew
Install Command: $ brew install curl

Once you have installed cURL, you can also install Grep: (more info on grep later on)
Install Command: $ brew install grep

Commands

Now that you have everything installed, we are good to go, so let’s have a look at some commands for OSINT (Open-Source Intelligence).

IP Address Information

Finding Your Own IP

Commands for finding the IP address of the device you are on: (type each command separately, each command does the same thing)

$ curl api.ipify.org
$ curl ipinfo.io/ip
$ curl ifconfig.me

Commands to get your IPV4 and IPV6 addresses:

$ curl -4 icanhazip.com
$ curl -6 icanhazip.com

For more information click here.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Install MySQL on Ubuntu 20.04: Setup, Security, and Root Access

MySQL is the most popular open-source relational database management system. It is fast, reliable, and a…

6 hours ago

Install Git on Ubuntu 20.04: Apt, Source, and Configuration

Git is the most widely used version control system in the world. It was created by…

6 hours ago

Install Go on Ubuntu 20.04: Download, Setup, and First Program

Go (also called Golang) is an open-source programming language built by Google. It is designed to…

6 hours ago

Install VS Code on Ubuntu 20.04: Snap Package and Apt Guide

Visual Studio Code (VS Code) is an open-source code editor developed by Microsoft. It is one…

7 hours ago

Install Nginx on Ubuntu 20.04: Setup, Firewall, and Config Guide

Nginx (pronounced "engine x") is an open-source, high-performance web server and reverse proxy. It is used…

7 hours ago

Install Apache on Ubuntu 20.04: Setup and Virtual Host Guide

Apache is one of the most widely used open-source web servers in the world. It is…

1 day ago