Posted by: nowiremember | February 6, 2014

Unable to start ASDM version 1.5(50)

Did you recently upgrade to Java 7 and now you cannot launch ASDM to log into your PIX or ASA appliance ? ASDM is incompatible with java 7. You have to install Java 6, but you don’t want to take over your system (i.e. still use Java 7 for in-browser use, etc…) ? Easy to fix:

– Install Java 6 JRE

– Copy the “jre” folder to somewhere else (i.e. C:\JRE)

– Edit the ASDM launch shortcut from:

C:\Windows\SysWOW64\javaw.exe -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher

to

C:\jre6\bin\javaw.exe -Xms64m -Xmx512m -Dsun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar com.cisco.launcher.Launcher

– Now you can uninstall Java 6 from your system. The copy in C:\JRE will never be used for anything but when using ASDM.

Advertisements
Posted by: nowiremember | March 17, 2011

SMTP server commands

Need to send mail from the command line or confirm that an SMTP server works. Just telnet to your favorite SMTP server on port 25 and enter these commands:






























































SMTP Command What It Does Supported
HELO (Hello) Identify the SMTP sender to the SMTP
receiver.
Yes
MAIL (Mail) Start an e-mail transaction to deliver the
e-mail to one or more recipients.
Yes
RCPT (Recipient) Identify an individual recipient of e-mail. Yes
DATA (Data) Consider the lines following the command to be
e-mail from the sender.
Yes
SEND (Send) Deliver e-mail to one or more work stations.
SOML (Send or mail) Deliver e-mail to one or more work stations or
recipients if the user is not active.

SAML (Send and mail) Deliver e-mail to one or more work stations and
recipients if the user is not active.

RSET (Reset) End the current e-mail transaction. Yes
VRFY (Verify) Ask the receiver to confirm that a user has been
identified.
Yes
EXPN (Expand) Ask the receiver to confirm that a mailing list
has been identified.

HELP (Help) Ask the receiver to send helpful information to
the sender.
Yes
NOOP (Noop) Ask the receiver to send a valid reply (but
specify no other action).
Yes
QUIT (Quit) Ask the receiver to send a valid reply, and then
close the transmission channel.
Yes
TURN (Turn) Ask the receiver to send a valid reply and then
become the SMTP sender, or else ask the receiver to send a refusal reply
and remain the SMTP receiver.

Posted by: nowiremember | March 17, 2011

POP3 Server Commands

Stuck with just a shell access and need to check your mail ?

Just telnet your favorite POP3 server and use these commands

Command Responses Examples
USER name +OK name is welcome here
-ERR never heard of name
USER David
+OK Please enter a password
PASS string +OK maildrop locked and ready
-ERR invalid password
-ERR
unable to lock maildrop
PASS test
+OK valid logon
QUIT +OK +OK Server closing connection
STAT +OK nn mm STAT
+OK 2 320
LIST [msg] +OK scan listing follows
-ERR no such message
LIST
+OK 2 messages (320 octets)
1 120
2 200
… 

LIST 2
+OK 2 200

RETR msg +OK message follows
-ERR no such message
RETR 1
+OK 120 octets
< the POP3 server sends the entire
message here >
DELE msg +OK message deleted
-ERR no such message
DELE 2
+OK message deleted
NOOP +OK no transaction NOOP
+OK
LAST +OK nn LAST
+OK 2
RSET +OK RSET
+OK maildrop has 2 messages (320 octets)
Additional Commands
TOP msg nn +OK top of msg
-ERR
TOP 1 10
+OK
< first 10 lines of the header >
RPOP user +OK
-ERR
RPOP david
+OK enter password

The procedure to fix this issue is almost similar to the one described for fixing it on Windows XP, except for one extra step. Here’s the step-by-step process :

1> Click on Start Menu –> Go to Run Command box –> Type regedit –> This opens the registry Editor.

2> Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing

3> Delete all the keys under MSLicensing : both HardwareID and Store keys and their subkeys. If you are not sure how to delete the key and its subkeys, just rename them as follows : HardwareID to HardwareID-temp and Store to Store-temp.

4> Reboot the system.

5> After rebooting (ensure you are logged in as administrator), click on ‘Start‘ menu–> ‘Programs / All programs‘ –> Accessories

6> Right Click on Remote Desktop Connection and select the option “Run as Administrator“. This will recreate new Keys Hardware ID and Store under MSLicensing.

7> If you had renamed the keys and subkeys instead of deleting them, navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing and you’ll notice the two newly folders created – HardwareID and Store. Delete the old HardwareID-temp and Store-temp and close the registry editor.

This solves the problem and you will be able to connect to remote servers using Remote Desktop Connection.

Posted by: nowiremember | January 6, 2010

Visual Poxpro: Create a SPT and make it updatable

local llRemote, lcSQL, lcTable, ldDate
ldDate = date()-lnDays
llRemote = cursorgetprop(“SourceType”,”V_LoginHistoryOneUser”)=2
IF llRemote
lcTable = x3vtable(“V_LoginHistoryOneUser.ULH_PK”)
lcSQL = “SELECT ULH_PK ” + ;
“FROM ” + lcTable + space(1) + ;
“WHERE ULH_Out < ?ldDate OR ULH_In 0
IF reccount(“AutoPurge”) > 0
select AutoPurge
*
* turn the AutoPurge SPT cursor into an
* updateable view
*
cursorsetprop(“Buffering”,5)
cursorsetprop(“SendUpdates”,.t.)
cursorsetprop(“Keyfieldlist”,”ULH_PK”)
cursorsetprop(“Tables”,lcTable)
cursorsetprop(“UpdateNameList”,”ULH_PK ” + lcTable+”.ULH_PK”)
cursorsetprop(“UpdatableFieldList”,”ULH_PK”)
*
* delete ’em all
*
delete all
*
* we don’t care about the RETURN value from
* tableupdate() because if they don’t get
* deleted this time, no big deal
*
tableupdate(.t.,.t.,”AutoPurge”)
use in AutoPurge
ENDIF
ENDIF

Posted by: nowiremember | January 6, 2010

How can I extract the content of an MSI file?

A. Numerous utilities are available for extracting the content of an
MSI file. For example, you can use Msidb.

However,
another way is to perform an administrative installation, using the /a
switch and specifying a target folder for the extraction. For example:

msiexec /a mm26_enu.msi /qb TARGETDIR=d:\temp\mmextract

Posted by: nowiremember | January 6, 2010

Disable the PC Speaker beeps in 200x/XP/Vista

These commands assume administrative rights on the PC.

To temporarily disable the PC Speaker beep:
net stop beep

To disable the PC Speaker beep for good (until you undo this setting):
sc config beep start= disabled

So, if you are bothered right now by PC Speaker beeps and want them to go away even after a reboot, run net stop beep and then run sc config beep start= disabled.

The space between start= and disabled is required.

Posted by: nowiremember | January 6, 2010

How can I use Diskpart to partition a disk ?

A. As part of a deployment using Microsoft Windows Preinstallation
Environment (WinPE), you might need to partition the disk. The easiest
way to do this is to place into a file the following commands:
select disk 0
clean
create partition primary
select partition 1
assign letter=c:
active
format
exit

Then execute the commands using the Diskpart command with the the /s
parameter, as the following example shows:
diskpart /s partscript.txt
The command creates one partition with all the space; alternatively,
you can replace the “create partition primary” with “create partition
primary size=” (e.g. “create partition primary size=10000”)
to create a 10GB C: drive.

Posted by: nowiremember | January 6, 2010

System restore file types

Tip: Locate this XML file and choose the right backup feature
Windows XP’s System Restore feature is an excellent first step for replacing system files Registry entries that were corrupted by a virus or bad driver. It won’t back up and replace user files, such as Favorites, or data files with extensions like .jpg or .doc. Before you use System Restore to replace the existing registry with an old one, for example, you might want to determine exactly which file types System Restore will replace and which it will ignore.
Fortunately, Windows XP stores a file named FileList.xml in which it lists all the extensions System Restore recovers. You can view the list from any Windows XP computer as long as you log in to the PC as a user with access to the system files.

To view the System Restore extension list:
1. Open Windows Explorer and select Tools | Folder Options and select the View tab.
2. Deselect the Hide Protected Operating System Files (Recommend) check box (if selected) and click OK.
3. In the resulting Warning dialog box, click OK, and then click OK to close the Folder Options dialog box.
4. Navigate to %systemroot%\system32\restore (%systemroot% is often C:\Windows) and double-click the file FileList.xml.

Posted by: nowiremember | January 6, 2010

Get rid of MSN Messenger

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

Older Posts »

Categories