JC Version 1.10.2 Released

Try the jc web demo!

I’m happy to announce the release of jc version 1.10.2 available on github and pypi. See below for more information on the new features.

To upgrade, run:

$ pip3 install --upgrade jc

New Features

jc now supports color output by default when printing to the terminal. Color is automatically disabled when piping to another program. The -m (monochrome) option can be used to disable color output to the terminal.

New Parsers

No new parsers in this release.

Updated Parsers

  • file command parser: minor fix for some edge cases
  • arp command parser: fix macOS detection for some edge cases
  • dig command parser: add axfr support

Schema Changes

The dig command parser now supports the axfr option. The schema has been updated to add this section:

$ jc -p dig @81.4.108.41 axfr zonetransfer.me
[
  {
    "axfr": [
      {
        "name": "zonetransfer.me.",
        "ttl": 7200,
        "class": "IN",
        "type": "SOA",
        "data": "nsztm1.digi.ninja. robin.digi.ninja. 2019100801 172800 900 1209600 3600"
      },
      {
        "name": "zonetransfer.me.",
        "ttl": 300,
        "class": "IN",
        "type": "HINFO",
        "data": "\"Casio fx-700G\" \"Windows XP\""
      },
      {
        "name": "zonetransfer.me.",
        "ttl": 301,
        "class": "IN",
        "type": "TXT",
        "data": "\"google-site-verification=tyP28J7JAUHA9fw2sHXMgcCC0I6XBmmoVi04VlMewxA\""
      },
      ...
    ],
    "query_time": 805,
    "server": "81.4.108.41#53(81.4.108.41)",
    "when": "Thu Apr 09 08:05:31 PDT 2020",
    "size": "50 records (messages 1, bytes 1994)"
  }
]

Full Parser List

  • airport -I
  • airport -s
  • arp
  • blkid
  • crontab
  • crontab-u
  • CSV
  • df
  • dig
  • du
  • env
  • file
  • free
  • fstab
  • /etc/group
  • /etc/gshadow
  • history
  • /etc/hosts
  • id
  • ifconfig
  • INI
  • iptables
  • jobs
  • last and lastb
  • ls
  • lsblk
  • lsmod
  • lsof
  • mount
  • netstat
  • ntpq
  • /etc/passwd
  • pip list
  • pip show
  • ps
  • route
  • /etc/shadow
  • ss
  • stat
  • systemctl
  • systemctl list-jobs
  • systemctl list-sockets
  • systemctl list-unit-files
  • timedatectl
  • uname -a
  • uptime
  • w
  • who
  • XML
  • YAML

For more information on the motivations for creating jc, see my blog post.

Happy parsing!

Published by kellyjonbrazil

I'm a cybersecurity and cloud computing nerd.

Leave a Reply

Discover more from Brazil's Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading