#http #security

app kurl

Simple CLI HTTP client focused on security research

7 releases

0.1.6 Mar 6, 2023
0.1.5 Mar 3, 2023
0.1.3 Jan 31, 2023

#880 in Command line utilities

Download history 55/week @ 2023-01-24 52/week @ 2023-01-31 9/week @ 2023-02-07 20/week @ 2023-02-14 5/week @ 2023-02-21 52/week @ 2023-02-28 11/week @ 2023-03-07

89 downloads per month

MIT license

13KB
199 lines

kurl

Simple CLI HTTP client focused on security research.

kurl has features such as:

  • Display status code
  • Display content-type
  • Check if the body is valid json
  • Guess the json format
  • Display the content-length

Installation

# To install it with cargo you need to have the Rust toolchain installed
cargo install kurl

Example

~ ❯ kurl ipinfo.io/8.8.8.8 --all
200 304 get json "anycast city country hostname ip loc org postal readme region timezone" "application/json; charset =utf-8" ipinfo.io/8.8.8.8 
{
  "ip": "8.8.8.8",
  "hostname": "dns.google",
  "anycast": true,
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.4056,-122.0775",
  "org": "AS15169 Google LLC",
  "postal": "94043",
  "timezone": "America/Los_Angeles",
  "readme": "https://ipinfo.io/missingauth"
}

Help

Simple CLI HTTP client focused on security research

Usage: kurl [OPTIONS] <URL>

Arguments:
  <URL>  URL to send the request

Options:
  -c, --status-code        
  -s, --size               
  -j, --valid-json         
  -t, --content-type       
  -n, --no-body            
  -k, --keys               Try to guess the JSON's format
  -u, --show-url           Display the URL
      --all                Display all status
      --scripts <SCRIPTS>  
  -X <VERB>                [default: GET] [possible values: POST, GET, HEAD]
  -d, --data <DATA>        
  -h, --help               Print help
  -V, --version            Print version

Dependencies

~6–14MB
~281K SLoC