+
Skip to content

jordyv/httpeek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpeek

With httpeek you can quickly do HTTP lookups during your recon phase. You can pipe your list with URLs into httpeek and it will output the status code and HTML title.

Installation

go get -u github.com/jordyv/httpeek

or install one of the precompiled binaries from the releases.

Usage


Usage of ./httpeek:
  -f, --file string        Input file to use instead of stdin
  -q, --query string       XPath query to lookup in HTML output (default "//title")
  -s, --silent             Only output actual results
  -t, --timeout duration   Timeout for HTTP requests (default 3s)

Examples

I like to use gobuster and httprobe and combine it with httpeek during my recon.

# First enumerate all DNS subdomains
$ gobuster dns -d github.com -w <some wordlist> > subdomains.txt

# Use httprobe to find out which are exposing HTTP(S) services
$ cat subdomains.txt | httprobe > https.txt

# Check what the status code and title is with httpeek
$ cat https.txt | httpeek > httpeek.json

Or just as one liner combined with jq to get the title of all 200 responses:

$ cat subdomains.txt | httprobe | httpeek | jq '. | select(.status_code == 200) | .result'

Custom XPath query

By default httpeek will fetch the HTML title element but you can specify your own XPath query. httpeed will only return the inner text of the first result of the query (for now).

$ echo "https://github.com/jordyv/httpeek" | httpeek -q '//div[1]//h1'
{"url":"https://github.com/jordyv/httpeek","status_code":200,"result":"\n    \n  \n    jordyv\n  \n  /\n  \n    httpeek\n  \n  \n"}

httpeek uses the antchfx/htmlquery library.

About

CLI tool to return the status code and a HTML XPath query for each URL in a list

Resources

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载