Is it possible to make npcap , winpcap work with wine?

Questions about Wine on Linux
Locked
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

Is it possible to make npcap , winpcap work with wine ? or the programs that require one of them like "selfishnet" for example ? (notice "Is it possible" )
-

Code: Select all

 "NDIS6 not supported in windows xp and earlier npcap cannot be installed" 
"the version of windows not supported by winpcap 4.1.3 ,the installation will be aborted "
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Is it possible to make npcap , winpcap work with wine?

Post by DarkShadow44 »

Wine should implement wpcap (aka winpcap).
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

DarkShadow44 wrote:Wine should implement wpcap (aka winpcap).
I found this topic which related / 2017 ..viewtopic.php?f=2&t=29830
quote:last reply on it
wine contains a builtin replacement for winpcap (wpcap.dll). You shouldn't need to install the Windows version, and it won't work.For wine's pcap replacement to work, you will need libpcap to be present (including a 32-bit version, if your windows program is 32-bit) and configured for your user. You will also need Wine to be built with pcap support, which you can check by looking for wpcap.dll.so in /usr/lib/wine and /usr/lib64/wine.
so Theoretically the programs that require that should work, i did a step not sure if it was necessary i added the " wpcap to "new override for library" .. but did not solve it .
anyway i will upload the log from "selfishnet" program next reply to give it space .
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

sub-note:before everything i am using Linux tools and the priority to it but for now even this program is beta/old it is special at least from my point of view .

the logs as i remember the first with " new override for library-wpcap" and the second without.
wine 4.11 i know it should be the last version but i think it will make no difference but soon i update i will test it again.
SelfishNetv0.2-beta

Code: Select all

 wine SelfishNetv0.2-beta_vista.exe
000b:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
000b:fixme:winediag:start_process Wine Staging 4.11 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
000f:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
000d:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
0012:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
0014:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
001c:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
0021:fixme:thread:create_user_shared_data_thread Creating user shared data update thread.
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"AIPS" failed to start: 2
0009:fixme:msvcm:CrtImplementationDetails_DoDllLanguageSupportValidation stub
0009:fixme:msvcm:CrtImplementationDetails_RegisterModuleUninitializer 01BF4E30: stub
0009:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
0009:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
0009:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
0009:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found
0009:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
0009:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
0009:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
0009:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found
0009:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
0009:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
0009:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
0009:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found

Unhandled Exception:
System.TypeLoadException: Could not load type of field 'SelfishNet10.ArpForm:driver' (0) due to: Could not load file or assembly 'PcapNet, Version=1.0.2706.20692, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'SelfishNet10.ArpForm:driver' (0) due to: Could not load file or assembly 'PcapNet, Version=1.0.2706.20692, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
------
second
------
wine SelfishNetv0.2-beta_vista.exe
007b:fixme:msvcm:CrtImplementationDetails_DoDllLanguageSupportValidation stub
007b:fixme:msvcm:CrtImplementationDetails_RegisterModuleUninitializer 01BF4E30: stub
007b:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
007b:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
007b:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
007b:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found
007b:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
007b:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
007b:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
007b:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found
007b:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
007b:err:module:import_dll Library NPPTools.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\WanPacket.dll") not found
007b:err:module:import_dll Library WanPacket.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\packet.dll") not found
007b:err:module:import_dll Library packet.dll (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\PcapNet.dll") not found
Unhandled Exception:

System.TypeLoadException: Could not load type of field 'SelfishNet10.ArpForm:driver' (0) due to: Could not load file or assembly 'PcapNet, Version=1.0.2706.20692, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'SelfishNet10.ArpForm:driver' (0) due to: Could not load file or assembly 'PcapNet, Version=1.0.2706.20692, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by jkfloris »

Code: Select all

...
0009:err:module:import_dll Library MFC42u.DLL (which is needed by L"Z:\\home\\*user*\\Downloads\\programs\\Selfishnet win 7\\NPPTools.dll") not found
...
Install the .dll and try again

Code: Select all

winetricks mfc42
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

jkfloris wrote: Install the .dll and try again

Code: Select all

winetricks mfc42
i downloaded it but the program did not work yet, the files that the program can not find from the log are in the program folder so i added them to" override for library " native" beside mfc42 and wpcap "bultin" not sure if that was necessary.

the new log

Code: Select all

wine SelfishNetv0.2-beta_vista.exe
002c:fixme:msvcm:CrtImplementationDetails_DoDllLanguageSupportValidation stub
002c:fixme:msvcm:CrtImplementationDetails_RegisterModuleUninitializer 01BF4E30: stub
Int64[]
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Loading of the ImageList did not succeed.
  at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x000d8] in <f2e4db7870624d78b14241d9fb824211>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.SerializationInvoke (System.Object target, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject (System.Object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00059] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.FixupSpecialObject (System.Runtime.Serialization.ObjectHolder holder) [0x00088] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x0005a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00077] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.DeserializeObject (System.Int32 typeIndex) [0x00019] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader._LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x0035b] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.LoadObject (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00022] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase, System.Boolean isString) [0x000b4] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x00028] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at SelfishNet10.ArpForm.InitializeComponent () [0x00f0f] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
  at SelfishNet10.ArpForm..ctor () [0x00006] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
  at (wrapper remoting-invoke-with-check) SelfishNet10.ArpForm..ctor()
  at <Module>.main (System.String[] args) [0x0000b] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Loading of the ImageList did not succeed.
  at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x000d8] in <f2e4db7870624d78b14241d9fb824211>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Reflection.RuntimeConstructorInfo.SerializationInvoke (System.Object target, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject (System.Object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x00059] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.FixupSpecialObject (System.Runtime.Serialization.ObjectHolder holder) [0x00088] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x0005a] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00077] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.DeserializeObject (System.Int32 typeIndex) [0x00019] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader._LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x0035b] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.LoadObjectV2 (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceReader.LoadObject (System.Int32 pos, System.Resources.ResourceTypeCode& typeCode) [0x00022] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase, System.Boolean isString) [0x000b4] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.RuntimeResourceSet.GetObject (System.String key, System.Boolean ignoreCase) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x00028] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] in <6cc67c6253564d2282cafa9c7a2b691e>:0 
  at SelfishNet10.ArpForm.InitializeComponent () [0x00f0f] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
  at SelfishNet10.ArpForm..ctor () [0x00006] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
  at (wrapper remoting-invoke-with-check) SelfishNet10.ArpForm..ctor()
  at <Module>.main (System.String[] args) [0x0000b] in <c4d1e00f069a4fbea1be49340c649e3a>:0 
