Author: nugs

  • SSH Dynamic Port Forwarding

    You have three boxes: A, B and C.

    A = Ubuntu client
    B = Ubuntu relay
    C = Windows RDP server

    Host B has two IP addresses, so two NICs, so is part of two networks. Using dynamic port forwarding like this is an effective way to pivot traffic from one network (where Host A is) to another (where Host C is) using Host B as a pivot between the two. This will also show how to access a service on Host C from Host A.

    Prep:

    • Install proxychains and xfreerdp on Host A
    • Install OpenSSH server on Host B
    • Ensure RDP service is enabled on Host C

    On Host A:

    • Edit proxychains.conf.
      • Add an entry like:
      • 127.0.0.1 9050
    • Setup dynamic port forward
      • ssh -D 9050 user@<relay-ip>
      • This creates an SSH tunnel between A and B.
      • Specifically, a connection to local port 9050 is made by the SSH client. Whenever a connection is made to this port by an application, it is forwarded over the secure SSH connection to a destination determined by the application, e.g., a web browser will send packets to google.com.
      • Also, this turns the localhost into a SOCKS proxy listener.
    • Run xfreerdp with proxychains
      • proxychains xfreerdp /v:target-server-ip /u:user /p:pass
    • Voila! You can now access the RDP service from your client machine.

  • Beefy sauce

    Original recipe was to go with Swedish meatballs, but would probably go with steak and pork.

    Ingredients

    • 500ml boiling water
    • Beef stock pot
    • 1tsp Dijon mustard
    • 1tsp soy sauce
    • 40g cream cheese
    • Parsley

    Method

    • You probably just used a pan to cook some meat. Use that one and scrape up all the meaty bits as you go along.
    • Add water to the stock pot, mix it up a bit
    • Pour it in the pan
    • Add mustard and soy sauce, mix it up a bit
    • Let it bubble and reduce a bit for a few minutes
    • Add the cream cheese and parsley
    • Let it bubble a bit more
    • Reduce it to whatever thickness you want
    • Pour it on your food
  • Courgetti

    Yes, the day I wrote this was a sad day.

    Ingredients

    • Courgettes

    Method

    • Spiralise
    • Don’t add salt
    • Spread it out over a plate
      Single layer if possible, so not in a bowl, and not covered
    • Microwave for 60 seconds. No more.
    • Squeeze
      Ideally wrung out in a tea towel. Hands will do otherwise.
      Objective is to get as much water out as possible.
    • Add it to your dish/sauce/whatever.
  • Rich beef jus

    This is tasty. Pour it over steak.

    Ingredients

    • Knorr beef cube pot thing in 150 waters
    • Lardons
    • Thyme leaves
    • Half an onion
    • Onion marmalade (20ml)
    • Balsamic vinegar (15ml)
    • Butter (chunk)

    Method

    • Drizzle olive oil. Brown off lardons. Add onion and thyme when crisp. Cook for four or five mins until onions are soft.
    • Add the above to the steak pan. Add balsamic vinegar, marmalade and stock.
    • Reduce heat, simmer for 10 mins until rich, smooth and coats the back of a spoon.
    • Season, stir in knob of butter.
  • Breakfast hash

    Ingredients

    • Chorizo
    • Onion
    • Two peppers (different colours)
    • Halloumi
    • Potatoes
    • Spinach
    • Fresh tomatoes
    • Wholegrain mustard
    • (Optional) poached egg

    Method

    1. Chop chorizo, render it slowly in a pan
    2. When it looks fatty, add the onions
    3. Add peppers after some amount of time has passed
    4. You should already have diced up the halloumi. Add it.
    5. Add the microwaved or boiled potatoes
    6. Add a load of spinach
    7. Stir it all up
    8. Add the chopped tomatoes
    9. Let the whole lot go slightly mushy, and so it goes a bit juicy
    10. Add some wholegrain mustard and mix it all up again
    11. Poach an egg if you want
    12. Eat
  • Peeling Carrots

    Find a carrot, peel it.

  • Forensic magic

    Something to do with data

  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

    A quote block

    print("hello world")
    I am a robot

    short code?