Monday, October 28, 2013

Labtech MySQL root password.

Was trying to take a look at the Labtech MySQL database when I couldn't find the password. Luckily, I was able to find it under
HKLM\software\WOW6432Node\labtech\setup\RootPassword
Pop that into SQLyog and we're good!

COX DNS Hijacking and VPN woes.

Got a call from a customer that he was able to connect to the VPN fine, but was not able to browse to any of the local resources. I log on, poke around, find out nothing. I do some more poking. I discover that Tracerts to any of the resources over the VPN resolve to this strange IP, 92.242.140.2 and then start timing out.








Weird. I also notice, but look over, the fact that every website seems to go to some stupid yahoo affiliate thing for COX communications. After Googling 92.242.140.2, I discover that it's from some crappy company called "Barefruit Ltd." that works with COX to redirect search results to some crappy yahoo page. I am not the only who has this issue, if you look up "COX DNS VPN" in Google you'll see I am not the first to find this out. I was able to pull up an article for the poor guy to find out how to opt out, complete with screenshots. For the more veteran user you can jump straight here to opt out



Fuck Cox.

Thursday, August 16, 2012

Phonetic Phrase Translator (Python)

I thought that I would noodle around in Python this morning, and I had a lot of fun making this dumb program, but basically it takes a phrase that you input and converts it to a fancy "military style" phonetic phrase.. It's useful when you talk to tech support and you need to give them a serial number or other long phrase. Pretty simple stuff, the cMil function takes 'a' and converts each char to uppercase and then returns 'b' The cMil function is called from a while loop, using the counter (cnt) in the array format to pass each character. The range is the "len" (lenght)of the phrase, minus 1, as the counting starts at zero. (Remember that if "test" was the phrase, 0,1,2,3 is four numbers! and test[3] is 't' and not 's')
 def cMil(a):  
      a = a.upper()  
      if a == ' ':  
           b = ''  
      if a == 'A':  
           b = 'Alpha'  
      if a == 'B':  
           b = 'Bravo'  
      if a == 'C':  
           b = 'Charlie'  
      if a == 'D':  
           b = 'Delta'  
      if a == 'E':  
           b = 'Echo'       
      if a == 'F':  
           b = 'Foxtrot'  
      if a == 'G':  
           b = 'Golf'  
      if a == 'H':  
           b = 'Hotel'  
      if a == 'I':  
           b = 'India'  
      if a == 'J':  
           b = 'Juliet'  
      if a == 'K':  
           b = 'Kilo'  
      if a == 'L':  
           b = 'Lima'  
      if a == 'M':  
           b = 'Mike'  
      if a == 'N':  
           b = 'November'  
      if a == 'O':  
           b = 'Oscar'  
      if a == 'P':  
           b = 'Papa'  
      if a == 'Q':  
           b = 'Quebec'  
      if a == 'R':  
           b = 'Romeo'  
      if a == 'S':  
           b = 'Sierra'       
      if a == 'T':  
           b = 'Tango'  
      if a == 'U':  
           b = 'Uniform'  
      if a == 'V':  
           b = 'Victor'  
      if a == 'W':  
           b = 'Whiskey'  
      if a == 'X':  
           b = 'X-Ray'  
      if a == 'Y':  
           b = 'Yankee'  
      if a == 'Z':  
           b = 'Zulu'  
      if a == '0':  
           b = 'Zero'  
      if a == '1':  
           b = 'One'  
      if a == '2':  
           b = 'Two'  
      if a == '3':  
           b = 'Three'  
      if a == '4':  
           b = 'Four'  
      if a == '5':  
           b = 'Five'  
      if a == '6':  
           b = 'Six'  
      if a == '7':  
           b = 'Seven'  
      if a == '8':  
           b = 'Eight'  
      if a == '9':  
           b = 'Nine'  
      return b  
 phrase = raw_input('What phrase do you want translated to Phonetic Speak?\n')  
 print '\n'  
 len1 = len(phrase)  
 #print('Length of phrase is', len1)  
 range = (len1 - 1)  
 cnt = 0  
 while (cnt <= range):  
      print(cMil(phrase[cnt]))  
      cnt = cnt + 1  

Thursday, August 9, 2012

NAT, Port forwarding, etc.

http://www.dd-wrt.com/wiki/index.php/Port_Forwarding

Pretty solid and easy to understand summary of NAT, IPv4, and port forwarding. Probably the most "explain it like i'm five" summary of basic networking concepts. I would love to see something like this for IPv6.
DD-WRT's documentation is on point.

Wednesday, July 11, 2012

Power Shell - Hyper-V


I'm an utter noobcake when it comes to Powershell. I have no idea how to work it.
Honestly.
But I did figure a bit out this morning that made my tiggles wiggle.

Like an idiot, I opened up regular old windows powershell and unsuccessfully smashed in hyper-v commands. Took me a few minutes to realize I have to open up the Virtual Machine Manager one under "Programs\Microsoft System Center\Virtual Machine Manager 2008 R2"

From there I was able to craft some magic in a matter of minutes.

First you have to set the Host server you're going to work with using the "Get-VMMServer" command. I used "Get-VMMServer localhost"

Then I wanted to use the Get-VM command to dump the Hyper-V VM's server and Hyper-V names.
I was able to do a simple "Get-VM | Select-Object ComputerName,Name" and output that to fancy console output, which if you know anything you can pipe with a simple carrot to a text document like so.
"get-vm | Select-Object ComputerName,Name > C:\library\names.txt"

Bam! look, powershell can do shit!



Wednesday, May 30, 2012

CloudFlare

CloudFlare Is sick. Get on that shit.

Wednesday, May 23, 2012

Command to disable IE9

Here is the command to disable IE9.

reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Setup\9.0" /v DoNotAllowIE90 /t REG_DWORD /d 1 /f
In typical Microsoft fashion they have created an entire toolkit to accomplish one command.
Add it to startup scripts, MDT deployments, etc.