002c:fixme:msvcrt:__clean_type_info_names_internal (0x2265694) stub
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by jkfloris »

That looks like a .Net error. Find out which version of the .Net Framework the program needs and use winetricks to install it.
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

jkfloris wrote: Mon Sep 09, 2019 4:07 am That looks like a .Net error. Find out which version of the .Net Framework the program needs and use winetricks to install it.
3.5 , but i can not install it "using winetricks /20190615 .

Code: Select all

dotnet35 does not yet fully work or install on wine.  Caveat emptor.
after that : sha256sum mismatch! Rename /home/*user*/.cache/winetricks/dotnet35/dotnetfx35.exe and try again.
i tried to install it manually

Code: Select all

you must use " turn windows features on or off" etc
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by jkfloris »

Rename /home/*user*/.cache/winetricks/dotnet35/dotnetfx35.exe and try again.
Have you tried this solution?
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

jkfloris wrote: Mon Sep 09, 2019 10:52 am
Rename /home/*user*/.cache/winetricks/dotnet35/dotnetfx35.exe and try again.
Have you tried this solution?
what is the point of renaming when it is already at the same name / path all of it, but i deleted the folder and let it create it again which as i remember fixed an old problem at installation an "file" from winetricks before. if that what renaming means.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by jkfloris »

Winetricks uses the sha256sum to check whether the correct file has been saved. If this is not the case (anymore) you will get the message above.
In this case, it probably doesn't matter if you delete or rename the file. If you want to keep the old file, you should rename it.

If you still get the sha256sum mismatch error, make sure you have the latest version of winetricks

Code: Select all

sudo winetricks --self-update
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

jkfloris wrote: Mon Sep 09, 2019 5:01 pm If you still get the sha256sum mismatch error, make sure you have the latest version of winetricks

Code: Select all

sudo winetricks --self-update
i installed winetricks manually because Debian / Ubuntu package outdated,i downloaded it again manually to make sure and tried to download dotnet35.exe but same results.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by jkfloris »

but same results
Do you mean the sha256sum mismatch error?

What is the output of

Code: Select all

winetricks --version
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

jkfloris wrote: Tue Sep 10, 2019 4:47 am Do you mean the sha256sum mismatch error?
What is the output of

Code: Select all

winetricks --version
yes same results beside i can not use this command, because i am using "script" i did not download the package from software manger because it is outdated. but i can know the version from linux terminal output while running it normally. you know there is a theory but it might be just theory i ended my "internet bandwidth/quota" so for now i am using very slow internet which is not even suitable for browsing but it can do things if you let it and i think winetricks downloading the offline installer and from "downloading time /period " which it is too long so maybe 'the session has expired" etc because the file is corrupted and not completed,which sounds logical but on the other side it is common problem from searching etc. and before that there is this message

