GitHub has started to redirect raw.github.com to
raw.githubusercontent.com, breaking the installation scripts.
Paramter -L makes curl follow the redirect.
bash's anonymous fifos are only available if devfs is mounted.
On a system without /dev mounted (which is perfectly reasonable for a locked-down security testing machine), installing beef fails with (after applying #923)
install-beef: line 81: /dev/fd/62: No such file or directory
This commit fixes and lets the installation run through.
On a (debian) system without sudo, lots of messages rush by, and it's not obvious was fails.
With this change, the log looks like:
$ bash install-beef
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
======================================
BeEF Installer
======================================
CAUTION: This installation script will install a number of BeEF dependencies including the Ruby-RVM environemnt and it's dependencies.
In rare cases, this may lead to unexpected behaviour or package conflicts on some systems.
Are you sure you wish to continue (Y/n)?
Detecting OS..
Debian/Ubuntu Detected
Installing Prerequisite Packages..
install-beef: line 74: sudo: command not found
which is far more informative.