Guide to Persistent Reverse SSH Shells and Port Forwards

Idiot proof setup for persistent reverse shells / port forwards (same thing) under a Ubuntu VM remote and my Dreamhost server, but should apply to nearly* all *nix’s First off, some terms to keep this easy. I want to be able to access my in-office VM, xavier from my server magneto (not my names, but they conveniently complement). xavier is not publicly accessible, but magneto is. I’ll be replacing all of the FQN’s with these terms so expand on your own. In generic terms, xavier is the remote machine (i.e the one behind some NAT firewall or such that you want to get access to) and magneto is the local machine. Its a bit confusing since all of the work is done on xavier, but it makes sense in the long run. Just trust me and get on with it. ...

December 8, 2011 · Andrew Bolster

Guide to Expanding Oracle Virtualbox Drives

The Idiot Proof Guide for Windows-host, *-guest setup. (Ubuntu in my case, and should work for any host) Make sure you’re working with a VDI, not a VDMK (if not, File>Virtual Media Manager right-click, Copy) Drop into a command line (on windows, press Win+R, type ‘cmd’) and navigate to the Virtualbox directory (won’t need to do this on *nix) Execute VBoxManage _path_to_your.vdi_ --resize _new_size_in_MB_ Download UBCD and mount it as a DVD to your VM ...

December 8, 2011 · Andrew Bolster

Unicode Characters in Mendeley Bibliography Breaking Latex?

I use Mendeley for my reference and citation management. I use TexClipse for (most) of my $latex \LaTeX$ editing, ViM otherwise. I use Xelatex / pdflatex for project building. These don’t always work so well together. One issue I came across was that Mendeley can insert some weird Unicode whitespace characters that ‘disappear’ in TexClipse / Vim, but break xelatex/pdflatex. Easy solution: set the project encoding in TexClipse to ignore these characters upon pasting. ...

October 26, 2011 · Andrew Bolster

Stuff I've found interesting in the past month - 2011/10/23

Baby trashes bar in Las Palmas

October 23, 2011 · Andrew Bolster

Mendeley Repeated Citations in BibTeX Library

Problem: Had two citations with slightly different information appearing in library.bib, causing bibtex to shit itself, but only one citation appeared in the desktop / web interfaces Cause: ‘Deleted’ Library items still appear in library.bib, so old (custom) version of citation still persisted after being ‘removed’ Solution: Empty trash

October 19, 2011 · Andrew Bolster

Today's Accomplishments: The 2.0 Generation

Ordered Groceries (Tesco Online), Ordered Case of Wine (Virgin Wines), Planned PhD and Literature Review writing (StackExchange) Read more papers (Mendeley) Managed some Investments (Zopa) As I was walking back from our kitchen in the office, I realised that that ’lift coffee cup, walk to kitchen, make coffee cup, return to desk’ was the most inefficient part of my working day; I can even justify writing this post as vaguely productive as I’m waiting for a download to complete… ...

October 17, 2011 · Andrew Bolster

Vim Latex Suite Install on Ubuntu

Ubuntu doesn’t manage vim’s addons, so installing the vim-latexsuite package doesn’t actually put all the relevant hooks into your vim installation. To do that, (after installing the package) execute; sudo vim-addons -w install latex-suite

October 5, 2011 · Andrew Bolster

Through The Drinking Glass

Inspired by the drinking game ‘Kings’ Co-Authors:W.P.L. Cully, and L. Martin Requirements: 1 standard deck of cards 1 jug/tankard/chalice/large vessel 1 top hat (or suitably ‘posh’ headgear) at least 4 people Card Assignments: A: Drink Me (Drink your own drink) 2: Tweedledee Tweedledum (Two person waterfall, card drawers choice of partner, second person can only stop drinking after the card drawer) 3: Time for Tea (Group Waterfall, to stop drinking, person to your right must stop first) 4: Door Mouse (Last person to put their forehead on the table takes a drink) 5: Skive (Get out of jail free card to be used at any time until the next 5 is pulled from the deck) 6: Mad March Hare (card drawer can make up an arbitrary rule that lasts until another 6 is drawn) 7: Caterpillar (aka Questionmaster, if anyone answers a question posed by the cardholder, that person has to drink, this continues until another 7 is drawn) 8: Cheshire Cat (the drawer must grin until another 8 is drawn) 9: Rhymes (card drawer picks a word, and each subsequent person around the table must say a non-repeated word that rhymes with the previous word. When someone fails, they drink) 10: Do it again (if the previous card was NOT a face card, repeat the action) J: All Change (this drawer receives the hat, granting the power to randomly shout [loudly] ‘ALL CHANGE’, at which point everyone passes their drink (and the hat, passing on the power) to the person on their left. There is no limit to how long this goes on for, but when another J is drawn, the hat is given to that person) Q: Queen’s Cup* (Pour your entire drink into the central cup/jug/whatever. If Q♥ appeared before the last Q, down the remains of the cup. See also K) Q♥: Off with his head! (Down the cup, if this card appears before any other Q’s, down your own drink) K: Kings and Queens (Each respective suit-couples (K♥/Q♥) are paired such that for the rest of the game, when the Queen drinks, the relevant King must also drink. In the case of the cup being drank, it can be shared, but this involves two people drinking out of the same vessel so can get messy, otherwise take turns and the Q goes first. If the K is pulled with no corresponding Q, there is no initial penalty) If anyone is caught breaking/forgetting any of these rules and penalties, they must drink. ...

September 29, 2011 · Andrew Bolster

Force 32 bit installs on 64 bit systems (Deb/RPM)

Pre-built packages not releasing 64 bit versions? No Problem. Debian/Ubuntu based: dpkg -i --force-architecture whatever.deb RH/Fedora based: rpm -i --ignorearch whatever.rpm

September 29, 2011 · Andrew Bolster

Stuff I've found interesting in the past month - 23/09/2011

Nigella Talks Dirty wolf howl Never Ending Story Thomas .VS. 50 Cent (the BEST VERSION original content!!!) 5 star wolf howl Never Ending Story Thomas .VS. 50 Cent (the BEST VERSION original content!!!) 5 star

September 23, 2011 · Andrew Bolster