Zylla Posted August 10, 2017 Posted August 10, 2017 3 hours ago, Exmix said: So this will be a very silly question, when you guys do get this working, how do I go about updating it so mine will work as well? Just re-do the steps listed on the GIthub site or is there a different way to update it? I reckon the github will be updated when something changes. I forked it to my repository, so any changes i eventually do to the code can be found there. :)
Ei8htbits Posted August 11, 2017 Author Posted August 11, 2017 Let me know what the current issue is and i'll try to update it soon as I can. Work has me slaving away and don't think its going to get any slower any time. If you like to jump in and give me a hand, I'll post the source for the module. Its not anything complex. Its just a simple HTML. Most of the work comes from the Shellinabox which I believe Zylla is taking a look at.
Zylla Posted August 11, 2017 Posted August 11, 2017 I've been packed with work, but i've gotten it somewhat working. Just tweaking stuff now. (The module it self). Will push a commit to github when it's working on either the tetra or nano. :)
Ei8htbits Posted August 11, 2017 Author Posted August 11, 2017 Zylla for the win! Thanks for the hard work chief. Its much appreciated :) Looking forward to the outcome. I'm currently working on new layout for the Nano interface while on lunch. Basically, only time I get to work on any my personal projects.
Zylla Posted August 12, 2017 Posted August 12, 2017 18 hours ago, Ei8htbits said: Zylla for the win! Thanks for the hard work chief. Its much appreciated :) Looking forward to the outcome. I'm currently working on new layout for the Nano interface while on lunch. Basically, only time I get to work on any my personal projects. I feel ya man. I barely got time for anything between work and family, but somehow i manage to get something done ;) I've pushed a commit to my GitHub fork: https://github.com/adde88/SSHWebClient Currently tested and working on TETRA. Some issues are present, for example getting it to report the "correct" IP.br-lan is not always the correct one to be used in iframe. But i got an idea how to fix it. Just need a bit more time :) Haven't tested dependencies script within the Module, or my private install-script. But it should work. Please give some feedback if possible! :) Screenshot from PC: Screenshot from iPhone: (The iframe scales quite nicely)
Zylla Posted August 12, 2017 Posted August 12, 2017 @Sebkinne Would it be possible for you to compile and add shellinabox to the Hak5 opkg-repos?
Sebkinne Posted August 12, 2017 Posted August 12, 2017 8 minutes ago, Zylla said: @Sebkinne Would it be possible for you to compile and add shellinabox to the Hak5 opkg-repos? Yup. Got a makefile?
Zylla Posted August 12, 2017 Posted August 12, 2017 I've updated shellinabox from version 2.10 to version 2.20. Both the old IPK and the new can be fond on my git repo: https://github.com/adde88/SSHWebClient
Zylla Posted August 12, 2017 Posted August 12, 2017 Just now, Sebkinne said: Yup. Got a makefile? Sure! https://pastebin.com/pf4DXLt7 (Makefile, posted to Pastebin)
Zylla Posted August 12, 2017 Posted August 12, 2017 I forgot, there's also a patch-file and a init file to be used. I've compressed an archive containing the Makefiles and patches, etc. Here you go: shellinabox.tar.gz
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 root@Pineapple:~# ./install.sh Installing: SSHWebClient. Downloading https://www.wifipineapple.com/nano/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_base. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_packages. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_management. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_routing. --2017-08-13 17:27:58-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk Resolving github.com... 192.30.253.113, 192.30.253.112 Connecting to github.com|192.30.253.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following] --2017-08-13 17:27:59-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 93322 (91K) [application/octet-stream] Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1' shellinabox_2.10-1_ar71xx.ipk.1 100%[==========================================================>] 91.13K 272KB/s in 0.3s 2017-08-13 17:28:00 (272 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322] Package git (2.3.5-1) installed in sd is up to date. Package git-http (2.3.5-1) installed in sd is up to date. fatal: destination path 'SSHWebClient' already exists and is not an empty directory. rm: can't remove '.' or '..' rm: can't remove '.' or '..' rm: '.jail' is a directory rm: '.uci' is a directory
Zylla Posted August 13, 2017 Posted August 13, 2017 12 minutes ago, Ei8htbits said: root@Pineapple:~# ./install.sh Installing: SSHWebClient. Downloading https://www.wifipineapple.com/nano/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_base. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_packages. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_management. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_routing. --2017-08-13 17:27:58-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk Resolving github.com... 192.30.253.113, 192.30.253.112 Connecting to github.com|192.30.253.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following] --2017-08-13 17:27:59-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 93322 (91K) [application/octet-stream] Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1' shellinabox_2.10-1_ar71xx.ipk.1 100%[==========================================================>] 91.13K 272KB/s in 0.3s 2017-08-13 17:28:00 (272 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322] Package git (2.3.5-1) installed in sd is up to date. Package git-http (2.3.5-1) installed in sd is up to date. fatal: destination path 'SSHWebClient' already exists and is not an empty directory. rm: can't remove '.' or '..' rm: can't remove '.' or '..' rm: '.jail' is a directory rm: '.uci' is a directory You're getting an error message because the /pineapple/modules/SSHWebClient directory already exists. I don't want to add a function removing the previous one. In case it removes something the user actually wants to keep. So try removing or moving that folder to another location, and re-launch the script. I have updated and tested the script on my tetra, and it's working :)
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 nope... I restored my device to factory settings, updated to current bin, and formatted my SD card. Restarted the device and proceeded with the installation. But Let me do this again to double check.
Zylla Posted August 13, 2017 Posted August 13, 2017 2 minutes ago, Ei8htbits said: nope... I restored my device to factory settings, updated to current bin, and formatted my SD card. Restarted the device and proceeded with the installation. But Let me do this again to double check. Also noticed the dependencies.sh script had wrong chmod. So it won't install dependencies. I'll update it right away EDIT: It's now updated.
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 just restored my device to factory bin and updated to current bin. I also formatted my sd card. Let me know when you have updated the scripts and I'll test it again.
Zylla Posted August 13, 2017 Posted August 13, 2017 Btw, you'll have to edit the html and specify the ip address within the iframe-src manually, until i get the function that's supposed to get the correct one updated :) The one specified there now is: 192.168.1.6 Change it to the one you're using on your nano/tetra.
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 I see it installs the module into tmp and creates a shortcut to it in the /pineapple/modules directory. It doesn't list the module onto nano interface. OR am I doing something wrong?
Zylla Posted August 13, 2017 Posted August 13, 2017 I'm testing a bit on the Tetra and the Nano right now. i've also added a function that reports the br-lan IP to the code. But it's not always the correct IP. (In most situations it is correct, but it's not perfect) The strange thing i'm experiencing at the moment is that it works flawlessly on my Tetra. Both the buttons and the iframe displays everything correctly. Same code on the Nano has some issues. The buttons are working, but the iframe doesn't show anything. (Even though it is there when opened manually) I have no idea why. As the shellinabox service is running, and it's working on the buttons. But i'll debug it some more and see what i can find. Just letting you guys know what's up :)
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 I'm looking at your script and I see you are using shellinabox 2.10 instead of the 2.20 that you update.
Zylla Posted August 13, 2017 Posted August 13, 2017 Just now, Ei8htbits said: I'm looking at your script and I see you are using shellinabox 2.10 instead of the 2.20 that you update. It's simply because i haven't tested 2.20 yet. I just posted it to github the moment it was done compiling :) I'll give it some testing soon.
Zylla Posted August 13, 2017 Posted August 13, 2017 7 minutes ago, Ei8htbits said: I see it installs the module into tmp and creates a shortcut to it in the /pineapple/modules directory. It doesn't list the module onto nano interface. OR am I doing something wrong? The module gets installed to /sd/modules/SSHWebClient then a sym-link gets made towards /pineapple/modules/SSHWebClient The tmp folder only stores the IPK file temporarily, and it gets deleted afterwards.
Ei8htbits Posted August 13, 2017 Author Posted August 13, 2017 I was getting this issue during install. ./install.sh: line 25: cd: /sd/modules: No such file or directory I noticed that the sd card when formatted it doesn't have a modules folder. I made a little change to the script. I added mv /sd /sd/modules into your script and installs with no issues. Dependencies also install just fine, but I can't get the terminal to work. Installing: SSHWebClient. Downloading https://www.wifipineapple.com/nano/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_base. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_packages. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_management. Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz. Updated list of available packages in /var/opkg-lists/chaos_calmer_routing. --2017-08-13 19:38:07-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk Resolving github.com... 192.30.253.112, 192.30.253.113 Connecting to github.com|192.30.253.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following] --2017-08-13 19:38:08-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 93322 (91K) [application/octet-stream] Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1' shellinabox_2.10-1_ar71xx.ipk.1 100%[==========================================================>] 91.13K 245KB/s in 0.4s 2017-08-13 19:38:09 (245 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322] Package git (2.3.5-1) installed in sd is up to date. Package git-http (2.3.5-1) installed in sd is up to date. mv: recursion detected, omitting directory '/sd/modules' Cloning into 'SSHWebClient'... warning: templates not found /usr/share/git-core/templates remote: Counting objects: 50, done. remote: Compressing objects: 100% (34/34), done. remote: Total 50 (delta 14), reused 46 (delta 10), pack-reused 0 Receiving objects: 100% (50/50), 250.14 KiB | 263.00 KiB/s, done. Resolving deltas: 100% (14/14), done. Checking connectivity... done. SSHWebClient Installation completed!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.