09-03-2012, 12:30 PM | #61 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
ah the usbnet provides the sftp
Last edited by twobob; 09-03-2012 at 12:35 PM. |
09-03-2012, 12:35 PM | #62 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
New brain fart about the "telnetd" thingy - - -
Q: Does the alias list include 'init' ? If so, take it out, reboot, see if the result is "old" or "new". Why: Similar reasoning to getting the "old" or "new" busybox shell - - Differences in the 'init' function provided by the two busybox versions. |
Advert | |
|
09-03-2012, 12:37 PM | #63 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
okay I'll have a look and will do : )
EDIT: No it does not My current list. Services at the top. rest in folder / alpha beta order Spoiler:
Note that I did not exhaustively check this list. some stuff is missing from the total offering. it was a 5 second hack to check something. Feel free to point out things I missed. Happy days : ) Last edited by twobob; 09-03-2012 at 02:36 PM. Reason: updated listing to be clearer |
09-03-2012, 12:46 PM | #64 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
A long list.
But certainly takes up less room than that many copies of busybox in place of symbolic links. Hmm... you have 'sendmail' now . . . just in case you need to send an e-mail message about the book your reading, I guess. a new toy for the end-users to play with. Who would have thought that we could replace most of the basic system functions without touching the main file system tree. (other than those couple of shell related config files) Last edited by knc1; 09-03-2012 at 12:49 PM. |
09-03-2012, 12:52 PM | #65 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
yeah. however I am still in same situation...
need to convince subshells - all of them - to honour -l somehow. hmm.. vi :!su -version would fail for example and find the old version ... hmm Quote:
Last edited by twobob; 09-03-2012 at 12:56 PM. |
|
Advert | |
|
09-03-2012, 12:58 PM | #66 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Naw - -
Just find the shell config file that is read by **both** login and non-login shells. Not part of my Busybox Foo, but it is there, somewhere. Hmm... You might have to 'strace -fF ash' a few times. Check what files it is trying to open. |
09-03-2012, 01:06 PM | #67 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
I never would have thought this much possible and to be fair with more thought we can probably not even touch the default config files. some simple scripted injection of those values somewhere 'just before' w/e runtime is needed would probably suffice for the non-system bits and a similar method may be employed perhaps in 'var' at boot or something for the system bits.. unsure about that however. Simply put a large %age of the nice to haves are now seemingly within reach. if we had a million monkeys I suspect we could start to catch up quite rapidly now with the raspbian crew. there are only a couple of gotchas preventing utter kindle domination. A correctly configured injection of the awesome window manager in Buildroot sounds like a fairly awesome idea. Zomg I don't vote I do that. Gah... I shouldn't type out loud. Anyways... back to the underlying injection issue. If ANYONE reading this has any ideas - jump in right now - if you don't want to go public simply PM me. No one person comprehends all of the possibilities that are afforded to us: Some of us don't even get the basics Much obliged. |
|
09-03-2012, 01:07 PM | #68 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Thanks mate *wields hammer* |
|
09-03-2012, 01:59 PM | #69 | |||||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
heh. brilliant. sorted it. TBC
Okay, seemingly the OOTB config does not have a ENV value defined Ash honours this. and a strace confirms that it now reads /home/root/.bashrc Setting ENV in a .bashrc has it's drawbacks as it will be processed twice. So - more sensibly - we should probably just set the ENV value at boot to another filename and populate that with the current current .bashrc noise. Anyways - that is by the by and will be decided in the wash. Here are some tests. [root@kindle root]# echo $ENV (nothing) [root@kindle root]# su [root@kindle root]# grep -v Quote:
[root@kindle root]# echo $ENV /home/root/.bashrc [root@kindle root]# su [root@kindle root]# grep -v Quote:
The ENV value is NOT honored though when calling a single command as is shown here: [root@kindle root]# echo $ENV (nothing) [root@kindle root]# su -c 'grep -v' Quote:
/home/root/.bashrc [root@kindle root]# su -c 'grep -v' Quote:
however explicitly informing it to use -l does work [root@kindle root]# su -c 'su -v' -l su: invalid option -- v Quote:
But ostensibly setting the ENV value should do the trick, wherever it one day ends up being done. Last edited by twobob; 09-03-2012 at 02:23 PM. |
|||||
09-03-2012, 02:29 PM | #70 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
This in mind I'll try another reboot.
May possibly cause a few more calls to point to the 1.20.x versions of things. That is utter speculation, but I'm doing it anyway. : ) EDIT: PLUS If I don't someone else will. May as well brick mine first. Last edited by twobob; 09-03-2012 at 02:40 PM. |
09-03-2012, 02:48 PM | #71 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
100% fine. the telnetd is still there so I'm going to have a quick play with that
|
09-03-2012, 03:07 PM | #72 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[root@kindle root]# find / -name iptables
/usr/lib/iptables /usr/sbin/iptables /etc/sysconfig/iptables [root@kindle root]# iptables -L Quote:
OPTIONAL TO MAKE IT PERMANENT Spoiler:
[root@kindle root]# iptables -A INPUT -i wlan0 -p tcp --dport 23 -j ACCEPT (just until we reboot, to finish our testing without rebooting...) now on our main machine: me@dev ~ $ telnet k Quote:
[root@kindle root]# grep -v Quote:
Last edited by twobob; 09-03-2012 at 03:21 PM. Reason: finished test. |
|||
09-03-2012, 03:32 PM | #73 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
well. that's ssh out the window.
Telnet is pretty convenient. No doubt there are a few gotchas, like maybe Niluje fixed up some terminfo and environment variables - I'll have a dig around but seems 100% and now I can always ^] to shove extra stuff to the term and ^z to suspend the session which is nice of course. Dunno. seems bloody handy mate. |
09-03-2012, 04:04 PM | #74 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
inetd
Without the hardware restriction (-i wlan0 -- input from wlan0) you could telnet from any connected source (usbnet, 3G, etc).
Hmm... Sorry for getting the port number wrong for telnet - ports 20/21 are ftp Now, you mentioned losing sftp if tossing out the dropbear stuff - - - No hurry on these things, but To do passive-mode ftp you need to load the ftp-conntrack module ; But to do active-mode ftp (since the output default is ACCEPT) you only need to open port 21 in-bound (I looked it up this time). Now, about all that ram in use (90Mbyte) - - Only load and run ftpd when there is a connection request for it (uses inetd). This one should help: http://www.gnu.org/software/libc/man...ing-Inetd.html It isn't specifically about the busybox inetd, but they should be very similar. Same can be done for the httpd and telnetd servers (well, for any server). No need to convert the lab126 telnetd setup now, just noting that it can be run from inetd also. I am pretty sure the Busybox httpd will do cgi-bin - - WARNING: I am guessing at that one, we may need a light weight httpd that does. |
09-03-2012, 04:15 PM | #75 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Enabled the CGI stuff I believe.
and in all the underlying things that support cgi that I have touched. like microperl at el... Rather planning on using some of that Hah. yeah port numbers, phooey, There are too many, I once had to remember a large swath of them (the lower 1000 or so) for some stupid exam or interview, fortunately I have managed to forget most of them again now in favour of more interesting information that gurgle doesn't return at the touch of a mouse. it's been about 10, 15??? years since I last used inetd but it will all no doubt be exactly the same with some bells on. I'll have a play. It's odd I did have a hunt to see where the ram was going. Busybox enables tftp in this build. it could serve perhaps as a whorey host in some black-hole interim if it ever came to pass. I actually see no need to ditch ssh, merely no need to not use telnet by the same token. If the cap fits and all that. ah find another alias I missed... My Firewall is considerably more "setup" than that list expounds (no need to make it too easy for the casual goon to find my attack vectors) : ) more testing for me I think. and tea : ) |
Tags |
busybox |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo runs linux and busybox | billingd | Kobo Reader | 32 | 04-03-2011 10:19 AM |
configuring text to speech | hpratt | Amazon Kindle | 1 | 06-28-2010 01:34 PM |
Configuring? | rachangua | PocketBook | 3 | 05-15-2010 03:33 AM |
Updating Busybox | Adam B. | iRex | 14 | 10-23-2008 10:18 AM |
Cybook source code released (kernel and busybox) | dottedmag | Gen3 Developer's Corner | 14 | 09-12-2008 04:59 AM |