Posts tagged with "Linux"
Ways to download a file from a remote Windows machine

During network exploitation/pentesting/system administration, sometimes you’ll get on a Windows target and need to download a file – i.e. move it from your client to the target. This is a common problem with a lot of good, quick solutions. Other times, you’ll get on a Windows target and need to upload a file – i.e. move it from the target back to your client. This tends to be a little trickier, but there are nonetheless a few reasonably quick and easy ways to do it. I’ve documented five of them...

GPU passthrough: gaming on Windows on Linux

For a long time, I’ve been trying to figure out just how to get the best of both worlds in terms of running Windows and Ubuntu on my desktop PC. I’ve tried the obvious options: I dual-booted Windows and Ubuntu on my laptop for most of my university career, and more recently I’ve tried just running a Windows host with a virtualised Ubuntu in VMWare. Neither of these approaches fully satisfied me. With dual-booting, the other OS on your system is a full reboot away. If...

Showing the current Google Music song in conky

So here’s a trivial-seeming task that required a bit more digging that I anticipated. I’m increasingly using Google Music streaming over my local music collection these days, but I’d like to get the same general experience as I’d have with a local music player. This includes being able to play and pause with one of the extra buttons on my mouse and seeing what song’s playing in the conky-powered i3bar at the top of my screen. If you’re using i3wm with the default i3status...

Directory persistence hack for webshells

The scenario: you’re busy pen testing a webapp and you get code execution somehow. Probably with a dinky little webshell like <?php echo shell_exec($_GET['e']); ?>. For whatever reason, you can’t get or don’t feel like getting something more sophisticated. But the one thing that really irritates you is having to cd through to the directory you want with every new command. Well, here’s a little Ruby script that will do that for you, literally by remembering every single one of your cds and prepending them, in order, to all...

Encrypting a second hard drive on Ubuntu (post-install)

If you’re serious about the security of your data, it’s not a bad idea to encrypt your hard drive. For the cost of an extra password-entry on startup, you’ll be assured that no-one can get ahold of your data even if they steal your device. There are facilities for doing full disk encryption on both Windows and Linux. For a couple of years now, the Ubuntu install wizard has provided the option of encrypting your install with the check of a box. Easy and hassle-free. ...