Archive for the ‘Uncatagorized’ Category

DHCP Pwnage v0.1

Saturday, July 3rd, 2010

Ever wanted to exhaust a DHCP servers pool?
I did, so I created DHCP Pwnage

This Perl script will grab as many leases as you want, you define the number of leases via the $ClientC var. I plan on writing this tool in PHP so I can add a lot more functionality.

This was created by modifying the example code of Net::DHCPClientLive, to get Net::DHCPClientLive you will need to force the install or notest the install via CPAN.  I have had no luck having Net::DHCPClientLive install properly on any platform without using force or notest.

Download: dhcp-pwnage-v0.1.pl.zip

(more…)

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Use VNC to manage VMware ESX/ESXi VMs

Friday, July 2nd, 2010

Something cool for your ESX/ESXi labs–Rather then relying on using the VIC (VMware Infrastructure Client) to remote control your VMs you can enable VNC access to them.

To do this power off the VM and add the lines below to the VMs .vmx file, you will need to choose a different port for each VM you wish to do this on.

remotedisplay.vnc.port=”5900″

remotedisplay.vnc.enabled=”true”

If your using ESX you can password protect the VNC connection by adding this line:

remotedisplay.vnc.password = “password”

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Grab MAC Address from ARP Table with PHP

Sunday, May 23rd, 2010
Cool function you can use on your local network to lookup a devices MAC address, (assuming the device is on your network).
For a big company, either look in the remote locations router, or your core router.  If you use this leave me a comment, would love to know how your using it.
// =============================================
// getmac(Device IP, Router, SNMP Read Community)
//  Michael Requeny — http://michael.requeny.com
// – Looks up remote devices MAC
// – SNMP to routers ARP table
// – Converts MAC from HEX to ASCII
// – Inserts : seperators
// =============================================
function getmac($ip, $router, $snmpread) {
$oid = “.1.3.6.1.2.1.3.1.1.2″;
$mac = snmprealwalk($router, $snmpread, $oid, 1000000 ,10);
// load up array keys for lookups
$keys = array_keys($mac);
foreach ($keys as $key) {
// if needle contains IP && needle = IP
// this prevents srch for 10.254.254.1 returning
// multiple values (like .1, .11, .111, etc.
if (strstr($key,$ip) == $ip) {
$mackey = $key;
}
}
$mac = trim(str_replace(‘Hex-STRING: ‘, ”, $mac));
$mac = str_replace(‘ ‘, ‘:’, $mac);
return $mac;
}
  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Card Access Complete Write-up

Sunday, February 21st, 2010

So you want to setup a card access system?  Well assuming you don’t mind being locked out of your home for a few hours here is how it’s done…

First let’s cover how they work—

There are five parts to a card access system:

  1. Control Interface
  2. Cards
  3. Readers (Either card readers, keypads, or a combination of both)
  4. Card Access Control Panel(s)
  5. Outputs (electromagnetic locks, electric strikes, contacts) (more…)
  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

INSTEON IRLinc Control with Harmony Remote

Sunday, January 24th, 2010

So this was a challenge–I wanted to eliminate the X10 remote and disable X10 on my INSTEON switches for the home theater.  In doing so I wanted to use the INSTEON IRLinc to convert IR signals to INSTEON.  This would allow me complete control via my Logitech Harmony Remote.

I hooked up the IRLinc and paired up my devices to Scenes A/B and everything worked fine with the IRLinc credit card remote.  To get the Harmony setup I had to add custom commands for Scene A on/off (Screen Up/Down) and Scene B on/off (Wall Scones on/off).  These had to be learned on the Harmony using the IRLinc remote when I was done I quickly discovered control from the Harmony was very unreliable.  I toyed with this for a few days on and off and eventually got fed up and tossed it in a drawer to forget about.

Last night Ken was over and I decided to have two minds look at it :-P I knew it should work, and with a fresh pair of eyes we got it working.  We hooked it up and everything worked properly–I had previously added the INSTEON switches to the IRLinc’s scenes and it had retained those settings.  Testing it with the IRLinc’s credit card remote everything worked fine (as before) but with control via Harmony was very unreliable just as before.  We tried relearning the IR signals and that wasn’t getting us anywhere while sitting there staring at the screen we saw the “Custom” button on the IR Learn page in the Harmony software.  When we hit that we saw that all our learned commands had “Analyzed” next to them so we hit the new Learn Raw button that appeared once we hit the Custom button.  The learning process was a lot faster and we quickly updated the remote to test.  Success!  We learned that the Harmony doesn’t replicate IR codes it learns exactly.  By default the remote analyzes the IR signal and fixes any issues or interferance it encounters (sunlight in the room for example has IR light).  When the Harmony analyzed  the IRLinc’s signal it would clean the signal so much to the point that the IRLinc wasn’t able to respond because it wasn’t receiving the proper IR signal.  Hopefully this post helps others who have IRLinc’s in drawers from failed integration with Harmony remotes.

We mounted the IRLinc’s receiver on the front of my A/V receiver since I have no spare IR Emitters.  I don’t think I’ll even pickup another IR emitter for this since it’s always behind a closed door.

