Giter VIP home page Giter VIP logo

Comments (8)

pocc avatar pocc commented on May 20, 2024

Thanks for reporting this. Please post tshark -v

from termshark.

 avatar commented on May 20, 2024

I think I found where my issue is.

it's related to Wireshark and Tshark version, you require v3.0

I only have v2.6.8 on my kali system

from termshark.

pocc avatar pocc commented on May 20, 2024

Cheers. Closing this - let us know if it's not tshark version.

from termshark.

gcla avatar gcla commented on May 20, 2024

I think v2.6.8 is fine, that's the version I'm running. I only found problems with versions < 1.10.2 from a few years back. I'll re-open this to investigate. Just to confirm, @jJit0 , that the problem still exists for you? Can you let us know if you're able to get data back from a command like this:

tshark -i wlan0 -T psml -o gui.column.format:"No.","%m","Time","%t","Source","%s","Destination","%d","Protocol","%p","Length","%L","Info","%i"

Thanks!

from termshark.

 avatar commented on May 20, 2024

Hello gcla,

Here is output of your command

`tshark -i wlan0 -T psml -o gui.column.format:"No.","%m","Time","%t","Source","%s","Destination","%d","Protocol","%p","Length","%L","Info","%i"
Running as user "root" and group "root". This could be dangerous.

Source
Destination
Protocol
Info

Capturing on 'wlan0'

10.199.0.126
255.255.255.255
DB-LSP-DISC
Dropbox LAN sync Discovery Protocol
10.199.2.22
10.199.7.255
UDP
54915 \xe2\x86\x92 54915 Len=263
10.199.0.109
10.199.7.255
BROWSER
Become Backup Browser
10.199.0.109
10.199.7.255
BROWSER
Become Backup Browser
10.199.0.109
10.199.7.255
BROWSER
Become Backup Browser
10.199.0.109
10.199.7.255
BROWSER
Become Backup Browser
10.199.0.212
10.199.7.255
NBNS
Name query NB IMQBRDTXRHRTAZM<00>
10.199.2.22
10.199.7.255
UDP
54915 \xe2\x86\x92 54915 Len=263
10.199.0.212
10.199.7.255
NBNS
Name query NB IMQBRDTXRHRTAZM<00>
10.199.0.212
10.199.7.255
NBNS
Name query NB ELJTFSXNDF<00>
10.199.0.212
10.199.7.255
NBNS
Name query NB DZZZDMOJS<00>
10.199.0.212
10.199.7.255
NBNS
Name query NB IMQBRDTXRHRTAZM<00>

^C

10.199.0.212
10.199.7.255
NBNS
Name query NB ELJTFSXNDF<00>
10.199.0.212
10.199.7.255
NBNS
Name query NB DZZZDMOJS<00>

14 packets captured

`

I also installed termshark from Debian unstable, but I still have the same error.
my wireshark version is 2.6.8-1.1

from termshark.

gcla avatar gcla commented on May 20, 2024

Hi @jJit0 - thanks for the output, and most strange - here's the sort of thing I see

gcla@elgin:~$ tshark -i wlan1 -T psml -o gui.column.format:"No.","%m","Time","%t","Source","%s","Destination","%d","Protocol","%p","Length","%L","Info","%i"
<?xml version="1.0" encoding="utf-8"?>
<psml version="0" creator="wireshark/2.6.8">
<structure>           
<section>No.</section>                                                              
<section>Time</section>
<section>Source</section>
<section>Destination</section>
<section>Protocol</section>
<section>Length</section>     
<section>Info</section>          
</structure>                    
                      
Capturing on 'wlan1'  
<packet>                                                                                                                                          
<section>1</section>
<section>0.000000000</section>
<section>192.168.86.246</section>
<section>52.21.251.252</section>
<section>TLSv1.2</section>    
<section>129</section>          
<section>Application Data</section>
</packet>             
...

i.e. XML output. Is it possible you have an old tshark in your PATH that is overriding the one from the wireshark package you're installing? But that doesn't quite add up because termshark, by default, picks the tshark that would come first in PATH and checks to make sure the version is compatible. So it would seem whatever tshark is being run on your machine is validated by termshark... Maybe the tshark you're installing somehow doesn't have XML support compiled in? Clutching at straws here :)

A couple of things:

  • could you run tshark -v and paste the output?
  • in ~/.config/termshark/termshark.toml you can set a specific tshark to use e.g.
[main]
  tshark = "/opt/wireshark-2.6.8/bin/tshark"

Maybe point it to the tshark that is part of the wireshark package, and see if that helps?

from termshark.

 avatar commented on May 20, 2024

Hi gcla,

No need for all that, you just gave me the clue to look into /root/.config/wireshark.
Brilliant idea ;-)
The problem was in wireshark different columns, in fact.

I use to disable NĀ°, Time and Length columns, to have more readability on packets, and by enabling them, termshark worked again.

Give it a try, and tell me if it's reproducible for you too.

It can be problematic, if you want to disable some columns in wireshark. I hope there will be a fix in next major release

from termshark.

gcla avatar gcla commented on May 20, 2024

Aha - yes, you're right, the column choices are currently fixed in termshark, unfortunately. :-/ I'll close this issue and open a feature request for configurable columns.

from termshark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.