Ei8htbits Posted July 4, 2017 Share Posted July 4, 2017 What is up! I'm new to the community and glad to find tons of answers to most of my questions regarding my new nano. I sorta dabble in web development but not an expert with my nano. I was just curious to porting a Web based SSH Terminal Client into a module. Has anyone worked on this idea, yet? I've searched and haven't found a particular tread on this subject. Most of my experience has been reverse engineering. I currently use different clients to SSH into my device but would like to see or help develop some type of internal module that allows to ssh into itself without using a client on Linux, Windows, or iOS. Run your everyday command plus what the nano or tetra provide. I'm just reaching out to get an opinion regarding this idea. Is it good one, is it possible, or will it be to big of a project? Let me know what you think? Cheers :P Link to comment Share on other sites More sharing options...
kleo Posted July 4, 2017 Share Posted July 4, 2017 Hey man, here to help you out, I've tried using openwrt-shellinabox and works well on web browsers, though it doesn't scale well on mobile. Source: https://github.com/OnionIoT/OpenWRT-Packages/tree/master/shellinabox Compiled package: https://mega.nz/#!CokDRIqB!RFihHl9iCgkvrbSYwebjwYwchHreP_OFfUnfWDo72hc Compiled by Zylla. Thread Installation: opkg install shellinabox_2.10-1_ar71xx.ipk Connecting to the shellinabox window 172.16.42.1:4200 Though I much prefer the command line similar to pfsense's Link to comment Share on other sites More sharing options...
Ei8htbits Posted July 4, 2017 Author Share Posted July 4, 2017 Hey chief, thanks for looking out. That didn't take long at all. I've been following you posts and appreciate the Evil Portal site ports you provided wild back. This will work with the idea I have and personally I feel the same regarding ssh. Just gives me something to do and practice. Again, Thanks for looking out ace! Cheers :P Link to comment Share on other sites More sharing options...
Ei8htbits Posted July 23, 2017 Author Share Posted July 23, 2017 I've managed to use what you gave me... Which helped me a lot. Now I'm trying to package everything for a automated installation including busybox shellinbox along with my module design. Thanks again chief. Cheers! Link to comment Share on other sites More sharing options...
UnLo Posted July 27, 2017 Share Posted July 27, 2017 i like where this is going! Link to comment Share on other sites More sharing options...
Ei8htbits Posted July 31, 2017 Author Share Posted July 31, 2017 So here's what I've got so far. Now I just need to create a installer and test it. Link to comment Share on other sites More sharing options...
b0N3z Posted July 31, 2017 Share Posted July 31, 2017 I've been using this on the tetra plugged into my lan and when I go to my IP 192.168.0.150:4200, I only get one line that I can see and the rest of the screen is white. Even doing a simple 'ls' command, I can't see the directory or what's in it. I'll get some pictures later to help with a visual. Now when I first did this on my nano it worked great and the other day I went to it and same thing as my tetra. My nano was plugged into the PC itself. I've been using a mbp and chrome browser, I don't know if that will matter. Link to comment Share on other sites More sharing options...
UnLo Posted July 31, 2017 Share Posted July 31, 2017 Awesome! Link to comment Share on other sites More sharing options...
Ei8htbits Posted July 31, 2017 Author Share Posted July 31, 2017 8 minutes ago, b0N3z said: I've been using this on the tetra plugged into my lan and when I go to my IP 192.168.0.150:4200, I only get one line that I can see and the rest of the screen is white. Even doing a simple 'ls' command, I can't see the directory or what's in it. I'll get some pictures later to help with a visual. Now when I first did this on my nano it worked great and the other day I went to it and same thing as my tetra. My nano was plugged into the PC itself. I've been using a mbp and chrome browser, I don't know if that will matter. I had the same issue. But all I do is refresh my browser and it gives me the full parameters I've set. Link to comment Share on other sites More sharing options...
Ei8htbits Posted July 31, 2017 Author Share Posted July 31, 2017 Also it all depends how you have it setup. I'm just using plain html with a div and iframe. How do you have yours setup? Link to comment Share on other sites More sharing options...
b0N3z Posted July 31, 2017 Share Posted July 31, 2017 to be honest i really havent dug to deep into it yet to figure that out. Link to comment Share on other sites More sharing options...
Forkish Posted August 1, 2017 Share Posted August 1, 2017 This looks awesome. Keep up the good work. I can't wait until this is in the official modules list. Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 6, 2017 Author Share Posted August 6, 2017 Okay I Think i'm completely done. I have created a install.sh file install the module for the time being. I just need to test it before posting it. I got this done with little to zero help... so bare with my scripting. I should keep you cats posted... Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 6, 2017 Author Share Posted August 6, 2017 Testing done. This is the final look for the module and setup multiple terminals pop-up for different jobs (For my terminal junkies). This is my first ever project for the nano. Hope you cats dig it. I like to thank kbeflo for pointing me in the right direction. Also, I have to shoutout to Zylla for compiling the package. All I did was develope the php files and install script for the module. Here's where you can get the module for now for those that can't wait. https://github.com/Ei8htbits/SSHWebClient I still need to submit it for review and approval. Link to comment Share on other sites More sharing options...
b0N3z Posted August 6, 2017 Share Posted August 6, 2017 Are you going to submit this to hak5 as a downloadable module on the pineapple? Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 6, 2017 Author Share Posted August 6, 2017 soon... just having minor issues with my php. I keep getting a single line when I run the install. I'm trying to figure this out to fix the installation. or maybe its just happening to me. Link to comment Share on other sites More sharing options...
b0N3z Posted August 6, 2017 Share Posted August 6, 2017 I noticed upon downloading via wget, the install.sh is not executable untill you # chmod +x install.sh . After that it worked fine on both Nano and Tetra. So on the Nano using 172.16.42.1 it works but im having an issue with the Tetra. My Tetra is plugged into my router so I access it through 192.168.0.150 and not the 172.16.42.1. The terminals will not show up. Im assuming this is the same issue I encounter with EP on my Tetra. EDIT: I changed the IP address for the module on my Tetra and it works great. Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 7, 2017 Author Share Posted August 7, 2017 Yeah I'm working on the module now to allow ip modification. Just thinking on a way how to implicate it. Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 7, 2017 Author Share Posted August 7, 2017 well I found a simple solution.... I'm going to re-upload this in a few. Once I do, can someone test this out on their device? It works just fine on my nano but need a second or third confirmation. I'll post the link once its up, Cheers :P Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 7, 2017 Author Share Posted August 7, 2017 Late night drinking caused me to accidentally delete my repo in github. Ooops! Well, I spent most of the day re-coding everything and I think I may have fixed the ip issue. Let me know you have any issues... Cheers :P and good night... I think. Here's the new link and files: https://github.com/Ei8htbits/SSHWebClient Link to comment Share on other sites More sharing options...
Lord_KamOS Posted August 7, 2017 Share Posted August 7, 2017 The previous version worked :P Maybe instead of using localhost:4200 you could use php to get the br-lan ip. something like this echo `ifconfig br-lan 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'` Link to comment Share on other sites More sharing options...
Ei8htbits Posted August 7, 2017 Author Share Posted August 7, 2017 Really?.... Damn it! It works perfectly for me. Let me test it again. I'm still trying to understand php. Give me a few days and I should have something ready. Man, I really thought I had this one. Shit :P Link to comment Share on other sites More sharing options...
Forkish Posted August 9, 2017 Share Posted August 9, 2017 I find that a few sips of the jameson helps my mind sift through the rubble Link to comment Share on other sites More sharing options...
Zylla Posted August 9, 2017 Share Posted August 9, 2017 Hi guys. I just got the message about this module, and some errors being experienced related to SD-card installation. Just wanted you to know that i'll look into it asap. I haven't tested this module yet, so this will be fun. :) Looks cool! Link to comment Share on other sites More sharing options...
Exmix Posted August 10, 2017 Share Posted August 10, 2017 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.