Join Today
+ Reply to Thread
Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 48
Like Tree12Likes

Thread: APP: Lua and Perl

  1. #31

    Default

    Sweet... Waiting for more port...

  2. #32

    Exclamation

    Damn, too bad ekonsole is the only terminal program for E6, and it's closed-source (even though it's based on GPL'ed Konsole! It's copyright violation, the source should be freely available!)

    @vivekdevaiah: I'll port python today/tomorrow. I know there is one already available somewhere, but well... I'll port the cutting-edge version I just downloaded
    Btw, I ported real(!) bash, not just busybox or other stripped-down versions. I'll test it now and post it.

    About cracking - it's used to find out what's behind hashed passwords. Mdcrack supports MD4/MD5/ntlm1 (the last one is in Windows, I think). Example:
    Code:
    ./mdcrack 1a1dc91c907325c69271ddf0c944bc72
    Try it

    And even on phone, it's pretty fast (useful for passwords 1-6 chars long; longer password take more time):
    Code:
    Collision(s) tested : 4601346 in 7 second(s), 205 millisec, 5 microsec.
    Average of 638631.9 hashes/sec.
    Oops.. looks like there is bug in kernel or glibc used by phone. Sadly, all files are shown as 64 Terabyte (!) so bash won't read them. Hacking source is no help, as it still tries to read file 0..size_t. Where size_t is 64 terabyte

    It works with common things, even has nice readline support and tab completion. But it can't source files, so is no use..

    EDIT: Something cool for you all
    1. Download http://dl.getdropbox.com/u/28596/Motorola/mohato.7z
    2. Download http://dl.getdropbox.com/u/28596/Motorola/mohato.pkg
    3. Extract the first (.7z) file to the root of your memory card.
    4. Install second (.pkg) with your mpkg installer
    5. Click "mohato" in the menu

    I re-made the whole directory structure. When running mohato, the ekonsole will start. But! We will be chrooted to new environment, clean and simple. Now it'll be piece of cake to add new programs, without needing to change directories all over again. Just put your programs into mohato folder (in your memory card) under usr/bin/, and you're done. This build also includes real bash and real coreutils, not the stripped down versions from busybox. Well, busybox binary is still there, but it's not "installed", so if you'd need any applet from it - just 'busybox [applet]'.

    MOHATO - MObile HAcking TOolbox
    I really bought this phone to have plenty of tools with me, anywhere, anytime. So you can count on me, I'll port a lot more stuff now I'm totally happy with what I got. I got *real* linux system I can easily use and customize.

    Apart from python (tomorrow!), tell me, what else would you like to see on this phone? Just name your (console) program and I'll port it

    (btw, even working on gcc, so it'll be possible to compile stuff from your phone, without the complicated and bugged cross-tools. Just ./configure && make && make install :>)
    Last edited by puppetshow; 07-23-2008 at 05:55 PM.

  3. #33
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    785

    Default

    if things go on like this soon i'll see that e6 will become a debian based phone or rpm. damn...this is the gold year of our e6, plenty of ported applications comed, are comming and will come out and if the gcc will work directly many beautifull things will run on our phone
    for the moment i just hope

    scribi refered:
    edit 1: damn i've tried a totally different shell var. now i realise what shell you were talking about. it might just work for scribi.
    edit 2: even so still not working...

    mohato doesn't work properly... it runs ekonsole and exits fast.
    Last edited by BruceLee; 07-23-2008 at 08:47 PM.

  4. #34
    Join Date
    Jul 2008
    Location
    Mumbai
    Posts
    34

    Default

    first thanks for this great stuff
    perl and php are the most useful to me

    I there a scheme interpreter? can some port it?
    I saw a php based scheme interpreter which can be a workaround but cant find the source

  5. #35

    Default

    @BruceLee: Strange, it works for me. Try telnetting to phone, go into /mmc/mmca1/mohato and try 'sh mohato.sh'. What it says?
    (I hardcoded this path, maybe your firmware mounts it somewhere else? You did extract the .7z file to the root of your memory card, so it has directory 'mohato'?

    @painlesssunny: I've never coded in it, which implementation will be best? GUILE? Scheme 48?

    (btw, implementation that interprets code rather than compile it would be better for the phone, i believe.)

  6. #36
    Join Date
    Jul 2008
    Location
    Mumbai
    Posts
    34

    Default

    I myself has user mit scheme so surely its best for me
    But in this case guile is better than scheme 48

  7. #37
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    785

    Default

    well in fact i've changed the mohato folder name (i didn't want it visible in the mmc) but i've also changed the MOHATO variables found in the two mohato scripts. See the attached screenshot
    Attached Thumbnails Attached Thumbnails APP: Lua and Perl-scr.jpg  

  8. #38

    Default

    Hm, no idea why isn't it working. Tried to use standard package, without any changes? I see you're using windows, so you can just set attribute "hidden" for this folder, the dot is a way in all unix-like systems. The phone won't see any difference between hidden/normal directories.

    Other things to try:
    Code:
    cd /mmc/mmca1/.mohato
    . /home/native/.profile
    bin/bash --version  # is it working?
    bin/chroot --version # is it working?
    bin/env --version # is it working?
    
    Try:
    bin/chroot . /bin/bash # how's now?
    Other possible situations:
    - are there phone's libraries in /lib and /usr/lib ? Are they being bind to $MOHATO/lib and $MOHATO/usr/lib ? The mount commands in script should do so. Same goes for /proc and /dev.
    - reboot the phone maybe?

    @painlesssunny: Please remember that it's pretty limited environment, but I'll try with the version you mentioned. It was first I found, but the included emacs and all others scared me, but we'll see. If it won't work (some programs are so poorly coded, that it's nearly impossible. Even bash required some changes in source code, and still isn't perfect :/) I'll try with the GUILE.


    Btw, did anyone found out how to use some special files from /dev? I saw very promising:
    Code:
    /dev/fmradio
    /dev/vibrator
    /dev/camera
    /dev/touchscreen
    But the standard way, e.g. cat [file] wont help much

  9. #39
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    785

    Default

    i don't know wtf happened... i've reinstalled it once again and this time it worked


    SCRIBI UPDATE 3:
    + added JavaScript support

    LINK
    Last edited by BruceLee; 07-24-2008 at 08:16 PM.

  10. #40

    Default

    i jus can't imagine... this phone is really getting sumthing cool this yr..


 
+ Reply to Thread
Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. How I Can Install Python or Perl in A1200
    By KASRA in forum A1200 General Chat
    Replies: 23
    Last Post: 01-04-2009, 10:35 AM
  2. need perl compiler on a1200
    By m41d3n in forum Development
    Replies: 2
    Last Post: 03-17-2008, 09:11 AM
  3. Can Perl b used for dev E6 application...?
    By sridi in forum E6 General Chat
    Replies: 4
    Last Post: 02-01-2008, 07:36 AM
  4. Q: Need something for perl and c++ scripts??
    By m41d3n in forum A1200 General Chat
    Replies: 1
    Last Post: 01-23-2008, 09:32 PM
  5. Perl on E680 ?
    By tt930 in forum E680 General Chat
    Replies: 1
    Last Post: 05-04-2005, 07:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1