punk-security / smbeagle

SMBeagle - Fileshare auditing tool.
Apache License 2.0
698 stars 82 forks source link

No useable version of libssl was found (Solution in description) #87

Closed thec0nci3rge closed 1 year ago

thec0nci3rge commented 1 year ago

Hi guys,

I am opening up this issue, as it might help anyone facing it as well.

When downloading the amd64.deb version and running it for the first time - I get the following error:

No useable version of libssl was found
zsh: IOT instruction ./SMBeagle

image

Simply installing libssl-dev (sudo apt install libssl-dev) didn't solve it either (as it does in other cases).

On a unity forum (https://forum.unity.com/threads/workaround-for-libssl-issue-on-ubuntu-22-04.1271405/), I was able to find a way to solve this, by simply installing an older libssl library for debian.

sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb

Now, running ./SMBeagle --help should work as intended.

I didn't have time to look inside the code, in order to find the culprit yet, however I thought this "quick fix" might be useful.

Greetings!

SimonGurney commented 1 year ago

Wow thanks for taking the time to find a fix for this.

We'll build a new version and see if that squashes this out :)

SimonGurney commented 1 year ago

This should be fixed as we've bumped to dotnet 7!

We'd love for you test, but we've tested on old / new Kali and old / new Ubuntu!

thec0nci3rge commented 1 year ago

Hi,

I just tested it and it seems to work now - great work!! Thank you.

One thing I noticed, was that starting it, took almost a minute. This was tested within a kali WSL2 instance. I will still test this within a VM & a life system. Will keep you posted: 2023-07-27_17-19_1

Execution time: image

SimonGurney commented 1 year ago

Wow, that's suspiciously close to a minute isn't it!

We've not seen that in our testing so I'm a bit stuck as to what it could be.

There is very little actual code that runs as the arg parsing happens all right at the start and then throws that help message.

I'll see if I can reproduce it

thec0nci3rge commented 1 year ago

Okay, seems my WSL instance was running with issues.

Testing it again, it is now a normal user experience: image

So please disregard the time issue.

Happy to see it's working! Thank you again!

SimonGurney commented 1 year ago

ah ok brilliant, thanks for leeting us know :)