coderobe / VBiosFinder

Extract embedded VBIOS from (almost) any BIOS Update
GNU Affero General Public License v3.0
128 stars 21 forks source link

-bash: ./vbiosfinder: No such file or directory #47

Open Sebls135 opened 2 years ago

Sebls135 commented 2 years ago

Hello,

I installed all elements but I've a problem with the method with vbiosfinder. Command:

root@pve:~# ./vbiosfinder extract /download/vbios/ASUS_G10DK_309_BIOS_Update.exe -bash: ./vbiosfinder: No such file or directory

Have you a solution

Thank you

Best regards

raksanyiv commented 2 years ago

Hi!

  1. You shouldn't need root privileges to run vbiosfinder.
  2. You don't have vbiosfinder in your current working directory. Find where you put it and run it from that directory.
Sebls135 commented 2 years ago

Hello, Thank you for your response.

But I'm in the directory where vbiosfinder is.

maybe not all the elements were installed correctly

I have installed following this method 1) apt-get install ruby-full 2)gem install bundler 3)bundle install --path=vendor/bundle 4) ./vbiosfinder extract /download/vbios/ASUS_G10DK_309_BIOS_Update.exe -bash: ./vbiosfinder: No such file or directory

Am I wrong?

Thank you

raksanyiv commented 2 years ago

Hmmm... Seems a bit too optimistic as I don't see that you have installed the required third party stuff... Do you have execute permission on vbiosfinder?

Sebls135 commented 2 years ago

ok, it's a newbie question but how to install the third party anq execute the permission on vbiosfinder? thx

Sebls135 commented 2 years ago

Thank you, I'm in progress

I used chmod +x /download/vbios/vbiosfinder and after ./vbiosfinder extract /download/vbios/ASUS_G10DK_309_BIOS_Update.exe. I have another issue: Traceback (most recent call last): /usr/bin/ruby: No such file or directory -- _init.rb (LoadError)

Thank you for your help

raksanyiv commented 2 years ago

Seems like you did not check out the full repo (or did not download all the necessary files). Just downloading vbiosfinder is not enough. There are ruby files like _init.rb in the main dir , and a lot of other ruby files in the src dir that are needed.

Sebls135 commented 2 years ago

I downloaded all elements and my problems comes with the full repo :(.

raksanyiv commented 2 years ago

Would you be so kind and show us your directory and subdirectory contents where you try to run vbiosfinder? Mind the sensitive data like usernames etc. $ ls -lah /path/of/vbiosfinder/*

Sebls135 commented 2 years ago

yes, no problem.

root@pve:~# ls -lah /path/of/vbiosfinder/ ls: cannot access '/path/of/vbiosfinder/': No such file or directory

Because my directory is /download/vbios

root@pve:~# ls -lah /download/vbios/* -rw-r--r-- 1 root root 18M Jun 1 08:57 /download/vbios/ASUS_G10DK_309_BIOS_Update.exe -rw-r--r-- 1 root root 457 May 29 08:49 /download/vbios/Gemfile -rw-r--r-- 1 root root 469 May 29 08:49 /download/vbios/Gemfile.lock -rw-r--r-- 1 root root 87 May 29 08:49 /download/vbios/_init.rb -rw-r--r-- 1 root root 34K May 29 08:49 /download/vbios/LICENSE.txt -rw-r--r-- 1 root root 2.5K May 29 08:49 /download/vbios/README.md -rwxr-xr-x 1 root root 150 Jun 1 14:14 /download/vbios/vbiosfinder

/download/vbios/3rdparty: total 8.0K drwxr-xr-x 2 root root 4.0K May 29 08:49 . drwxr-xr-x 5 root root 4.0K Jun 1 09:56 .. -rw-r--r-- 1 root root 0 May 29 08:49 .gitkeep

/download/vbios/ruby: total 12K drwxr-xr-x 3 root root 4.0K Jun 1 09:56 . drwxr-xr-x 5 root root 4.0K Jun 1 09:56 .. drwxr-xr-x 2 root root 4.0K Jun 1 09:56 2.7.0

/download/vbios/src: total 52K drwxr-xr-x 2 root root 4.0K May 29 08:49 . drwxr-xr-x 5 root root 4.0K Jun 1 09:56 .. -rw-r--r-- 1 root root 1.1K May 29 08:49 cli.rb -rw-r--r-- 1 root root 537 May 29 08:49 extract-7z.rb -rw-r--r-- 1 root root 548 May 29 08:49 extract-innosetup.rb -rw-r--r-- 1 root root 404 May 29 08:49 extraction.rb -rw-r--r-- 1 root root 762 May 29 08:49 extract-polyglot.rb -rw-r--r-- 1 root root 597 May 29 08:49 extract-uefi.rb -rw-r--r-- 1 root root 554 May 29 08:49 extract-upx.rb -rw-r--r-- 1 root root 617 May 29 08:49 extract-zlib.rb -rw-r--r-- 1 root root 4.1K May 29 08:49 methods.rb -rw-r--r-- 1 root root 548 May 29 08:49 utils.rb

Sebls135 commented 2 years ago

I think I resolved my problem. I must be in the directory (/download/vbios) :D. But now I have a problem with Terrapin : /download/vbios/vendor/bundle/ruby/2.7.0/gems/terrapin-0.6.0/lib/terrapin/command_line.rb:82:in `run': Terrapin::CommandNotFoundError (Terrapin::CommandNotFoundError)

raksanyiv commented 2 years ago

Hi, that's why I wrote in the beginning: "Find where you put it and run it from that directory." :-)

I presume you did not issue this command: $ bundle install --path=vendor/bundle from /download/vbios/ dir but in /root rigt?? This command should install a lot of ruby stuff to /download/vbios/vendor/bundle, provided that you are in the /download/vbios/ directory. Otherwise it will just use your current directory.

Sebls135 commented 2 years ago

Hi, Thank you for your help :D. I forgot le command "cd" :p.

Now I have a error with Terrapin. Terrapin::CommandNotFoundError (Terrapin::CommandNotFoundError)