Light Probe – A Research Project

I’ve decided to finally build the self-tuning Wi-Fi antenna I’ve been dreaming about for a few years now.  I figured it would make sense to start with something a tad easier, but with transferable skills and code. Hence I’m building an arm that orients itself toward light.  It will accomplish this with 4 photoresistors and some math. (I may eventually trim it back to 3 photoresistors). They’re broken down into Upper Left, Upper Right, Lower Left, and Lower Right.  Basically the code flow goes like this:

    1. Read all the sensors
    2. If the left and right sensors are reading equal strength make no lateral adjustments, otherwise move toward the stronger signal.
    3. Same concept for vertical sensors.
    4. Rinse lather repeat until everything is reading the same values and you are (hopefully) oriented towards the light source.

To go with this hardware, I’m writing a UI in WPF/XAML (because I know it, don’t judge me!) It’s fun, and quick to set up. So far it’s giving me live readouts of the sensor values. This is accomplished using a simple set of fixed length values passed via Serial.  I’m currently primarily using USB cable, but I do have a bluetooth module ready to go once I get things polished up a bit.

For now the code is UGLY!!!! I know this. Don’t care. Will refactor is later as I get things working. For now it’s all about getting things to actually function.

Details and source code can be found on Github at https://github.com/pyrrh1c/Light-Probe.

A Little Housekeeping

Been upgrading the hosts to ESXi 6.5. (Or at least the ones that can be upgraded.  What a dream! I haven’t used it yet but I can’t wait to deploy this at $job.  Such an improvement over 5.5/6.0.  The new web interface actually works.

Haven’t got much done on the infosec front lately. Boo. Life has been getting in the way, as happens.  At any rate, looking forward to getting these hosts finished and moving on.

Additionally, I recently learned about another sweet item called LibreNMS.  Will be rolling that out onto the Pyrrhic network as well.

Learning Feels Like Cheating

So on a couple of the vulnerable machines I’ve reached a point where I have no idea what to do next.  I’ve ended up pulling the walkthroughs and seeing how other people approach things.  While it makes sense to learn from others, and it absolutely has helped me learn multiple techniques way faster than I could have on my own, I can’t shake the feeling it’s cheating.  I suppose it’s my own bullshit. But if the goal is to learn how to do something, and I can accomplish that goal, and gain the useful knowledge in a fraction of the time (and still retain that information for later) it just makes sense.  I do hope to do enough of these that I can start getting root without cheat sheets. But for now, it’s still very much a learning experience for me, so I’ll keep on looking things up as needed.

All of that said, I’m already seeing a big difference. I know far more tools than I did a month ago. I can accomplish a good deal from memory/experience at this point.  I’m learning things. So if that’s the goal, then cheating be damned, I’m going to do it.

RickdiculouslyEasy

Luke (@LhHillz) put together a B2R called RickdiculouslyEasy.  How could I resist. Wubbalubbadubdub here we go! Will post updates as things progress.

UPDATE: Completed. Got all 130 points, took 2 1/2 hours.  Learned tons of things. Even some things I probably should have already know from being a syadmin. (how to use SCP from command line!)

Learned about building password lists using crunch, and then using those lists to attack something with hydra.  All in all, time well spent. Onto the next one!

LazySysadmin Done

Finished badstore, so it was time for something new.

So I downloaded and spun up LazySysAdmin.  A friend concurrently tried the same and showed me a couple of things. (SPARTA!!!) I learned about wpscan from some googling which turned up some nice info. Found an open share which had a password hidden in it.  Located the WordPress config file and got myself into a basic shell with the info I found there, then once in was able to get a root shell by launching BASH from sudo.  It’s listed as an easy Boot2Root, and it was fairly straightforward. Lots of fun though. Thanks to Togie McDogie (@TogieMcdogie)!

Onto the next one…

Watching the World

It’s one thing to intellectually understand that the world is constantly attacking every address on the internet. It’s another to actually be able to visualize the data and see it.  For fun I have been forwarding all of my inbound traffic logs to Graylog, and have enabled the Geolocation features.  I never expected Seychelles to be one of the top sources of inbound traffic, but it is.  Of course the usual suspects show up. Russia, southeast Asia, etc. But there is SO MUCH traffic from that tiny little island.  Just an interesting observation.

 

BadStore

Just playing around with some basic stuff. BadStore is ludicrously old, but it’s like playing the original Mario. Still fun.  There’s just to many little things to play with. MySQL, XSS, form validation failure, SQL injection.  I recently set up a retropie box for similar reasons.  Having fun.

Geek Week

So it’s been a while since I posted anything. I blame the holidays. However, I have this week off.  So for fun I’ll be trying a few new things.  The latest build of bettercap (now written in Go), nessus, nexpose, and a few other items.  Additionally, I’ve spent the day spinning up a few ESXi hosts to use for the playground.  Should be interesting.

Frustrated with Inject_CA

Spent this morning trying to get the Inject_CA module to work properly (or at least properly as I see fit). It is successfully inserting the key in to the registry, and reports success, but the actual certificate isn’t showing up in the Certs MMC.  If I don’t see it there, then I have to assume it’s no actually loading properly. Nothing useful from Google so far.  Well persistence will hopefully pay off, because this one is too useful to pass up.