TSHARK: CLI WIRESHARK FEATURES

CLI WIRESHARK FEATURES I | STATISTICS I

Use the "Desktop/exercise-files/write-demo.pcap" file. What is the byte value of the TCP protocol?
root@thm:~$ cd Desktop/exercise-files/
root@thm:~$ tshark -r write-demo.pcap -z io,phs -q

 ===================================================================
 Protocol Hierarchy Statistics
 Filter: 

 eth                                      frames:1 bytes:62
   ip                                     frames:1 bytes:62
     tcp                                  frames:1 bytes:62
===================================================================
Use the "Desktop/exercise-files/write-demo.pcap" file. In which packet lengths row is our packet listed?
root@thm:~$ tshark -r write-demo.pcap -z plen,tree -q

 ==================================================================================================================================
 Packet Lengths:
 Topic / Item       Count         Average       Min val       Max val       Rate (ms)     Percent       Burst rate    Burst start  
 ----------------------------------------------------------------------------------------------------------------------------------
 Packet Lengths     1             62.00         62            62                          100%          0.0100        0.000        
  0-19              0             -             -             -                           0.00%         -             -            
  20-39             0             -             -             -                           0.00%         -             -            
  40-79             1             62.00         62            62                          100.00%       0.0100        0.000        
  80-159            0             -             -             -                           0.00%         -             -            
  160-319           0             -             -             -                           0.00%         -             -            
  320-639           0             -             -             -                           0.00%         -             -            
  640-1279          0             -             -             -                           0.00%         -             -            
  1280-2559         0             -             -             -                           0.00%         -             -            
  2560-5119         0             -             -             -                           0.00%         -             -            
  5120 and greater  0             -             -             -                           0.00%         -             -            

 ----------------------------------------------------------------------------------------------------------------------------------
Use the "Desktop/exercise-files/write-demo.pcap" file. What is the summary of the expert info?
root@thm:~$ tshark -r write-demo.pcap -z expert -q

 Chats (1)
 =============
    Frequency      Group           Protocol  Summary
            1   Sequence                TCP  Connection establish request (SYN): server port 80
Use the "Desktop/exercise-files/demo.pcapng" file. List the communications. What is the IP address that exists in all IPv4 conversations? Enter your answer in defanged format.
root@thm:~$ tshark -r demo.pcapng -z conv,ip -q
 ================================================================================
 IPv4 Conversations
 Filter:<No Filter>
                                                |       <-      | |       ->      | |     Total     |    Relative    |   Duration   |
                                                | Frames  Bytes | | Frames  Bytes | | Frames  Bytes |      Start     |              |
 65.208.228.223       <-> 145.254.160.237           16      1351      18     19344      34     20695     0.000000000        30.3937
 145.254.160.237      <-> 216.239.59.99              4      3236       3       883       7      4119     2.984291000         1.7926
 145.253.2.203        <-> 145.254.160.237            1        89       1       188       2       277     2.553672000         0.3605
 ================================================================================
 
 root@thm:~$ cyberchef.io
  input: 145.254.160.237
  recipe: Defang IP Addresses
  output: 145[.]254[.]160[.]237

CLI WIRESHARK FEATURES II | STATISTICS II

Use the "Desktop/exercise-files/demo.pcapng" file. Which IP address has 7 appearances? Enter your answer in defanged format.
Use the "Desktop/exercise-files/demo.pcapng" file. What is the "destination address percentage" of the previous IP address?
Use the "Desktop/exercise-files/demo.pcapng" file. Which IP address constitutes "2.33% of the destination addresses"? Enter your answer in defanged format.
Use the "Desktop/exercise-files/demo.pcapng" file. What is the average "Qname Len" value?

CLI WIRESHARK FEATURES III | STREAMS, OBJECTS & CREDENTIALS

Use the "Desktop/exercises-files/demo.pcapng" file. Follow the "UDP stream 0". What is the "Node 0" value? Enter your answer in defanged format.
Use the "Desktop/exercises-files/demo.pcapng" file. Follow the "HTTP stream 1". What is the "Referer" value? Enter your answer in defanged format.
Use the "Desktop/exercises-files/credentials.pcapng" file. What is the total number of detected credentials?

ADVANCED FILTERING OPTIONS | CONTAINS, MATCHES AND FIELDS

Use the "Desktop/exercises-files/demo.pcapng" file. What is the HTTP packet number that contains the keyword "CAFE"?
Use the "Desktop/exercises-files/demo.pcapng" file. Filter the packets with "GET" and "POST" requests and extract the packet frame time. What is the first time value found?

USE CASES | EXTRACT INFORMATION

Use the "Desktop/exercises-files/hostnames.pcapng" file. What is the total number of unique hostnames?
Use the "Desktop/exercises-files/hostnames.pcapng" file. What is the total appearance count of the "prus-pc" hostname?
Use the "Desktop/exercises-files/dns-queries.pcap" file. What is the total number of queries of the most common DNS query?
Use the "Desktop/exercises-files/user-agents.pcap" file. What is the total number of the detected "Wfuzz user agents"?
Use the "Desktop/exercises-files/user-agents.pcap" file. What is the "HTTP hostname" of the nmap scans? Enter your answer in defanged format.

Last updated