|
Post by reagan1998 on Mar 31, 2016 6:55:20 GMT
Hello FruityWifi appears to be installed on my phone, but when I go to localhost:8000 or localhost:8443 I get an access denied message in small print. Doesn't say 403, which is weird. I have restarted nginx and php, I also restarted my phone like a noob. I have Googled this problem to no avail, even tweeted @fruitywifi. Any ideas? Attached is the screenshot of the message ![]() ![]() 
|
|
|
Post by xtr4nge on Mar 31, 2016 7:57:51 GMT
Hi reagan1998, Never seen this error before with FruityWiFi, but we can try a couple of things to debug.
- Tail nginx logs for clues: /var/log/nginx/error.log - Check that the user fruitywifi exists and is part of inet group - Check that sudo config file for fruitywifi user exists: /etc/sudoers.d/fruitywifi (owner root:root) - Check permissions on FruityWiFi web interface folder: /usr/share/fruitywifi/www (the initial file is index.php) - Check FruityWiFi nginx and php5-fpm config files: /etc/nginx/sites-enabled/FruityWifi /etc/php5/fpm/pool.d/8000.conf /etc/php5/fpm/pool.d/8443.conf
Just for curiosity, What is your device model and version? Are other tools working like mana or wifite? Did you run BusyBox when you installed NetHunter?
regards,
|
|
|
Post by reagan1998 on Mar 31, 2016 16:29:17 GMT
Here is my log
2016/03/30 05:06:51 [error] 20846#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/30 05:07:42 [error] 20848#0: *7 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8443.sock:", host: "localhost:8443"
2016/03/30 05:09:01 [error] 20848#0: *14 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8443.sock:", host: "localhost:8443"
2016/03/30 05:09:14 [error] 20848#0: *21 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/30 05:09:17 [error] 20848#0: *14 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8443.sock:", host: "localhost:8443"
2016/03/30 05:34:17 [error] 15674#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/30 22:47:48 [emerg] 18855#0: still could not bind()
2016/03/30 22:50:50 [error] 18920#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/usr/share/fruitywifi/logs/dhcp.leases): failed to open stream: Permission denied in /usr/share/fruitywifi/www/page_status.php on line 423
PHP message: PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/share/fruitywifi/www/page_status.php on line 427" while reading upstream, client: 127.0.0.1, server: , request: "GET /page_status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000", referrer: "http://localhost:8000/index.php?error=1"
2016/03/30 22:50:51 [crit] 18920#0: *6 stat() "/usr/share/fruitywifi/www/modules/fruityproxy/includes/ws_action.php" failed (13: Permission denied), client: 127.0.0.1, server: , request: "GET /modules/fruityproxy/includes/ws_action.php?method=getModulesStatusAll HTTP/1.1", host: "localhost:8000", referrer: "http://localhost:8000/page_status.php"
2016/03/30 22:50:51 [crit] 18920#0: *7 stat() "/usr/share/fruitywifi/www/modules/mitmf/includes/ws_action.php" failed (13: Permission denied), client: 127.0.0.1, server: , request: "GET /modules/mitmf/includes/ws_action.php?method=getPlugins HTTP/1.1", host: "localhost:8000", referrer: "http://localhost:8000/page_status.php"
2016/03/31 03:28:41 [error] 18920#0: *17 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/usr/share/fruitywifi/logs/dhcp.leases): failed to open stream: Permission denied in /usr/share/fruitywifi/www/page_status.php on line 423
PHP message: PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/share/fruitywifi/www/page_status.php on line 427" while reading upstream, client: 127.0.0.1, server: , request: "GET /page_status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000", referrer: "http://localhost:8000/"
2016/03/31 03:28:41 [crit] 18920#0: *17 stat() "/usr/share/fruitywifi/www/modules/fruityproxy/includes/ws_action.php" failed (13: Permission denied), client: 127.0.0.1, server: , request: "GET /modules/fruityproxy/includes/ws_action.php?method=getModulesStatusAll HTTP/1.1", host: "localhost:8000", referrer: "http://localhost:8000/page_status.php"
2016/03/31 03:28:41 [crit] 18920#0: *17 stat() "/usr/share/fruitywifi/www/modules/mitmf/includes/ws_action.php" failed (13: Permission denied), client: 127.0.0.1, server: , request: "GET /modules/mitmf/includes/ws_action.php?method=getPlugins HTTP/1.1", host: "localhost:8000", referrer: "http://localhost:8000/page_status.php"
2016/03/31 04:06:03 [emerg] 2065#0: a duplicate default server for 0.0.0.0:8000 in /etc/nginx/sites-enabled/FruityWifi.1:3
2016/03/31 04:06:10 [emerg] 2098#0: a duplicate default server for 0.0.0.0:8000 in /etc/nginx/sites-enabled/FruityWifi.1:3
2016/03/31 04:06:24 [emerg] 2213#0: a duplicate default server for 0.0.0.0:8000 in /etc/nginx/sites-enabled/FruityWifi.1:3
2016/03/31 04:06:26 [emerg] 2251#0: a duplicate default server for 0.0.0.0:8000 in /etc/nginx/sites-enabled/FruityWifi.1:3
2016/03/31 04:06:58 [emerg] 2322#0: a duplicate default server for 0.0.0.0:8000 in /etc/nginx/sites-enabled/FruityWifi.1:3
2016/03/31 04:19:12 [error] 3820#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 04:22:58 [error] 3820#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 04:23:35 [error] 3820#0: *9 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8443.sock:", host: "localhost:8443"
2016/03/31 04:32:08 [error] 3820#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 04:35:42 [error] 3820#0: *13 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 04:38:59 [error] 4889#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 05:39:40 [error] 13032#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 05:42:33 [error] 13032#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "127.0.0.1:8000"
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8000 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: bind() to 0.0.0.0:8443 failed (98: Address already in use)
2016/03/31 05:43:03 [emerg] 13248#0: still could not bind()
2016/03/31 05:44:48 [error] 13032#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 05:45:19 [error] 13398#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 06:50:19 [error] 20498#0: *1 connect() to unix:/var/run/php5-fpm-8000.sock failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
2016/03/31 06:50:33 [error] 20498#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/fruitywifi/www/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-8000.sock:", host: "localhost:8000"
I don't know how to check to see if fruitywifi is part of inet
Fruitywifi is in sudo config
The structure and mechanism for the login page is there in the index.php file, but doesn't mention anything about asking permission (I don't know php, but I do have a brain.)
<? /* Copyright (C) 2013-2015 xtr4nge [_AT_] gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <? include "header.php"; ?> <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes"> <title>FruityWifi</title> <link rel="stylesheet" href="css/bootstrap.css" /> <link rel="stylesheet" href="css/bootstrap-menu.css" /> <link rel="stylesheet" href="css/bootstrap-switch.css" /> <script src="js/bootstrap.js"></script> <script src="js/bootstrap-switch.js"></script> <script src="js/highlight.js"></script> <script src="js/main.js"></script>
<link href="style.css" rel="stylesheet" type="text/css"/> <link rel="icon" type="image/x-icon" href="img/favicon.ico"/>
</head> <body>
<div id="custom-bootstrap-menu" class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="http://www.fruitywifi.com" target="blank">FruityWiFi</a> </div> </div> </div>
<br/> <br/> <br/> <br/>
<div align="center">
<div class="rounded-top" align="center"> Login </div> <div class="rounded-bottom" align="center">
<form action="login.php" method="post" autocomplete="off"> <br/> <table class="general"> <tr> <td> user: </td> <td> <input name="user" class="form-control input-sm" <? if (isset($_GET["error"]) and $_GET["error"] == 1) echo "value='Who are you?...'"?>/> </td> <tr> <td> pass: </td> <td> <input name="pass" class="form-control input-sm" type="password" /> </td> </tr> <td> </td> <td align="left"> <input type="submit" value="login" class="btn btn-default btn-sm"/><br/> </td> </tr> </table> </form>
</div>
</div>
</body> </html>
/etc/nginx/sites-enabled/FruityWifi:
server { listen 8000 default_server;
root /usr/share/fruitywifi/www; index index.php index.html index.htm;
#server_name localhost;
location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm-8000.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
location / { try_files $uri $uri/ =404; } }
server {
listen 8443 ssl;
root /usr/share/fruitywifi/www; index index.php index.html index.htm;
#server_name localhost; ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/nginx.key;
location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm-8443.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
#access_log /var/log/nginx/access.log combined; #error_log /var/log/nginx/error.log warn;
location / { try_files $uri $uri/ =404; } }
/etc/php5/fpm/pool.d/8000.conf:
[www-8000]
user = fruitywifi group = fruitywifi
listen = /var/run/php5-fpm-8000.sock
listen.owner = fruitywifi listen.group = fruitywifi
pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3
chdir = /
php_value[short_open_tag] = On php_value[error_reporting] = E_ALL ^ E_NOTICE php_admin_flag[opcache.enable] = off
/etc/php5/fpm/pool.d/8443.conf:
[www-8443]
user = fruitywifi group = fruitywifi
listen = /var/run/php5-fpm-8443.sock
listen.owner = fruitywifi listen.group = fruitywifi
pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3
chdir = /
php_value[short_open_tag] = On php_value[error_reporting] = E_ALL ^ E_NOTICE php_admin_flag[opcache.enable] = off
There is a 8000.conf.1, 8000.conf.2 and 8443.conf.1 and 8443.conf.2 in /etc/php5/fpm/pool.d/.
I have a Google Nexus 6 on Verizon, running Kali Nethunter by OFFSEC on top of Cataclysm Marshmallow. Yes busybox, wifite, and mana are working. (the only thing that is not working in wifite is that it doesn't turn on monitor mode on my card automatically, i have to run airmon-ng start wlan1 and it will work, I have cracked a WEP network with it.).
|
|
|
Post by xtr4nge on Mar 31, 2016 16:55:27 GMT
Hi reagan1998, I don't know why you have: 8000.conf.1, 8000.conf.2 and 8443.conf.1 and 8443.conf.2 in /etc/php5/fpm/pool.d/ (I suggest to remove those)
You should have 8000.conf and 8443.conf only (and 80.conf and 443.conf if you installed nginx module with FrutiyWiFi), but be sure that you don't have multiple config files with the same port inside.
Check the permissions in the folder that I mentioned: /usr/share/fruitywifi/www All the files, folders and subfolders inside that folder should be accessible by fruitywifi user (because is the user that runs nginx and php5-fpm)
to check the groups: groups fruitywifi
regards,
|
|
|
Post by reagan1998 on Mar 31, 2016 18:15:36 GMT
Fruity wifi is part of inet. Since the GUI side of Nethunter is a pain to use, can you tell me how I can find who owns the files in /usr/share/fruitywifi/www? Maybe an SSH client can do this?
|
|
|
Post by xtr4nge on Mar 31, 2016 18:41:18 GMT
sure, you have a few options.
one option: - go to the apps list and search for NetHunter Terminal (should be already installed) - Select Shell: Kali - done, go to the path and check the permissions
another option: - connect the device into a network where you can use a SSH client - go to NetHunter_Menu/Kali_Services/Start_SSH - done, you can connect now using SSH into your device - go to the path and check the permissions
regards,
|
|
|
Post by reagan1998 on Mar 31, 2016 19:00:41 GMT
Here it is, but fruity is mentioned no where:
total 208
drwxrwx--x. 9 root 1015 4096 Mar 31 04:17 .
drwxrwx--x. 6 root 1015 4096 Mar 31 04:17 ..
-rw-rw----. 1 root 1015 677 Mar 30 05:00 action.php
drwxrwx--x. 2 root 1015 4096 Mar 31 04:17 config
drwxrwx--x. 2 root 1015 4096 Mar 30 05:00 css
-rw-rw----. 1 root 1015 7018 Mar 30 05:00 functions.php
-rw-rw----. 1 root 1015 320 Mar 30 05:00 header.php
drwxrwx--x. 2 root 1015 4096 Mar 30 05:00 img
-rw-rw----. 1 root 1015 2842 Mar 30 05:00 index.php
drwxrwx--x. 2 root 1015 4096 Mar 30 05:00 js
-rw-rw----. 1 root 1015 1307 Mar 30 05:00 login.php
-rw-rw----. 1 root 1015 821 Mar 30 05:00 login_check.php
-rw-rw----. 1 root 1015 781 Mar 30 05:00 logout.php
lrwxrwxrwx. 1 root root 26 Mar 31 04:17 logs -> /usr/share/fruitywifi/logs
-rw-rw----. 1 root 1015 4056 Mar 30 05:00 menu.php
drwxrwx--x. 45 root 1015 4096 Mar 31 05:05 modules
-rw-rw----. 1 root 1015 951 Mar 30 05:00 msg.php
-rw-rw----. 1 root 1015 21220 Mar 30 05:00 page_config_adv.php
-rw-rw----. 1 root 1015 2115 Mar 30 05:00 page_logs.php
-rw-rw----. 1 root 1015 11524 Mar 30 05:00 page_modules.php
-rw-rw----. 1 root 1015 19117 Mar 30 05:00 page_status.php
-rw-rw----. 1 root 1015 32569 Mar 30 05:00 page_status_ws.php
-rw-rw----. 1 root 1015 23286 Mar 30 05:00 page_status_wsdl.php
drwxrwx--x. 3 root 1015 4096 Mar 30 05:00 scripts
-rw-rw----. 1 root 1015 3927 Mar 30 05:00 style.css
-rw-rw----. 1 root 1015 923 Mar 30 05:00 users.php
-rw-rw----. 1 root 1015 690 Mar 30 05:00 wait.php
-rw-rw----. 1 root 1015 2353 Mar 30 05:00 wait_fruit.php
drwxrwx--x. 3 root 1015 4096 Mar 30 05:00 wsdlinsert code here
|
|
|
Post by xtr4nge on Mar 31, 2016 19:27:54 GMT
You have some problems with the files/folders permissions. options: - you can make files and folders (in /usr/share/fruitywifi/www) allowed by everybody (read for files and read/exec for folders is enough) - or you can try changing the permissions to owner:group >> fruitywifi:fruitywifi- also you can try changing that group 1015 to fruitywifi Did you install FruityWiFi using root? If not, I suggest to re-install (but maybe the problem is the UMASK on your system), if that is the case, you can use fruitywifi user to reinstall, because the sudo command (for this user) is changing the UMASK It will be great if we can understand the initial problem. If this issue affects all Google Nexus 6 (and others), then other people will know how to fix a similar issue  regards,
|
|
|
Post by reagan1998 on Mar 31, 2016 22:33:43 GMT
I did install FruityWiFi as root.
When I run apt-get install fruitywifi and not install through the sh script, fruity will work, except with no modules and it is version 2.2.
Here is what happened when I reinstalled. It is riddled with errors:
root@kali:/sdcard/Download/FruityWifi-master/FruityWifi-master# sh install-FruityWifi.sh
find: `FruityWifi/www/scripts/Requests/Requests/Exception/HTTP': Interrupted system call
Hit http://http.kali.org sana InRelease
Get:1 http://security.kali.org sana/updates InRelease [11.9 kB]
Hit http://http.kali.org sana/main armhf Packages
Get:2 http://security.kali.org sana/updates/main armhf Packages [335 kB]
Hit http://http.kali.org sana/non-free armhf Packages
Ign http://http.kali.org sana/contrib Translation-en
Ign http://http.kali.org sana/main Translation-en
Hit http://security.kali.org sana/updates/contrib armhf Packages
Ign http://http.kali.org sana/non-free Translation-en
Hit http://http.kali.org sana/contrib armhf Packages
Ign http://security.kali.org sana/updates/contrib Translation-en
Hit http://security.kali.org sana/updates/non-free armhf Packages
Ign http://security.kali.org sana/updates/main Translation-en
Ign http://security.kali.org sana/updates/non-free Translation-en
Fetched 347 kB in 4s (83.7 kB/s)
Reading package lists... Done
--------------------------------
Creates user fruitywifi
--------------------------------
[fruitywifi user has been created]
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version.
automake is already the newest version.
build-essential is already the newest version.
dos2unix is already the newest version.
gettext is already the newest version.
intltool is already the newest version.
lsb-release is already the newest version.
make is already the newest version.
python-netifaces is already the newest version.
python-pip is already the newest version.
python-scapy is already the newest version.
tcpdump is already the newest version.
uuid is already the newest version.
uuid-dev is already the newest version.
curl is already the newest version.
php5-cli is already the newest version.
php5-curl is already the newest version.
sudo is already the newest version.
unzip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['__name__'])
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
[[: : unknown operand
--------------------------------
gcc 4.7 already installed
--------------------------------
--------------------------------
dnsmasq already installed
--------------------------------
--------------------------------
hostapd already installed
--------------------------------
--------------------------------
aircrack-ng already installed
--------------------------------
--------------------------------
Installing Nginx
--------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version.
php5-fpm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--------------------------------
Create Nginx ssl certificate
--------------------------------
mkdir: cannot create directory '/etc/nginx/ssl': File exists
Generating a 2048 bit 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
install-FruityWifi.sh: 159: [: all: unexpected operator
[....] Restarting nginx: nginx
. ok
[ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm.
[nginx setup completed]
--------------------------------
BACKUP
--------------------------------
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/fruitywifi': Function not implemented
mv: cannot create regular file 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/karma/includes/hostapd-karma-master/src/eap_common/eap_common.o': Interrupted system call
mv: inter-device move failed: '/usr/share/fruitywifi/www/modules/mana/.git/refs/heads' to 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/mana/.git/refs/heads'; unable to remove target: Interrupted system call
mv: cannot move '/usr/share/fruitywifi/www/modules/mana/includes/hostapd-mana-master/hostapd/logwatch/hostapd.conf' to 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/mana/includes/hostapd-mana-master/hostapd/logwatch/hostapd.conf': Interrupted system call
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/sslstrip/includes/sslstrip': Function not implemented
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/mitmf/includes/MITMf-master/libs/bdfactory': Function not implemented
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/sslstrip2/includes/sslstrip': Function not implemented
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/www/modules/fruityproxy/includes/FruityProxy-master/modules/bdf': Function not implemented
mv: cannot create symbolic link 'fruitywifi.BAK.2016-03-31-22-29-34/www/logs': Function not implemented
--------------------------------
Setup FruityWifi
--------------------------------
--------------------------------
Config log path
--------------------------------
mkdir: cannot create directory '/usr/share/fruitywifi/logs': File exists
[logs setup completed]
--------------------------------
Setup Sudo
--------------------------------
[sudo setup completed]
[[: sana: unknown operand
ln: failed to create symbolic link '/usr/share/FruityWifi/fruitywifi': File exists
--------------------------------
Start Services
--------------------------------
insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).
insserv: warning: current start runlevel(s) (empty) of script `nginx' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `nginx' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `ntp' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ntp' overrides LSB defaults (empty).
[ ok ] Restarting nginx: nginx.
[ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ifplugd' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
GitHub: https://github.com/xtr4nge/FruityWifi
Twitter: @xtr4nge, @FruityWifi
ENJOY!
|
|
|
Post by reagan1998 on Mar 31, 2016 22:48:09 GMT
FruityWifi is acting very fruity, but this program looks so good and won't stop until this is fixed. 
|
|
|
Post by xtr4nge on Apr 1, 2016 7:34:36 GMT
Hi
They already reported issues installing using sh instead of ./
Try the following, instead of installing like:
root@kali:/sdcard/Download/FruityWifi-master/FruityWifi-master# sh install-FruityWifi.sh
do this:
root@kali:/sdcard/Download/FruityWifi-master/FruityWifi-master# ./install-FruityWifi.sh
If that doesn't work, try what I mentioned before:
options: - you can make files and folders (in /usr/share/fruitywifi/www) allowed by everybody (read for files and read/exec for folders is enough) - or you can try changing the permissions to owner:group >> fruitywifi:fruitywifi - also you can try changing that group 1015 to fruitywifi
regards,
|
|
|
Post by reagan1998 on Apr 4, 2016 1:16:37 GMT
I still get permission denied
|
|
|
Post by xtr4nge on Apr 4, 2016 6:04:44 GMT
|
|
|
Post by reagan1998 on Apr 5, 2016 13:20:08 GMT
I did, still get access denied
|
|
|
Post by reagan1998 on Apr 5, 2016 13:20:34 GMT
And permission denied
|
|