Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runing error? #99

Closed
Shanzem opened this issue Aug 22, 2021 · 11 comments · Fixed by #101
Closed

Runing error? #99

Shanzem opened this issue Aug 22, 2021 · 11 comments · Fixed by #101
Labels
bug Something isn't working

Comments

@Shanzem
Copy link

Shanzem commented Aug 22, 2021

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
SharpPcap.PcapException: Error setting PcapDevice mode. : driver error: working mode not recognized
at SharpPcap.Npcap.NpcapDevice.set_Mode(CaptureMode value)
at PcapProcessor.Sniffer.StartSniffing(CancellationToken ct)
at BruteSharkDesktop.MainForm.<>c__DisplayClass35_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
at BruteSharkDesktop.MainForm.StartLiveCaptureAsync()
at System.Threading.Tasks.Task.<>c.b__139_0(Object state)

************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 4.0.0.0
Win32 Version: 4.700.21.35901
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Private.CoreLib.dll

BruteSharkDesktop
Assembly Version: 1.4.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/BruteSharkDesktop.dll

System.Runtime
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Runtime.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.800.121.35902
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Windows.Forms.dll

System.ComponentModel.Primitives
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.ComponentModel.Primitives.dll

System.Drawing.Primitives
Assembly Version: 4.2.1.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Drawing.Primitives.dll

System.Collections.Specialized
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Collections.Specialized.dll

System.Runtime.InteropServices
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Runtime.InteropServices.dll

System.Threading
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Threading.dll

System.Diagnostics.TraceSource
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Diagnostics.TraceSource.dll

System.Collections
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Collections.dll

System.Runtime.Extensions
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Runtime.Extensions.dll

System.Diagnostics.Debug
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Diagnostics.Debug.dll

System.Threading.Tasks
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Threading.Tasks.dll

PcapAnalyzer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/PcapAnalyzer.dll

netstandard
Assembly Version: 2.1.0.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/netstandard.dll

PcapProcessor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/PcapProcessor.dll

System.Drawing.Common
Assembly Version: 4.0.2.2
Win32 Version: 4.700.21.6905
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Drawing.Common.dll

Microsoft.Win32.Primitives
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/Microsoft.Win32.Primitives.dll

System.ComponentModel.EventBasedAsync
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.ComponentModel.EventBasedAsync.dll

System.Threading.Thread
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Threading.Thread.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.800.121.35902
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/Accessibility.dll

System.Collections.NonGeneric
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Collections.NonGeneric.dll

System.Memory
Assembly Version: 4.2.1.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Memory.dll

System.ComponentModel.TypeConverter
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.ComponentModel.TypeConverter.dll

System.ComponentModel
Assembly Version: 4.0.4.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.ComponentModel.dll

Microsoft.Win32.SystemEvents
Assembly Version: 4.0.2.0
Win32 Version: 4.700.19.56404
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/Microsoft.Win32.SystemEvents.dll

System.IO.FileSystem
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.IO.FileSystem.dll

PacketDotNet
Assembly Version: 1.1.2.0
Win32 Version: 1.1.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/PacketDotNet.dll

System.Linq
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Linq.dll

System.Configuration.ConfigurationManager
Assembly Version: 4.0.3.0
Win32 Version: 4.700.19.56404
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Configuration.ConfigurationManager.dll

System.ObjectModel
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.ObjectModel.dll

System.Runtime.Serialization.Formatters
Assembly Version: 4.0.4.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Runtime.Serialization.Formatters.dll

System.Resources.ResourceManager
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Resources.ResourceManager.dll

System.Resources.Writer
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Resources.Writer.dll

System.Text.RegularExpressions
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Text.RegularExpressions.dll

System.Buffers
Assembly Version: 4.0.5.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Buffers.dll

System.Xml.XDocument
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Xml.XDocument.dll

System.Private.Xml.Linq
Assembly Version: 4.0.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Private.Xml.Linq.dll

System.Private.Xml
Assembly Version: 4.0.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Private.Xml.dll

System.Security.Cryptography.Primitives
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Security.Cryptography.Primitives.dll

System.Xml.ReaderWriter
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Xml.ReaderWriter.dll

System.Private.Uri
Assembly Version: 4.0.6.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Private.Uri.dll

Microsoft.Msagl.GraphViewerGdi
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/Microsoft.Msagl.GraphViewerGdi.dll

AutomaticGraphLayout.Drawing
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/AutomaticGraphLayout.Drawing.dll

mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/mscorlib.dll

AutomaticGraphLayout
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/AutomaticGraphLayout.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.800.121.35902
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.dll

System.Collections.Concurrent
Assembly Version: 4.0.15.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Collections.Concurrent.dll

