xtr4nge / FruityWifi

FruityWiFi is a wireless network auditing tool. The application can be installed in any Debian based system (Jessie) adding the extra packages. Tested in Debian, Kali Linux, Kali Linux ARM (Raspberry Pi), Raspbian (Raspberry Pi), Pwnpi (Raspberry Pi), Bugtraq, NetHunter.
http://www.fruitywifi.com
GNU General Public License v3.0
2.19k stars 498 forks source link

Installation failed on Raspberry Pi (ARM) Kali 2020.4 #281

Closed LavaTiger99 closed 3 years ago

LavaTiger99 commented 3 years ago

Installation fails on Kali 2020.4 on Raspberry pi:

>>>sudo ./install-FruityWifi.sh

Hit:2 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:1 http://kali.download/kali kali-rolling InRelease
Hit:3 http://http.re4son-kernel.com/re4son kali-pi InRelease
Reading package lists... Done
--------------------------------
Creates user fruitywifi
--------------------------------
[fruitywifi user has been created]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

Package python-scapy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-scapy

E: Package 'php5-curl' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'python-scapy' has no installation candidate
E: Unable to locate package python-netifaces
E: Package 'python-pip' has no installation candidate
Requirement already satisfied: netifaces in /usr/lib/python3/dist-packages (0.10.9)
--------------------------------
Installing gcc 4.7
--------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-4.7
E: Couldn't find any package by glob 'gcc-4.7'
E: Couldn't find any package by regex 'gcc-4.7'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package g++-4.7
E: Couldn't find any package by glob 'g++-4.7'
E: Couldn't find any package by regex 'g++-4.7'
update-alternatives: error: alternative path /usr/bin/gcc-4.7 doesn't exist
[gcc setup completed]

--------------------------------
dnsmasq already installed
--------------------------------

--------------------------------
hostapd already installed
--------------------------------

--------------------------------
aircrack-ng already installed
--------------------------------

--------------------------------
Installing Nginx
--------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-fpm' has no installation candidate

--------------------------------
Create Nginx ssl certificate
--------------------------------
mkdir: cannot create directory ‘/etc/nginx/ssl’: File exists
Generating a RSA private key
..........................+++++
......................................................................+++++
writing new private key to '/etc/nginx/ssl/nginx.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:
rm: cannot remove '/etc/nginx/sites-enabled/default': No such file or directory
cp: cannot create regular file '/etc/php5/fpm/pool.d/': No such file or directory
cp: cannot create regular file '/etc/php5/fpm/pool.d/': No such file or directory
mkdir: cannot create directory ‘/var/www/’: File exists
cp: cannot create regular file '/etc/php5/fpm/pool.d/': No such file or directory
cp: cannot create regular file '/etc/php5/fpm/pool.d/': No such file or directory
Restarting nginx (via systemctl): nginx.service.
./install-FruityWifi.sh: line 174: /etc/init.d/php5-fpm: No such file or directory
[nginx setup completed]

--------------------------------
BACKUP
--------------------------------
mv: target '3-13-55' is not a directory

--------------------------------
Setup FruityWifi
--------------------------------
--------------------------------
Config log path
--------------------------------
mkdir: cannot create directory ‘/usr/share/fruitywifi/logs’: File exists
sed: -e expression #1, char 11: unterminated `s' command
[logs setup completed]

--------------------------------
Setup Sudo
--------------------------------
[sudo setup completed]

--------------------------------
Setup DNSMASQ
--------------------------------
[dnsmasq setup completed]

--------------------------------
Installing danger
--------------------------------

--------------------------------
Start Services
--------------------------------
update-rc.d: error: unable to read /etc/init.d/php5-fpm
Restarting nginx (via systemctl): nginx.service.
./install-FruityWifi.sh: line 262: /etc/init.d/php5-fpm: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ifplugd' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libjs-highlight.js
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 203 not upgraded.

GitHub: https://github.com/xtr4nge/FruityWifi
Twitter: @xtr4nge, @FruityWifi
ENJOY!

First issue looks like php5 is not available in the repos, so maybe check if that exists and add the repo if needed

Second looks to be python-pip not found. I already have both pip2 and pip3 installed, so this should check before it marks it as failed, but if not installed that repo or installation script should also be installed.

Next it looks like the requested versions of gcc and g++ are not found.

The rest of the errors seem to be related to php5 not installed. I will look into installing these manually

LavaTiger99 commented 3 years ago

For PHP, Something along the lines of: if apt-cache search php5.6 is not true then sudo apt install ca-certificates apt-transport-https wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list

But the script will need to specify php5.6-cli or php5*-cli

As for the gcc/g++, are those older versions required?

LavaTiger99 commented 3 years ago

Nevermind, I was using the 'latest' release which is from 2016, downloading master now