Posts

Showing posts from 2015

Using 'mutt' instead of 'mail' in Linux

With mutt instead of mail you would simply call echo "body" | mutt - s "subject" - a attachment0 attachment1 [...] -- my@email . com   Some old verison of linux doesn't support the 'mail' command for attaching files.  So this will be useful for sending mail with attachment on those servers.

How to enable remote desktop in cisco 5505/5506x Firewall

ASA version prior to 8.3 ciscoasa(config)# static (inside , outside) tcp interface 3389 192.168.1.10 3389 netmask 255.255.255.255 ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any any eq 3389 ciscoasa(config)# access-group OUTSIDE-IN in interface outside ASA version 8.3 and later ciscoasa(config)# object network RDP_static ciscoasa(config-network-object)# host 192.168.1.10 ciscoasa(config-network-object)# nat (inside , outside) static interface service tcp 3389 3389 ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any host 192.168.1.10 eq 3389 ciscoasa(config)# access-group OUTSIDE-IN in interface outside NOTE: Notice that in version 8.3 we reference the Real IP address (192.168.1.10) in the access-list and not the mapped IP

How to check whether a hostname is present in /root/.ssh/known_hosts file...

To check whether a particular hostname or servername is present in the known_hosts file, use the following command. #ssh-keygen -H -F hostname thats it.
Accepting a self-signed certificate Issue : When connecting over a secured connection, self-signed certificates may trigger an "Untrusted Connection" error. Resolution : Each browser handles security differently. In Firefox, you can create a permanent exception. In Chrome or Internet Explorer you must install the certificate in your trusted certificates store. Both Chrome and Internet Explorer use the Trusted Root Certification Authorities store when verifying certificates. If you have performed the steps to install the certificate for either Internet Explorer or Chrome, you do not have to perform the same steps again to use either browser. Note :   You must close all instances of your Internet Explorer or Chrome and completely clear your cache. To create a permanent exception for Firefox:            Open a browser to your Virtualization Manager server using https. When the error occurs, expand I Understand the Risks. Click Add Exception . When prom

Reset Windows 7 admin Password

This post is for those who forget their administrator password for windows 7 OS 1.) Boot the pc to a usb live cd ( i use ubuntu) 2.) go to windows>system32> folder. Search for a file named Sethc.exe and rename it to Sethc_bkp.exe 3.) Copy the file named cmd.exe from the same directory system32 to an external folder(for example to desktop). 4.) Rename the copied file (here in desktop) from cmd.exe to Sethc.exe 5.) Copy and paste the renamed file Sethc.exe (from desktop) to the system32 folder. 6.)Restart PC and boot to windows normaly. 7.) When the login screen appears, click 5 times the "shift" key. A new cmd window will appear. 8.) type "net user username *"  without appostraphe on that command line. Here you need to replace "username" with the name administrator user account of your PC. for example if the administrator user name is "bucolic"  the command will be net user bucolic * 9.) click "enter" key and y