Code: Select all

dotnet35 does not yet fully work or install on wine.  Caveat emptor.
but just to keep things on track i think i have the last version of it /20190615.
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

update: i was right at my theory with suitable speed the file was downloaded and i found mscoree at override for library even it is not checked on winetricks ,the program did not work but i think the program might work if we continue due to the new log but the irony side of this short story i was thinking to install it manually or may be to see the setup file which was completed and i was shocked with this part of the licence from microsoft i hope i read it wrong..
If you are licensed to use Microsoft Windows operating system software (the “software”), you may use this supplement. You may not use it if you do not have a license for the software. You may use this supplement with each validly licensed copy of the software.
so that is the irony side and that is the irony question should i continue uploading the log for it ?

so anyway there is alternative program that requires npcap newer with different log that but not same with the capabilities as i think for now like displaying devices live network usage/speed i did not test the windows version of it. i will upload the log and details next post to see if we can get it work with mono. if you are still interested.
Last edited by thisusername on Tue Sep 10, 2019 5:29 pm, edited 2 times in total.
thisusername
Level 2
Level 2
Posts: 26
Joined: Mon Jun 17, 2019 10:38 am

Re: Is it possible to make npcap , winpcap work with wine?

Post by thisusername »

as i said before i am using Linux tools and this program has Linux version but with no GUI and the limiting not working at least for me not saying at all or for all but the tool active as i think so at the end the bugs maybe fixed on linux.
but to go back to the problem
here is the windows version the program/tool called "evillimiter"
and from the log i can say it is Net framework issue hope it can be fixed somehow with mono or anyway but there is strange part of the log saying mono is not installed i do not know how that happen and how it disappeared i was sure it was installed from Uninstalling list before but i installed it again by winemono.msi and that was fixed. but still the tool not working

Code: Select all

 wine EvilLimiter.exe
wine EvilLimiter.exe
00d9:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.7.2" not implemented
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"appSettings" in state 2
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"system.web" in state 2
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"membership" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"providers" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"roleManager" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"providers" in state 6
00d9:fixme:mscoree:ConfigFileHandler_startElement Unknown element L"add" in state 6
00d9:fixme:wpcap:wine_pcap_findalldevs_ex ("rpcap://" (nil) 0x34f5c8 0x34f5d4): partial stub

Unhandled Exception:
System.NotImplementedException: Device of family NetBios is unsupported
  at PcapDotNet.Core.DeviceAddress..ctor (pcap_addr* pcapAddress) [0x0004c] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at PcapDotNet.Core.LivePacketDevice..ctor (pcap_if* device) [0x00015] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at PcapDotNet.Core.LivePacketDevice.get_AllLocalMachine () [0x00049] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at EvilLimiter.Windows.Forms.FrmInterface.InitializeInterfaces () [0x0001b] in <d3a2c206ef084262ab1680763a3a3d75>:0 
  at EvilLimiter.Windows.Forms.FrmInterface..ctor () [0x00017] in <d3a2c206ef084262ab1680763a3a3d75>:0 
  at (wrapper remoting-invoke-with-check) EvilLimiter.Windows.Forms.FrmInterface..ctor()
  at EvilLimiter.Windows.Program.Main () [0x00011] in <d3a2c206ef084262ab1680763a3a3d75>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: Device of family NetBios is unsupported
  at PcapDotNet.Core.DeviceAddress..ctor (pcap_addr* pcapAddress) [0x0004c] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at PcapDotNet.Core.LivePacketDevice..ctor (pcap_if* device) [0x00015] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at PcapDotNet.Core.LivePacketDevice.get_AllLocalMachine () [0x00049] in <b07d15afa0b94a208e46b20ece38f773>:0 
  at EvilLimiter.Windows.Forms.FrmInterface.InitializeInterfaces () [0x0001b] in <d3a2c206ef084262ab1680763a3a3d75>:0 
  at EvilLimiter.Windows.Forms.FrmInterface..ctor () [0x00017] in <d3a2c206ef084262ab1680763a3a3d75>:0 
  at (wrapper remoting-invoke-with-check) EvilLimiter.Windows.Forms.FrmInterface..ctor()
  at EvilLimiter.Windows.Program.Main () [0x00011] in <d3a2c206ef084262ab1680763a3a3d75>:0 
00d9:fixme:msvcrt:__clean_type_info_names_internal (0x3ba6dc4) stub

-
at end for those who read that and Interested at this topic /tool if this topic ended on that i might continue searching and using Linux tools, contacting developers to fix bugs adding features etc. same applies to you and of course it is up to you.
thanks.
Locked