Author Topic: Kulverstukas method to make windows less shit. (terminal)  (Read 2056 times)

0 Members and 5 Guests are viewing this topic.

Offline d4rkcat

  • Knight
  • **
  • Posts: 287
  • Cookies: 115
  • He who controls the past controls the future. He who controls the present controls the past.
    • View Profile
    • Scripts
Kulverstukas method to make windows less shit. (terminal)
« on: January 08, 2015, 10:56:40 am »
OK so I hate windows.
So i haven't really tried to use it for anything but gaming and testing my viruses on.
Kulverstukas recently pointed out to me that windows cmd can actually be slightly less shit by installing clink.
So I ran with it and tried to improve on it a bit:

1. Install Clink
Website
exe installer

Clink is so awesome you can type paths normally (with / as a seperator) and everything will just work.
The TAB completion is wonderful too.
It also persists command history across sessions and even has (reverse-i search) !!!!!!!
You have to disable console2's Ctrl+R hotkey to use it though. (at the end)

2. Install Cygwin
Website
exe installer

When you install cygwin you can select what packages you want to install.
If you select all it will download and install more than 10GB of stuff, so you probably want to only select the stuff you need.
For anyone interested here is my setup.ini
https://gist.github.com/d4rkcat/249229f0f6a533038f54

With this setup my cygwin directory is 795 MB

3. Install Console2
Website
exe installer

Once you have installed it launch it and right click on it, you can go to edit>Settings and modify it to your liking.

4. Add everything to PATH.
Press Windows Key+Pause
Then Advanced System Settings
Then Environment Variables
So if you installed things with default paths you would need to add:
Code: [Select]
;C:\Console2;C:\cygwin64\bin
to PATH variable.

5. Install AutoHotKey
Website
exe installer

6. Set up AutoHotKey to make the terminal appear and disappear with a hotkey
When you start AutoHotKey it will ask you to edit the script.
Put this in there (with any modifications you prefer, this launches and hides the terminal with `)
https://gist.github.com/d4rkcat/8ec3eb5f37ae271d953b

7. That's it. Welcome to a less shit cmd.
You can
Code: [Select]
ls
pwd
cat file.exe | sha256sum
echo 'This*is*a*string*baby' | cut -d '*' -f 4 | base64 > some.txt
cat some.txt | base64 -d | grep str

Or if you prefer you can access the bash shell directly by typing:
Code: [Select]
bash

Enjoy!

« Last Edit: January 08, 2015, 12:14:21 pm by d4rkcat »
Jabber (OTR required): thed4rkcat@einfachjabber.de    Email (PGP required): thed4rkcat@yandex.com    PGP Key: here and here     Blog

<sofldan> not asking for anyone to hold my hand uber space shuttle door gunner guy.


Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #1 on: January 08, 2015, 11:43:45 am »
You can spray all the perfume you want on shit, but at the end of the day i'm sorry to say, it's still shit.

Offline z3ro

  • Knight
  • **
  • Posts: 345
  • Cookies: 60
    • View Profile
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #2 on: January 08, 2015, 01:58:05 pm »
Not bad.
But i'm gonna stick with linux  ::)
~ God is real. Unless declared as an integer.

Offline Spectrum_963

  • Peasant
  • *
  • Posts: 83
  • Cookies: 20
  • Where shit goes down
    • View Profile
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #3 on: January 08, 2015, 02:09:45 pm »
Cmd makes me cry. I can't stand it anymore.
+1 though.
"The same human mind that creates the most beautiful works of art and extraordinary marvels of technology is equally responsible for the perversion of it's own perfection."

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #4 on: January 08, 2015, 04:21:58 pm »
For those that don't want to install bulky Cygwin, there're still the GnuWin32 CoreUtils.
MSYS also provides a bash shell for Windows, as well as the most common utils.

Or if you want it in a single executable (like for USBs, ...) there's a busybox port for Windows. It isn't complete tho, as certain utils are harder to port to the windows architecture!
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline zenith

  • Peasant
  • *
  • Posts: 58
  • Cookies: 36
    • View Profile
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #5 on: January 08, 2015, 04:34:13 pm »
+1 all over the place. My gaming rig is getting this treatment tonight.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #6 on: January 08, 2015, 08:16:54 pm »
Thanks for the writeup, OP, but you are forgetting Powershell :)

Offline d4rkcat

  • Knight
  • **
  • Posts: 287
  • Cookies: 115
  • He who controls the past controls the future. He who controls the present controls the past.
    • View Profile
    • Scripts
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #7 on: January 08, 2015, 08:33:54 pm »
Thanks for the writeup, OP, but you are forgetting Powershell :)

Powershell is still there, as it always is on windows7.
Unfortunately, you don't get the benefits of clink when using it so I didn't really think people would be interested.
You can still use it all the same  :P
Jabber (OTR required): thed4rkcat@einfachjabber.de    Email (PGP required): thed4rkcat@yandex.com    PGP Key: here and here     Blog

<sofldan> not asking for anyone to hold my hand uber space shuttle door gunner guy.


Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #8 on: January 09, 2015, 10:54:41 am »
For those that don't want to install bulky Cygwin, there're still the GnuWin32 CoreUtils.
MSYS also provides a bash shell for Windows, as well as the most common utils.

Or if you want it in a single executable (like for USBs, ...) there's a busybox port for Windows. It isn't complete tho, as certain utils are harder to port to the windows architecture!

busybox ftw. I don't know what I would do without it on my phone.
>>>import this
-----------------------------

Offline jpHernandez

  • /dev/null
  • *
  • Posts: 13
  • Cookies: -14
    • View Profile
    • Hackstuff Wiki
Re: Kulverstukas method to make windows less shit. (terminal)
« Reply #9 on: January 09, 2015, 12:54:50 pm »
indeed linux beat windows in any angle, but there are tools ported from linux to windows, that is why, it is not that bad, as long as the tool is working on windows, it is still not that useless.  :P
but still I love linux...
« Last Edit: January 09, 2015, 12:57:57 pm by Kulverstukas »
Any solution to a problem, is a HACK