To get the Harmony setup I had to add custom commands for Scene A on/off (Screen Up/Down) and Scene B on/off (Wall Scones on/off).  These had to be learned via the Harmony for it to work and once learned they never worked properly.
  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part 6.6 (Power Problems)

Saturday, November 14th, 2009

I was out of outlets so and saw an APC A/V power conditioner for super cheap–it has 10 or 12 outlets.  While I was swapping out the old strip (6 outlets) for this one I cleaned up the cables some–yes this is much much better then before.  I’ve got 0 outlets to spare.  I may have to add a second duplex outlet on the wall to accommodate my IR to Insteon device, it has a pass-through plug but I don’t trust running much through it and it takes up an entire duplex outlet–due to the APC conditioner using a low profile plug….

Power Cables:

  • Power Bridge (Feeds PJ and TV)
  • Receiver
  • DVD Player
  • Blu-Ray Player
  • Cable Box
  • Wii
  • Xbox 360
  • 2 Wiimote Chargers
  • HDMI Splitter
  • IR Connecting Block
  • Harmony Remote Charger
  • Cordless Phone Charger
  • 2 Lamps

I know it needs more work, I plan to bundle up the speaker cables, but other then that there are only a couple of other things I can think of doing to improve this.  All the power cables are bundled near the back of the respective component already…

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part 6.5

Thursday, October 22nd, 2009

Just picked up a Blu-Ray player on sale @ Amazon (Panasonic DMP-BD60) and now not having an HDMI capable receiver is starting to suck.  Swapping cables between Xbox, Bluray and Cable for the PJ really blows.  Looking at some Onkyos but can’t make up my mind.   Having to take into account our Zone 2 audio (patio) makes it a bit more difficult.  The receivers I’m looking at have a limitation of only being able to send non-HDCP audio to Zone 2–therefore I will have to retain an older DVD player for this…going to be running out of room in the media cabinet quickly now.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Cheap Linux Router

Monday, September 14th, 2009

Just picked this up–
Ken found a pair on Craigslist for $50 each, no hdd’s but x2 2.6ghz dual core procs with 4gb of ram. (DDR2). Working great thus far will be my new Linux Router.
No drive sleds so the case is useless, can’t source them online for a reasonable price will transfer over into one of my 2U or 4U chassis.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part Six

Thursday, July 2nd, 2009

PJ Mounted now–
The mount sucks, some cheap junk from flea-bay, having mounted so many projectors in the past using real mounts (using peerless, chief and premier mounts) I should have known better then to use this crap.  It has a ball & socket so you can adjust XYZ, however they all adjust at the same time…mounts by real manufactures have separated the various  XYZ adjustments. I wont’ make the mistake of using a junk mount again…Took me some 15-20min to get it squared away and it’s still slightly off.  I made my own grommet out of some fire retardant nomex, mainly to stop attic debris from falling onto it, and also as a possible fire-stop.  This pic was taken after it had been mounted for awhile, ignore the dirtiness.

Controls–
Harmony 880 for IR, and temporarily using X10 remote for controlling Screen/Sconces.  Can’t wait to get the Insteon to IR stuff setup so I can chuck the X10 controls…

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part Five

Tuesday, June 30th, 2009

Prepared the INSTEON controls and PJ outlet for the attic.  Also mounted the relay board up in the attic and wired it all up.  Sconces are wired into this as well, programmed them so they ramp up/down.  Made a macro on my USB programmable INSTEON controller so whenever the screen goes up the Sconces ramp on, and when the screen goes down they ramp off.

TV is all wired up and center channel & sub RCA cabling is done.  TV wires look all gummy because the cheap electrical tape that wrapped around the plastic protecting all the connectors and binding the cables together left all the adhesive behind…and I pulled it off early so some insulation came in contact with it.  Will clean it up later on.

Clean speaker wire installs all done.  The mounts I used for the speakers suck–cheap plastic junk, no covers for the screws, ugly as hell… The cool part is I used a very handy tool from LSD (Labor Saving Devices) called a “Wet Noodle”  it’s a flexible bit of thin stiff tubing with a magnet on each end.  It comes with some ball chain attached to a split ring.  The way it works is from the attic you drill a hole through the top plate of the wall frame and drop the ball chain in the hole (split ring prevents the end from falling into the hole) and then drill a hole in the wall where you want to bring the wire out, and you retrieve it using by inserting the Wet Noodle and catching the ball chain on the magnetic tip affix your wire or poly and go back in the attic and pull the ball chain out and you got your wire through.  I was able to drill holes just a bit bigger then the gauge of the speaker wire and pull the speaker wire through using this tool/technique.  Well worth the 22 bucks, will definitely come in handy again.

IR connecting block installed and IR Receiver too.  Receiver went in the vaulted ceiling area since the screen being down would block it’s placement elsewhere.  Doing this again I wouldn’t use an inwall connecting block, it just added more wires traveling from the wall to the media cabinet, had I used the non-in wall version I would simply have a Cat5 cable coming across and that would be it.  This way I have 3 emitter cables traveling across, along with a power cable.

Wired in the HDMI and Component splitters to get output for both TV and PJ.  Super Cheap HDMI splitter, so far no issues.  Component picture really suffers on the PJ pretty sure I need to get a better VGA to component cable.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark