Category Archives: miscellaneous

Firefox: Enable logging

Hi,

in some cases it may be necessary to log the http traffic of your browser. For example

  • Web developing
  • Or for forensic purposes when you want in detail logged which site you are visiting or from which site you are moved to other sites…

Mozilla Firefox  has the ability to do that. This behaviour is controled by 2 environtment varibales
Continue reading Firefox: Enable logging →

Windows Media Player: Exporting or printing a Playlists

Hi,

a friend of mine wants to print the content of some Windows Media Player playlists , but there is no export or print option available.
I wrote him a small C# program which does the job :-). It uses the AxInterop.WMPLib COM Interface.
Continue reading Windows Media Player: Exporting or printing a Playlists →

Links: A list of virus scanner Live CDs

Hi,

if a virus infection was detected or is just assumed, the best way to found all of them, is to boot from a “Clean” medium to ensure no rootkit hide some importend details from the scanner.

There are a couple of Live CDs for this job.

Microsoft Defender Offline – It used a Windows PE. Has a graphical frontend

Avira Rescue System – Linux based with a graphical frontend

Live Scanner Kaspersky Lab – Linux based with a KDE based Desktop

Dr. Web Live CD – not tested yet

F-Secure Rescue CD – Linux LiveCD – text based

Bitdefender Rescue CD – Linux Live CD with a graphical LXDE Desktop
AVG Rescue CD – Also Linux based but with a menu driven text frontend

Panda Security LiveCD – Linux based and simple to use.

Use multiple of them to get the the best possible result to eliminate all infections!

Michael

Reset the print protection of a pdf document

Hi,

last week a customer had the problem that he lost a Word Document which he wants to print. Only a pdf of the document was available but in this file the print protection flag was set.

I used Ghostscript to reset the print protection.

Install Ghostscript and use this command line to write a new version of the pdf file which is printable


gswin.exe -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=d:\temp\OUTPUT.pdf -c .setpdfwrite -f D:\Temp\input.pdf

Michael

Script to get a list of computers connected to a Avocent KVM switch

Hello,

in his office, a customer have a few Avocent KVM switches to control some client computers in a remote room. He ask me about the possibility to get a list of all computers connected to these boxes, because he do not want to maintain any list by hand.

I research the documention but there is no (scripting) interface from which I could get such a list. SSH is only for connecting serial consoles, SNMP offers no OIDs for such a case.

Because of the costs, DSView isn’t a option. The only way seems to be to extracting the list by reading the Webfrontend HTML output. Let us do this 🙂

I wrote a script in powershell, at least version 2 is needed to handle selfsigned SSL certificates, which do the following:

  • Login to the Webfronted with https and SSL encryption by System.Net.HTTPWebRequest class to get the authentification cookie
  • Get the Device HTML  page by .NET class System.Net.Webclient and using Authentification cookie
  • Save HTML do a temporary file
  • Open the file with Internet Explorer
  • Get the URL to start a KVM session, computername and portnumber by  DOM

Script details

Define the User, Password, protocol and the devices:

# KVM User
[string]$sUser="Admin"
# KVM Password
[string]$sPassword="YourPassword"
# Protocol
[string]$sProtocol="https"
# Your Devices
[String[]]$aAvocentDevices=@("Console1.domain.local","Console2.domain.local")

Built HTTP POST text and disable SSL certificate warnings
Continue reading Script to get a list of computers connected to a Avocent KVM switch →