1

How can I configure tshark to display the OrgName of the source or destination IP?

This command produces empty lines

tshark -lq -T fields -e ip.geoip.src_org

and so does this command

tshark -lq -T fields -e whois.answer
2

The only solution found yet is to pipe IP to whois command:

jwhois is faster than whois (test it with time [cmd] )

#!/bin/bash

tshark -T fields -e ip.addr -E aggregator=" " -l| |sed "s/192.168.1.39//;s/^[ ]*//" |  while read i
do
echo " "
echo "$i" 
jwhois $i | grep -i 'orgname\|country\|netrange' | sed 's/^[ ]*//' 
done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.