System.Diagnostics.FileVersionInfo
Assembly Version: 4.0.4.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Diagnostics.FileVersionInfo.dll

System.Windows.Extensions
Assembly Version: 4.0.1.0
Win32 Version: 4.700.19.56404
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Windows.Extensions.dll

CommonUi
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/CommonUi.dll

System.Resources.Extensions
Assembly Version: 4.0.1.0
Win32 Version: 4.700.20.21406
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/3.1.18/System.Resources.Extensions.dll

SharpPcap
Assembly Version: 5.4.0.0
Win32 Version: 5.4.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BruteSharkDesktop/SharpPcap.dll

System.Net.Primitives
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Net.Primitives.dll

System.Net.NetworkInformation
Assembly Version: 4.2.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Net.NetworkInformation.dll

System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 4.0.4.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Runtime.InteropServices.RuntimeInformation.dll

System.Threading.ThreadPool
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Threading.ThreadPool.dll

System.Diagnostics.StackTrace
Assembly Version: 4.1.2.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Diagnostics.StackTrace.dll

System.Reflection.Metadata
Assembly Version: 1.4.5.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Reflection.Metadata.dll

System.Collections.Immutable
Assembly Version: 1.2.5.0
Win32 Version: 4.700.21.36305
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/3.1.18/System.Collections.Immutable.dll

************** JIT Debugging **************

I installed the x64 .Net core via the link! Win32 Version: 4.700.21.36305???????

@odedshimon
Copy link
Owner

Hi @Shanzem,
I didn't understand your problem.
Please add a detailed description of the problem including examples.
Oded.

@Shanzem
Copy link
Author

Shanzem commented Aug 22, 2021

Ok gimmie a min and thank you!

@Shanzem
Copy link
Author

Shanzem commented Aug 22, 2021

Ok the program loads up just fine.

I followed the instructions and already have pcap installed from wireshark :) Downloaded the latest vision just to be sure.
I then downloaded the x64 .net 3.0 runtime and installed and rebooted.

I then downloaded the pre built 64bit binary package and installed.

Now using the module DNS and network mapping i get the error above when i click capture on wifi.

BruteSharkError

I am using windows 10 with WSL2 and my system is currently running the latest windows updates.

Should i try installing the x86 (32bit) package? Little odd i know :/

@Shanzem
Copy link
Author

Shanzem commented Aug 22, 2021

WindowsNET30
WindowsNET30Installed

@odedshimon
Copy link
Owner

Thanks for the detailed description.
Since the app is launching just fine I tend to believe it is a bug at the only at the sniffing flow or at SharpPcap library (one of the major packages BruteShark is using).

For isolating the reason it would be great if you check some offline analysis by loading some PCAP files (you can get those from this repo at - https://github.com/odedshimon/BruteShark/tree/master/Pcap_Examples)

@Shanzem
Copy link
Author

Shanzem commented Aug 24, 2021

On it! Will check and report back.

@Shanzem
Copy link
Author

Shanzem commented Aug 24, 2021

Huston we have a problem.... they work as intended!

pop3
tcip5
htmlsmallfile

@qq1176914912
Copy link

qq1176914912 commented Aug 25, 2021

休斯顿,我们遇到了问题……它们按预期工作!

流行音乐3
tcip5
html小文件
I have used your latest client and latest npcap, but I still can’t get the data
PT0MVQK4M200Q~ PDW$)4Q4

@odedshimon
Copy link
Owner

Hi @qq1176914912 , @Shanzem
The problem you have described happened to me too. There seems to be a problem with the sniffing wireless interfaces (I sniffed successfuly an Ethernet interfaces), after short debugging it seems that the Sniffer class does not manage to capture any packets, I think it is related to the SharpPcap library that BruteShark is using. I will open an issue at SharpPcap repo for discussing this issue and look for solution.

@odedshimon
Copy link
Owner

There was no bug with capturing wireless interfaces, there was a bug caused that although a certain network interface was selected at the user interface, another network card was selected behind the scenes.
At first I thought it was a problem with capturing wireless network interfaces only, but in fact the phenomenon could happen with any network interface.
Bug fixed and merged to master and will be included at the next release (Will be published in the coming days)

Thanks for letting me know! @Shanzem, @qq1176914912

@odedshimon odedshimon added the bug Something isn't working label Aug 30, 2021
@qq1176914912
Copy link

没有捕获无线接口的bug有一个bug导致虽然在用户界面选择了某个网络接口,但在幕后选择了另一个网卡
一开始我以为是只捕获无线网络接口的问题,但实际上任何网络接口都会出现这种现象。
修复了错误并合并到 master并将包含在下一个版本中(将在未来几天发布)

谢谢你让我知道!@Shanzem , @qq1176914912

You're welcome, let's make the program more perfect together

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants