|
Post by xtr4nge on Mar 27, 2016 17:46:08 GMT
Hi k3n1313,
Just for info, I'm using OnePlus One, CM12.1 with NetHunter 3.0.5, so the script should work fine on your device.
The port that you need to hit is 8000 (http) or 8443 (https) (check that ports 8000 and 8443 are open)
restart nginx and php5-fpm
/etc/init.d/nginx restart /etc/init.d/php5-fpm restart
Go to http://localhost:8000 (for http) Go to https://localhost:8443 (for https)
user: admin pass: admin
I noticed a couple of errors on your log that I never saw before as part of the installation:
[[: : unknown operand
If the mentioned before does not work, reinstall but run the script like this (as root):
root@kali:{folder}# ./install-FruityWifi.sh
I edited your post because the full log is very noisy =p
regards,
|
|
|
Post by xtr4nge on Mar 28, 2016 12:25:23 GMT
Hi bene, I moved the posts related with bdfproxy, autostart and mitmf to the Modules section. So we can keep this one for the core install only  Regards
|
|
|
Post by ghostman on Mar 28, 2016 21:36:00 GMT
Hello , I already have installed the fruitywifi , I have pitchers in nethunter in servicias I have :
3g|4g ap fruityproxy karma mana nginx nmcli supplicant vfeed ---------------------- fruityproxy (mtimproxy) ----------------------
Modules ---------------- autossh autostart bdfproxy captive dnsspoof ettercap kismet mdk3 meterpreter nessus ngrep nmap phishing recon responder rpitwit squid3 sslstrip tcpdump urlsnartf whatsapp
as I start to test and see the results , eh seen videos but not one special where they really use the app and you explain well , as I say again using fruitywifi , thanks.
note : I see that some have in wireless servicos and I do not have , except that before in interfaces / ip my ip I appeared on wlan0 and right now no longer do not know if it is due to a bad installation .
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 6, 2016 13:08:40 GMT
Hi, followed your instructions and installed FruityWifi, the problem comes in when installing modules, I've tried both Debian repo and git, when I select install all it says is downloading module then it goes back to the module screen, on the status page it shows I haven't installed any either, also used install-module.py and apt-get install FruityWifi which shows all modules installed but shows none on the status page
|
|
|
Post by xtr4nge on Apr 6, 2016 13:29:48 GMT
Hi bkr32, Don't use apt-get on NetHunter for the moment, the latest version of the core and modules are not in the repo yet.
check on this path to verify if any module was downloaded or not (you should see a subfolder with the name of the module) /usr/share/fruitywifi/www/modules
check the permissions on the folder and subfolders, it should be readable by fruitywifi user (user|group, or should be readable by everybody)
What is your device and version?
regards,
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 6, 2016 14:07:19 GMT
Hi. I'm using OnePlus one stock cm12.1 with nethunter 3.0.5 and its latest update, the modules folder has some php files but no modules, its permissions are drwxr-xr-x Thanks
|
|
|
Post by xtr4nge on Apr 6, 2016 16:25:06 GMT
Hi bkr32, Cool, then it should work fine following all the steps on the initial post Check if the user fruitywifi is part of the group inet, if not, add the user into the group: usermod -a -G inet fruitywifi also check that the sudo file (for fruitywifi user) looks like this (with user:group > root:root): raw.githubusercontent.com/xtr4nge/FruityWifi/master/sudo-setup/fruitywifi/etc/sudoers.d/fruitywifi let me know regards,
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 6, 2016 21:02:52 GMT
Right re-added it into group checked the sudoers.d and everything is as you describe it but still can't install modules oddly
|
|
|
Post by xtr4nge on Apr 7, 2016 11:18:14 GMT
Hi bkr32, Is the button "reveal ip" showing your public IP on the status page?
Try the following to verify if FruityWiFi and the modules are working ok after install the modules manually:
wget https://github.com/xtr4nge/module_api/archive/master.zip unzip master.zip mv module_api-master /usr/share/fruitywifi/www/modules/api rm master.zip
wget https://github.com/xtr4nge/module_ap/archive/master.zip unzip master.zip mv module_ap-master /usr/share/fruitywifi/www/modules/ap rm master.zip
Then you should see in the status page the module AP You should see AP and API modules installed on the modules page.
If you don't see AP module in the status page, then check the permissions on the folder: /usr/share/fruitywifi/www/modules and /usr/share/fruitywifi/www/modules/ap
Both should be readable by everybody (or at least fruitywifi user if you prefer to reduce permissions)
regards,
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 7, 2016 12:28:40 GMT
Thanks for the support I went ahead and installed all modules using the .py script and they are all present under www/modules/ but still wouldn't show up in the web app, I changed all the permissions for all the folders to 777 and now instead of saying no module installed, it simply shows nothing under modules, reveal IP does show my public IP and going under modules shows me a long list of check boxes, view and remove, however it isn't showing the names and if I try to view it throws back access denied
******edit******
I went back and set the permission 777 recursively to affect all files and now all modules show up except fruityproxy and MITMf plugins, I suppose they are extras I'll update you if I encounter any other issue Thanks !
****edit2**** Api 1.1 Nmap Nmcli vfeed
Cannot be enabled, trying to click the checkbox and they return to unchecked
***edit3**** Modules cannot be started, they go to loading fruit and return still disabled, tor seems to be enabled oddly
|
|
|
Post by xtr4nge on Apr 7, 2016 13:31:20 GMT
Hi bkr32, Then there is a problem with the UMASK (we need to do a workaround here). Please recheck the sudo file for friutywifi user to be sure that you have this 2 lines at the end: Defaults:fruitywifi umask_override Defaults:fruitywifi umask=0022 That should override the UMASK when fruitywifi user execs a command. REF file: raw.githubusercontent.com/xtr4nge/FruityWifi/master/sudo-setup/fruitywifiInstead of having all permissions with 777 try this commands: find /usr/share/fruitywifi -type d -exec chmod 755 {} \; find /usr/share/fruitywifi -type f -exec chmod 644 {} \; That should be enough  A few comments about the modules that you mentioned: - API is not suppose to appear in the status page, is required by many modules but you don't need to do anything with it directly. - FruityProxy and MITMf plugins only appears on the status page when the modules (FruityWiFi and/or MITMf) are enable. - nmcli is not suppose to appear in the status page, is used by other modules - NMAP and vFeed can be accessed only from the modules page, there is not a start|stop action for these modules Be sure for all the modules that the dependencies are installed. You can verify that accessing each module. If a red text " install" is displayed on the screen, then click on it to install the dependencies or run the install.sh script manually. You can find the install.sh script inside each module folder, example: /usr/share/fruitywifi/www/modules/fruityproxy/includes/regards,
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 7, 2016 15:08:21 GMT
Right ran the permission commands and the unmask is just as you've shown in the gist, ran an example of 3g_4g module and it said nmcli isn't installed, ran its install.sh and it returned done and nothing more, it still didn't start up after that however
*edit
Ran nmap through the modules page and attempted to do a local scan,it briefly showed a black bar at the bottom, that lasted hardly a second and it showed no results, is this normal?
|
|
|
Post by xtr4nge on Apr 7, 2016 15:26:49 GMT
Hi bkr32, 3g_4g is not a module that will start without doing some extra setup. It is a module to start Mobile Broadband using a USB mobile dongle to get internet connectivity. (you need the mobile dongle and the setup file for Network-Manager) Many modules will depend on other modules, and the majority of the modules depends on AP module (being enable first). Start simple to get use of FruityWiFi - Go to MENU/Config, setup the IN and OUT interfaces, setup the Access Point (SSID, open|secure) - Go to status page and start [AP] (that will be first step to use the majority of the modules) If the questions are not related on how to install FruityWiFi on NetHunter, please open a new Thread on the Modules sections (for each module that you have a question) so we can keep this thread on topic. regards 
|
|
bkr32
New Member
Posts: 7
|
Post by bkr32 on Apr 7, 2016 15:41:47 GMT
Well ap doesn't start up either and that's the problem, sorry for bringing up so many issues I do hope someone else will benefit from the solutions you have provided
|
|
|
Post by xtr4nge on Apr 7, 2016 17:20:14 GMT
Hi bkr32, No problem at all. I'm always happy to help, but it is not easy for me to debug/fix issues without understanding the core problem and/or all the variables related with the problem  If you are new on FruityWiFi, I suggest to start using it first on a computer/laptop, raspberry pi, VM, (etc), before to move to NetHunter. You need to understand how it works, what is the normal behaviour, what are the usual issues, how the modules work, etc. There are problems/issues that I cannot debug without having a full description, and It will be easier for me if you get use of FruityWiFi (on a working environment) before to resolve problems with the installation on NetHunter, as I don't know if the problems are related with Setup, Combination of modules, or just because changes on the OS are needed. FruityWiFi on NetHunter is new, and there is not much information about issues related with installation (for the moment) more than this thread. A lot of people already ping me confirming that it works fine on OnePlus One (I'm also developing/testing on OnePlus One) and Nexus devices, but I guess that success on installation will dependes on different variables and factors that will be polished after more people report problems and solutions. After get NetHunter installed on OnePlus One (CM 12.1), I just followed the steps that I published on the initial post. I also added some extra comments related with potential issues. (inet group and umask issue on android for example) FruityWiFi is simple in structure. It is a web application that needs to run on port 8000 and/or 8443 under user fruitywfi. The user fruitywifi needs to have the correct setup (groups and sudo) to be able of exec commands as root when needed. As I mentioned before, I'm always happy to help, but it will easier for me, if you get use of FruityWiFi on a working environment first. regards,
|
|