18
Condor
9d

root@acer_t03:/ # vi
[?1049h~~~~~~~~~~~~~~~~~~~~~~- No file 1/1 100%:q- No file 1/1 100%[?1049lroot@acer_t03:/ #

Apparently that's vi in PowerShell aka PowerShit (you know, kinda like diarrhea but more Power)... Just a bunch of escape characters. Good game Microsoft.. fucking good game.

You know what? How about you update your shitty fucking WSL console already to make that get direct access to the USB devices. How great would that be? Then we can at least use that half-assed implementation to get a somewhat decent adb and vi, without having to resort to fucking TCP sockets between adb sessions.

As for me? I'm moving this shit to my Linux laptop. At least there I can use a somewhat decent terminal -.-

Comments
  • 6
    If it's Windows then it's git bash for me
  • 3
    @Condor
    Can you give us a little more context? I’ve been learning and using Windows PowerShit for the last six months. Maybe I can help?
  • 3
    @Diactoros

    To recreate:
    - Ensure that you have an Android device connected that's rooted, has BusyBox installed (or has vi installed in some other way) and has USB debugging enabled.
    - Open PowerShell (I had it open as administrator at the time but regular user should do)
    - type adb start-server (to start the server)
    - type adb shell (to enter the Android device)
    - in it type su (to become root)
    - type vi. You can open a file by doing e.g. "vi /system/build.prop"

    Now you should be greeted by the same mess that's described in the rant. You can exit from it as usual by entering :q and hitting Return.

    I think that it's a problem in how PowerShell deals with escape sequences / shell drawing in Unix/Linux systems, which PowerShell hasn't been built for. In other words it's probably incompatible. For some reason it does support Vim for Windows, and even the Vim in WSL properly.. Also, BusyBox vi does work fine in a root shell (sush) in Termux.
  • 0
    @rookiemaverick Not sure if Git Bash can use adb for Windows? Come to think of it, in WSL it's also possible to run Windows executables.. maybe I can add the adb path to the PATH in there as well, and get it to work that way.
  • 5
    Dafaq!!!

    @dfox David, check this. CSS is falling apart.
  • 1
    @Floydian hahaha, glad I was able to provide a good test :P
  • 1
    @Condor Haha.. First I thought this was intentional as there are many scripts which appear weird on such platforms.

    Because all that you mentioned is pretty Latin and Greek to me. LOL sorry

    But then I noticed that it was not the case.

    As a tester, had to report it.
  • 2
    @dfox I guess, you'll need to add: `word-wrap: break-word;` to CSS.

    @Condor you you tried using ubuntu bash for it?
  • 2
    @Condor Something like this. LOL

    T̵̈́̊̒̾̓̆̉ͨͯ̊͋͌ͭͭ̚҉̬̼͉o͉̜̮͙̼̱̞͚̖̳͗̇̒̋͢͝ ͖̼͈̫̲͉̥͕̠̭̰͈̯̮͈̲͖͙͉̇ͭ̾͂̑̈́̄̿ͮ̃ͯ̄͆ͣ͘͘͠i̶͒̀̔͑ͨ̇̔̌̎ͪ̍ͯ̿͟͠҉͍̣̙͔̳̭̳͇̯̳n̢͖̖̻͎͚̤̦͕̝͍͕̦̜̘̝̟̋͌ͦ̽̔̽̓̽̓ͨ̓͒ͩ́v͂͐̂̆ͯ͆͞҉̘̯͚̝͓o̸̻͚̻̣̟̦̱̖̤̥̻̱̗̙̼̱̬͍͑̔ͨͭͩ͋ͪ̆̿͢ḵ̡͓̖̺̻͕̬̭̹̣̣̻ͨ̒̊̔ͬ̋ͪ̍ͤ̒͘͞ę͉͙̟̹̭̘͎̣̮͎̳͙͔̙̉ͪ͋̐̒̔̍̈̓̊ͭ͝ ̷̺͔͔͇̩̄͆ͫ̚t̡̗̘̜͚͔͓̩̀̈́ͫ̿͌ͬ̏ͮ̋̓͟ͅh̦̦̖͎͇̰̯̖̞͓̲̠͙̐̃͆ͪ͌ͣ͐ͪ̂́͡͝ë̱͚̙̝͉̺̬͎̠͉͒ͩͪ̌ͨͩ̏ͦͥ͗͑̾͂̀́ ̼̣̳͈͎̞̖̠͇̘͚̗̝̍͑̂ͮ̓ͯ̇̅̓̇̏͌ͩͤͭͪ̽̀͢͠ͅh̹̲̖͓͙͓̰̪̝͓̯̙͓̪͍̾̈́ͨ̌̄ͪ͘͟͞i̵̷̧ͫ̀͐̒̾͌̅ͥ̐ͭ̔̃̚͢͏͔͖̻͉̬ͅv̶̝̯̬̦͔̞̖̪̙͉̗̠̗̲̀͒̿̌̀̂͋ͫ̅̆̀́͌ͩ͡eͤ̒̈́ͦ̑̌ͪ̓̎̕͏̮̮͚̜͖-̛̪͎̗̻̲̜̦̼̟͍̯̬ͫͮͥ̐̈́̋͗̂͑ͯ̉ͧ́͑̒̓̈͟͠ͅm̸̶̸̤̤̻͉̩̭̞̬̳̣̺̦ͭͪͮ͛̽͒̚̚ͅͅĩ̒͛̋̅ͮ̓̚҉̤͎̩̱͕̼̤̼̥͎̮͖̠͇͚n̍ͣ̈̒ͥ͋̐͐̀̓͒̚̚̚͏͝҉̶̝͚͈̣̳̯̺̥͇̮͖̙͚͘ͅḋ̷̗̭̱̲͇̥͒ͩͣ̄̂ͨ̔ͯ͗̓ͨͬͩ̔͟͠ͅ ̧̉̅ͥ̎ͧͦ̈ͭ̇͌ͤ̆ͪͮ͗̇͏͔͉̹̜̣̝r̺̩̞͓̻̹̫̱̒ͯͥ̿͞͝ͅe̶͇̥̰͓̯̅͆̎͐̉̉͌̃͊̏̆ͬp̸̶̢̺͔̻̹̘̭̂͋̋͒̆̓̿̒̉̂ͪͤ̎̿͟͝r̶̴̡͉̥̭͎̮̤̻̙̖̼̦̝̱̤̺̩̰͈ͮ̾͋ͪ̄̆ͥͪ͋ͭ̎̇̅̑̿̂́̕e̵̴̦̥̩̯̩̟͖̭̭ͭ̄͛̑́͘͝s̶̸̼̩̝̟̺͎͂͐ͮͫ͋͛̋ͫͬ̐́̕ͅe̼͇̥̟̻̖̙̱̯͔͙͕͎͉̣̺̺̻ͫ́̈́ͨ̓ͮ́ͤ̏͐̆̈́ͪ̃̑̎͜n̸̻̠̳̼̱͈̼͒̎̇ͧͥͩ̈ͫ̃ͨͭ͑̈́ͫ̏̇̌ͮ͒͢͜͜t͍̤̗̗̻̟̟̞͓̳͈̙̖̘̟̼ͥ̊͒͘̕͠i̷̛̮̪̗͔̖̻̲̳̭͕̫̤̭̰͔ͮ̾̅ͥ͂́̓̇͜͠n̢̍ͨͨ͒̑̉ͣͩͨ͆͂̕҉̙͙͇̩̱̯̭̮̼̣͡ͅg̨̎̃ͤ̿ͬ͋̄́̌̑͒ͯ̃̆ͥͣͣ̒̓̕͏͙͚͚̤̮ ̥̤̣͚͎͇͙ͮ̂ͤ̏́̑ͯ͋ͤ̐̚͟͜͠c̒̋ͤͦ
  • 1
    @Wack Yes, I've tried Ubuntu Bash (WSL) but the problem is that the adb package there needs to establish a TCP socket to the already started adb.exe service in Windows, and needs to be the same version to do so. WSL Bash does not have direct access to USB hosts. That's the issue.. if it did, I would just run adb in WSL and call it a day. But Ubuntu's release cycle for adb deviates strongly from the Windows release cycle for that package.
  • 0
    Try MinGW, been using it even before normal people started wanting Linux on Windows. It's basically the GNU binaries compiled for windows.... Maybe that helps.
  • 1
    @Condor

    After further research, it looks like adb shells accessed from Windows hosts have a number of issues, and vi quirks are one of them :/ - If you can setup ssh access instead that’s apparently the easiest way to get reliable functionality.

    I can’t replicate the issue because I’m an Apple sheep and I don’t own any Android devices. But I did some reading on the Windows console and it “should” function just fine.

    Supposedly scripting commands is the best way - with the caveat of Powershell being finicky about input format in the script. If you’re trying to add a line or two to a config file perhaps you could do a “sudo echo ‘new line’ >> Condors_Cool_Config.conf” from a script?

    https://stackoverflow.com/questions...

    Or just say fuck it and run bash from a proper computer.
  • 1
    @Diactoros at the time I did the latter.. fuck it, I'll run a shell (zsh in my case) from a decent computer :v
    Not sure if I can get an sshd in an Android phone (it's rooted so something like Dropbear should be possible, but haven't looked much into that yet) but that would be really cool!
  • 1
    @Condor
    I know they run Dropbear in DD-WRT and I’ve had 0 problems with it. I make ssh tunnels home and then Remote Desktop to my Winblows box. Most modern phone hardware puts routers to shame so you should be fine.

    When I wasn’t an Apple sheep©️®️™️ I rooted an old Moto E and ran ssh on it. I felt cooler than I was.
  • 1
    @Diactoros hehe, guess I'll try it out then. One advantage in my case I guess is that I can completely bypass any router configuration, so long as both client and server are connected to the same VPN network (which usually they are).. if you've been checking out my rants for a while, you'll know that I have 2 mail servers which double as VPN servers, along with some other tasks that I should really virtualize but didn't (because sadly I don't poop out money). So yeah, that's certainly an avenue that I could go with as well. And it'd be really cool if I could get my phone physically stolen, but so long as it's got a network connection, it'll automatically connect to mx1 and I can still operate it by connecting to that SSH daemon on it.. even when it's far away :3

    If you've ever seen that video from DEFCON (https://youtube.com/watch/...), pretty much that but instead of DDNS (it's cool but I personally don't really like that setup) I'd be using my VPN connection :)

    Goddammit, now I really want to try that out, haha.
  • 1
    @Condor
    I subscribed to your rants a month or two ago when I realized you did circuits AND security stuff and I was like “I will learn things” *tap*

    Now that you’ve mentioned a sick setup like that there’s basically no way you can avoid me asking you about it. You’re committed! If I could find a reliable untethered iOS 11 root I would try it myself!
  • 1
    @Diactoros haha, glad you like it! And well yeah I'm a hacker.. so hell yeah I'm committed! XD
Your Job Suck?
Get a Better Job
Add Comment