EvilZone
Hacking and Security => Tutorials => : d4rkcat 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 (https://mridgers.github.io/clink/)
exe installer (https://github.com/mridgers/clink/releases/download/0.4.3/clink_0.4.3_setup.exe)
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 (https://cygwin.com/)
exe installer (https://cygwin.com/setup-x86_64.exe)
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 (http://sourceforge.net/projects/console/)
exe installer (http://sourceforge.net/projects/console/files/latest/download?source=files)
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:
;C:\Console2;C:\cygwin64\bin
to PATH variable.
5. Install AutoHotKey
Website (https://www.autohotkey.com/)
exe installer (https://github.com/AutoHotkey/AutoHotkey/releases/download/v1.0.48.05/AutoHotkey104805_Install.exe)
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
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:
bash
Enjoy!
(http://i.imgur.com/AyC4TOk.jpg)
-
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.
(http://ct.weirdnutdaily.com/ol/wn/sw/i53/2/11/9/wnd_addd2693c837b063a473f5135ba3e67d.jpg)
-
Not bad.
But i'm gonna stick with linux ::)
-
Cmd makes me cry. I can't stand it anymore.
+1 though.
-
For those that don't want to install bulky Cygwin, there're still the GnuWin32 CoreUtils (http://gnuwin32.sourceforge.net/packages/coreutils.htm).
MSYS (http://www.mingw.org/wiki/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 (https://github.com/pclouds/busybox-w32). It isn't complete tho, as certain utils are harder to port to the windows architecture!
-
+1 all over the place. My gaming rig is getting this treatment tonight.
-
Thanks for the writeup, OP, but you are forgetting Powershell :)
-
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
-
For those that don't want to install bulky Cygwin, there're still the GnuWin32 CoreUtils (http://gnuwin32.sourceforge.net/packages/coreutils.htm).
MSYS (http://www.mingw.org/wiki/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 (https://github.com/pclouds/busybox-w32). 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.
-
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...