sshd or telnetd for 11.05.2010 Android 2.1 Clean? - XPERIA X1 Android Development

Does anyone know how to get sshd running on "11.05.2010 Android 2.1 Clean"? Or perhaps have any instructions on how to login via telnet?
I have successfully started the telnetd with the parameters -p for port and -b for the wifi IP address, but can't login with an account that I've created. It just returns the login prompt after entering the password.
And since I don't know the root password I can't login with that account one either.
All help is appreciated!
Thanks in advance!

you should start telnetd with i.e. /bin/sh normally telnetd uses login
Code:
telnetd [B]-l /bin/sh[/B]
regards

hotlein said:
you should start telnetd with i.e. /bin/sh normally telnetd uses login
Code:
telnetd [B]-l /bin/sh[/B]
regards
Click to expand...
Click to collapse
Thanks for the help!
Guess I'll be doing some cross compiling now then... if nobody knows a place to get binaries that work on Xperia?

Related

Please Help

Ok i have an g1 thats unregistered and i kow how to activate it through wifi but i cant because i dont have an router i was wonder if someone could explain to me how to bypass this without activating my g1 it said or how i send these commands with adb
Now, copy a busybox binary to /data/local/busybox with adb push, and then connect to your phone with adb shell, and give the busybox binary execute permissions (i.e. chmod 755 /data/local/busybox)
busybox has a telnet applet, so you can do:
busybox telnet 127.0.0.1
to get a telnet session with root access.
- If you don't want to register the phone at all, you can set the app.setupwizard.disable property to 0 to prevent registration. Once you have an adb shell session open, type the following:
setprop app.setupwizard.disable 1
and then reboot. once it loads back up, it should bypass the registration screen all-together
but i am so confused thanks for the help
Do you have root? Most custom ROMs give you an option to skip.
i was in the process of rooting my g1 when i had downgraded it but i couldnt finish it because i had to activate it when i got it it was already activated
charles20212 said:
i was in the process of rooting my g1 when i had downgraded it but i couldnt finish it because i had to activate it when i got it it was already activated
Click to expand...
Click to collapse
It's been so long since I rooted that I can't remember if there are any other options. I think when first I got mine, there was no way to root with wifi. I couldn't even register while roaming, and had to drive 40 miles (nearest T-Mo tower) just to use my G1 for the first time. That sucked!
is there a way to bypass it without using wifi or can i install a new rom or something
If you are rooted, then try a new rom. Most of them will have the option to skip.
how i know if im rooted

please help, cannot telnet anymore to my rooted cyanogen 5.0.7

Hello folks,
i did successfully downgraded/rooted/cyanogened my HTC DREAM (G1)
according the
cyanogen wiki Full_Update_Guide_-_G1/Dream_Firmware_to_CyanogenMod
i could ran telnetd and telnet to my phone with no problem short after rooting and complete installation of the CM5.0.7
now after a few days of usage i lost the ability to telnet to my localhost from the phone when running telnetd in terminal as root
unfortunatelly the method 2x enter, type telnetd and 2x enter stopped working as far it does not open contacts anymore but google search when i try it on the home screen.
symptoms:
1. run terminal
2. su
3. telnetd
4. netstat (localhost listening on port 23)
5. telnet localhost 23
connection refused by foreign host
please help me connect to the rooted llistening telnetd
any idea would be appreciated
hope to solve this soon, i want to follow tweaking my G1 more

Change MAC address on rooted N1

Hi, does anyone know how to permanently change the MAC address on a rooted Nexus One? Thanks.
Considering the root of this file system is linux, it should be pretty similar to this: http://linuxhelp.blogspot.com/2005/09/how-to-change-mac-address-of-your.html
If at all possible. Obviously, change eth0 to whatever is appropriate. Also, you'll probably have to su to do any of the commands.
Hi, thanks for the reply. I did try that already but after the following command:
ifconfig eth0 hw ether 00:80:48:BA:d1:30
I get this error:
ifconfig: bad address 'hw'
Any ideas?
It worked for me. Before you ran that command did you switch to root user?
Also, this won't permanently change it. It'll only change it for your current boot. If you want it to be permanently done, you'll have to put the command into a init.d script.
So, I have been looking into and testing this some more and I have found something strange. It seems as though something within android keeps reverting my MAC address back to the real MAC address and I am unable to connect to the network I am trying to connect to (it has MAC address filtering). Any thoughts?
And nachod0g in response to your error, double check and make sure that when you type the command "ifconfig -a | grep HWaddr" that eth0 actually comes up. If WiFi is not enabled, this will not work.

How do you change the root password after rooting?

After you root the Nook Color, how do you set or change the root password? Is it similar to how it is done in linux with the passwd command? What is the default root login and password?
thanks
I think you're confused on what rooting is. There is no root password.
tunwear said:
I think you're confused on what rooting is. There is no root password.
Click to expand...
Click to collapse
Actually, there is on Linux but I believe android lacks the feature. Just type su in terminal to get root access if you are rooted.
Sent from my SPH-D700 using XDA App
phfaty said:
After you root the Nook Color, how do you set or change the root password? Is it similar to how it is done in linux with the passwd command? What is the default root login and password?
thanks
Click to expand...
Click to collapse
This sounds like something you had to do after jailbreaking an iDevice maybe you're mixing them up
I think he's comming from the apple world where you have to change the ssh password from alpine to something else.
There is no password to change because there is no ssh or telnet service running in the background. Hense no one can access the device remotely. If you install a remote access server and run it as a service (deamon, running all the time) then yes you need a password for that service. Most of these services in android are apps and only run when you turn them on. The one I use asks you to create a password before it even runs. Wireless adb doesn't ask for a password but then you are only using it for a short time and I seriously doubt hackers would be scanning for open adb ports since it is such a small number of devices using it.
But...
Hello, I have a question about this: what about other apps can access system files by accessing with root priveleges to install software that collect our information ?
Thanks
MikiBroki said:
Hello, I have a question about this: what about other apps can access system files by accessing with root priveleges to install software that collect our information ?
Thanks
Click to expand...
Click to collapse
Only if you click 'allow' for that app.
I am looking for a SU binary that has password protection. Does it exist? Can someone compile that into the SU binary?
Just a simple text file like /data/system/passwd ?
If not set it will not ask (like now)
I you want to set it use /system/xbin/su --setpwd ***** where ***** is the password stored in /data/system/passwd (rw-rw---- root.root)
Only factory reset will clear it.
Then if password is set then /system/xbin/su will ask for a password in the shell.
Just my 2 cents.
Thx.
tweakradje said:
I am looking for a SU binary that has password protection. Does it exist? Can someone compile that into the SU binary?
Click to expand...
Click to collapse
I personally have one, actually, but I'm not about to publish it (I'm not confident enough in my setuid-program-writing skills to promise anyone else security, and the code I have actually requires compiling the password hash into the binary). That said, you don't actually want my personal su, because it breaks pretty much every root-using Android app out there by prompting for a password via standard input.
It's certainly possible to do this "correctly" -- you'd need to move the password prompt into the Android UI (the Superuser app or equivalent). That would further complicate code that's already far too busy for comfort, though (seriously, who links SQLite into a setuid root binary??!?).
Thanks for your feedback. Nice to know there is a need for this. I only want security when adb is on.
You can detect if su request is from the shell? Then only ask for password if request is from the shell.
Else SuperUser.apk is not compatible? Or devs like Chainfire needs to change that too.
Cheers
gedster314 said:
I think he's comming from the apple world where you have to change the ssh password from alpine to something else.
There is no password to change because there is no ssh or telnet service running in the background. Hense no one can access the device remotely. If you install a remote access server and run it as a service (deamon, running all the time) then yes you need a password for that service. Most of these services in android are apps and only run when you turn them on. The one I use asks you to create a password before it even runs. Wireless adb doesn't ask for a password but then you are only using it for a short time and I seriously doubt hackers would be scanning for open adb ports since it is such a small number of devices using it.
Click to expand...
Click to collapse
I just installed cm10.1 and saw their is built in ssh.... I configured it without authentication and allowed root login and its asking me for my android root password -.-
Using any ssh of the market works. But this thing comes with ssh.. Whats the password its asking for lol
leathan said:
I just installed cm10.1 and saw their is built in ssh.... I configured it without authentication and allowed root login and its asking me for my android root password -.-
Using any ssh of the market works. But this thing comes with ssh.. Whats the password its asking for lol
Click to expand...
Click to collapse
Type "su" and then after it asks for root type "passwd" in terminal emulator without the quotes. It will ask you to enter a new password as one has not yet been set up.
Changing root passwd android 2.3.3
tunwear said:
I think you're confused on what rooting is. There is no root password.
Click to expand...
Click to collapse
I beg to differ there is a way to do it however i found this on someone elese thread and figured id share.....i got as far as making a new user however i still can but cant change the root passwd.
mount -o remount,rw /dev/block/mtdblock3 /system
now type:
cd /system/bin
ls
Do you see su or your username listed?
If so type:
chmod 4755 (type su or your username here, without parantheses)
now open terminal emulator on your phone and try your superuser command again.
If you did not see su or your username in the output of ls type the following to get a setuid shell:
cat sh > (username or su whichever you want)
chmod 4755 (username or su whichever you want)
now open terminal emulator on your phone and try your superuser command again.
That should get you going.

change my Mac adress

I cant seem to find anything about the sgs 1 and changing its mac adress (permanently/temporarily) ?
Can someone help pleaseeee!!!
Thanks in advance
I dont think we can change the mac address.
can't you spoof it?
I havent heard of this in android yet.
Sent from my GT-I9000 using Tapatalk 2
Mac address is a permanent address hard coded into the phone's hardware, or any wireless device's hardware for that matter.. Each wireless device in the world has its own unique mac address, just as each computer's bios has its own unique code..
You cannot change your device's mac address..
Hi
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
Code:
http://forum.xda-developers.com/showthread.php?t=1385577
hardrockk said:
Hi
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
Code:
http://forum.xda-developers.com/showthread.php?t=1385577
Click to expand...
Click to collapse
I started to grant SuperUser rights to my terminal app . After this, i started with the command "busybox iplink show eth0" and received the following error message:
iplink: can't find device "eth0"
Additionally tried the other command (with eth0) and there is the following error message:
ifconfig: SIOCSIFHWADD: No such device
Im using a Samsung I9000 with root access and all root-related apps already have root access all in all.
Even when Im typing ":su" or ":busybox ~", the device means:
sh: :busybox: not found
I don't get it, the terminal can work without these colons but the "eth0" could not be found, too
Any hints/tipps? Would be great, thank you
Wlan0 not eth0 no Ethernet on galaxy s
Sent from my GT-I9000 using xda premium
At first, thanks for the fast reply and I think your right..
..but at least, I already tried "Wlan0"
It seems, that the command (including wlan0) could be executed and I'm also able to display the wlan0 settings by typing: busybox iplink show
All related content is displayed including the "wlan0". The recently added mac-adress is successfully taken at this point (xx:xx:xx~ instead of the original one) and could be displayed there but even when im checking for the MAC adress in my android wlan settings, there is still the old one and my smartphone still connects with the old MAC to my gateway
I'm not sure then sorry will have to see if anyone else knows how
Sent from my GT-I9000 using xda premium
error eth0
eth0 not found in terminal what i should to do ? how to fix this error and ip link not found i know xda devloper in work fine but they have not solution for this...........
flexoduss said:
I cant seem to find anything about the sgs 1 and changing its mac adress (permanently/temporarily) ?
Can someone help pleaseeee!!!
Thanks in advance
Click to expand...
Click to collapse
1. A rooted device
2. Busybox installed </system/xbin>
3. Terminal Emulator
open terminal
type 'su' press Enter
grant super user access
then type 'busybox iplink show wlan0' press Enter
this shows ur current mac address of ur android phone
then type 'busybox ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX' press Enter
type the desired mac in XX:XX:XX:XX:XX:XX
voila Done!!!

Categories

Resources