06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · Lobsters · · 10:36 runtime

Logging into a Linux machine from a flip phone over Bluetooth (2020)

Comments

In the wiki LinuxBlueTerm
Transcript 1042 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

hi youtube and happy wednesday i hope all of you have had a great start to your week today we're going to learn how to log into your linux machine from a humble flip phone over bluetooth

and to do this we're going to use a midlet called blue term as the readme states it's a really basic bluetooth terminal for j2me devices it was tested only

on nokia phones but works great on this handy samsung rugby 4 that i've shown in previous videos anyway so there's two parts to set up one is the linux machine side for this we need to create two files called login.sh and bluetoothio.sh and i've done this and i've changed their permissions so they're both executable

login dot sh opens up an a getty instance login console at 38 400 baud eight data bits over the rfcom zero channel with an ansi profile bluetooth io.sh actually executes login.sh it also does something else it watches for incoming bluetooth connections on the rfcom zero channel excuse me rfcom zero interface and then channel one for the connection and we'll see that waiting for connection on channel one and when i'm ready to make the connection i'll run bluetooth io.sh login.sh now on the phone side there's a quick modification of the software that i have to do to connect to this machine that modification is a change to the bluetooth address specified to that of this linux tablet which i've discovered with hci tool def i changed that text within blueterm.chat and since i've done that i copied blueterm.chat and blueterm.jar to the phone and install them i was able to run the the middle it and accept the bluetooth connection and then see a wagon prompt and use it accordingly okay so i might go ahead and do a couple things on this other monitor i'll make sure there's no running instance of a getty which could throw this off and i'll make sure everything's configured properly in the blueman bluetooth manager

okay so that looks good no a getty instance which already occupies rfcom0

and secondly we are paired as you can

see by that key to b780a which is the samsung log b4 and we can see its corresponding bluetooth address this connection will be made over a serial port profile as we'll see in the blue term text box and now with that i'm going to go ahead and start a blue term actually i take that back but with that i'm going to open up bluetooth io.sh and login.sh on the linux machine and then open up blueter so this is from a previous session okay waiting for connection on channel one now

let's turn to the flip phone

i'm going to go down and zoom into the screen as much as i possibly can

there we go okay so i think that'll let us focus on the text on the screen i'll go ahead and click start okay and we've made a connection

and boom you can see that text scrolling across the screen it's probably a little hard to read maybe i can zoom in a little bit further

i'll try yeah that's probably the most

readable we're going to get yeah there we go okay so i'll go ahead

and enter in my login and not show my password of course send input being quick

there's i think a 60 second timeout

done send okay and now i won't show you

my password

and look at that look at that we're logged in look at that text streaming across the screen imagine a wireless serial connection pure serial over bluetooth and let's hold that focus down beautiful okay so i'm going to erase

what's in the input so you don't see my

nice password

and let's do something real fun here what can we do ls

yeah this probably isn't that good for writing text look at that

who would have thunk it i might try something like top or h-top as well probably ps

you can see all the stuff work files i

have in my home directory

looks like this is just black and white i'll see if i can run each top and and and see something there now also actually before that let me set up stty

there's signet which is control c send stty rows and columns okay so let's try send input menu three

clear something like um

yeah why not each top see what we get

now let's see if i can exit send oh wow

cool kind of slow and not colored as a as i would want but i can see running processes that's very cool

real slow

okay let me see if send sig int

is useful here

okay i'll try sending

cue oh maybe that sigit had worked

i don't know that's pretty nice um let me think of other things i can run uh unnamed.a or dash a set input

menu

and now i can see the kernel version maybe you can see that that says

4.15.0-112 112-generic okay so you might want a magnifying glass for this but still good to check some quick things hmm what else can i do oh df df's another quick status command

so you can imagine you can use this for very quick status checks

and yeah the refresh rate's quite quite slow

so i i hope that's helpful to everyone if you have a flip phone go ahead and try this pair it with your linux machine and use it as a little linux console probably to check system system properties

or maybe you have a quick script you want to run that will show i don't know results of checking sensors or radio output or in my case adsb output on your phone from anywhere

i hope in addition to this being helpful that you enjoyed the video you love this tiny tiny font i'm showing you thank you all for watching please like and subscribe if you have any thoughts suggestions questions or comments leave them in the questions in the in the comments section

down below take care everyone and have a great wednesday

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks