post Category: Windows — KimW @ 8:36 — post Comments (0)

I have been playing with two windows cli’s lately the first is the NetSH command which ships with everything from Windows 2000 on up. Will write up a post once I am more comfortable with wmic.

The main purpose of the tool is for network administration using the command line. The first thing I thought of was “YAY a way to change my IP for where I am” and that was how the batch file started. Yes I do know there are better scripting languages around, but I went with something that should work on whatever Windows 2000+ operating system it gets dumped in.

In my quest to manage my NIC’s from a script I came across another excellent Windows administration tool DEVCON which is what I used to Dis/Enable the network cards.

Dis/Enabling Network Cards

Controlling the state of the network cards was really easy once I found out about DevCon. I just extracted the files in the DevCon zip file into a place in my Windows path statement, then you run the command with the Device ID like below. You will need to replace the ID (in italics) with the one for you network card. You can find this by opening Device Manager, open the properties of the device you want to control. The Device ID can be found under the Details tab. If anyone know how to get the Device ID using DevCon I am sure it will be appreciated in the comments.

devcon disable PCI\VEN_168C&DEV_0024&SUBSYS_0087106B&REV_01\4&139D1158&0&00E4

devcon enable PCI\VEN_168C&DEV_0024&SUBSYS_0087106B&REV_01\4&139D1158&0&00E4

Getting some IP information

To show the ip configuration for all active network devices use

NETSH INTERFACE IP SHOW CONFIG

To only show a network you can add “Local Area Connection” or “Wireless Network Connection” to the end of the command.

Set the IP on a Network

NETSH INTERFACE IP SET ADDRESS “Local Area Connection” STATIC 192.168.0.36 255.255.255.0

NETSH INTERFACE IP SET ADDRESS “Wireless Network Connection” STATIC 192.168.0.36 255.255.255.0

This command is fairly self explanatory, replace the IP with what ever is applicable. In my script I have an item that allows you to enter your own address which makes changing to a unusual (read seldom used) IP really easy. You can always add more items if you need them.

Of course you can also set the interface to use DHCP

NETSH INTERFACE IP SET ADDRESS “Local Area Connection” DHCP

NETSH INTERFACE IP SET ADDRESS “Wireless Network Connection” DHCP

To add DNS entries you can use

netsh interface ip set dns name=”Local Area Connection” 192.168.1.230

If you need more DNS entries you would use the following syntax

netsh interface ip add dns name=”Local Area Connection” 192.168.1.231

Links – Further Reading

Files

Creative Commons License
netsh scripting by Kim Alan White is licensed under a Creative Commons Attribution-Share Alike 2.5 South Africa License

post Category: General — KimW @ 9:46 — post Comments (0)

Something random today

post Category: Internet — KimW @ 16:45 — post Comments (0)

Been playing with Googles Friend connect on the blog today, added the wall gadget to posts as an alternative to the standard comment system, really hoping it works better.

Must say props to the Goog for making something simple and easy yet again, especially when compared to Facebook connect.

post Category: General — KimW @ 9:33 — post Comments (0)

Just finished upgrading to the latest and at least this time the theme stayed in tact, well done to the Wordpress devs for their hard work and Keith Dsouza for his Wordpress Automatic Upgrade.

p.s. Love the new admin Dashboard, things are so much easier to access

post Category: General, IT Security, Malware, Virus — KimW @ 14:37 — post Comments (0)

With the latest phishing scam going around, in South Africa at least, I have written up this post to get my opinion on keeping yourself safe from the scammer. The title of the phishing mail that prompted this is “CNN.com Daily Top 10” from “Daily Top 10”. It caught me at first until I relised this was received on the wrong account as I have a sub to a similar service. All the links in the mail go to a fake CNN site that says you need to download their video player, this video player contains a key logger than will send all keystrokes you make to another party that will probably use it for their own gain. I must say that every time I have tried the site linked it appeared to have been taken down.

There are a few important rules to using the internet, and they apply to many other forms of communication: There are a few important rules to using the internet:

  1. If it seems too good to be true, then it is most likely is!
  2. If you receive email asking for personal or financial information, delete it! They already have your information, and if they really need your information they will probably do it through more personal contact.
  3. Never give out your personal information to anyone, they can and possibly will use it to impersonate you. (more…)
post Category: General — KimW @ 12:28 — post Comments (1)

Okay, I stand corrected. Doing the benchmarks in a VM was a bad idea, but TwoFish encryption does impact disk use to an extent.

Disk Benchmark Result

Click to see full size

System Benchmark results

Click to see full size

post Category: IT Security, Operating Systems, Review, Windows, benchmark — KimW @ 17:26 — post Comments (2)

I will be redoing the TrueCrypt Benchmarks in the next week on a new PC that is standard spec where I work. It will be Core 2 based with 1GB RAM and SATA drives. I am running TrueCrypt’s FDC on my MacBook Pro under Bootcamp and I haven’t noticed any perceivable performance drop even playing games like COD4 and Company of Heroes.

EDIT: I have started the testing, but things at work just went waaayyyy wrong. These will be out as soon as I can get them done.

post Category: General — KimW @ 21:38 — post Comments (0)

A visual representation of what sizes used to be (20 years ago) compared to what they are today.

I really wish some days that I could get a 32ounce cuppa Jo here in “Sunny” South Africa

read more | digg story

post Category: General, IT Security, Review, Software, Windows — KimW @ 16:44 — post Comments (2)

I noticed something rather important missing in the realm of Full Disk Encryption, and that was benchmark data. The methodology I followed may be a bit unorthodox but would provide me with a consistant platform to test with.

I installed Windows XP SP2 on VMWare Fusion and applied all the patches available from our WSUS server. After installing the Benchmark application I created a SnapShot so that I could revert to the original install everytime with no deviations in installation, i.e. I was lazy.

I only encountered one major problem with running the Disk benchmark on PC Mark 04 when using TwoFish/RIPEMD160 encryption in TrueCrypt the entire benchmark would come up with the useless Windows Has Encountered a Problem message.

(more…)

post Category: Why Oh Why — KimW @ 18:33 — post Comments (0)

This is probably one of the strangest ideas I have ever used, try it yourself at http://www.revfad.com/flip.html

Here it is flipped

l????d?l?/?o??p?????????//:d??? ?? ?l?s?no? ?? ??? ‘p?sn ???? ???? ? s??p? ?s??u???s ??? ?o ?uo ?lq?qo?d s? s???

EDIT: OMFG, doesn’t work here. Oh well, I tried :-O