Recently

Tuesday, March 17, 2015

Advanced Linux Shell Commands/Tutorials

 


System:
Running kernel and system information:

# uname -a                                  # Get the kernel version (and BSD version)
# lsb_release -a                         # Full release info of any LSB distribution
# cat /etc/debian_version         # Get Debian version
Use /etc/DISTR-release with DISTR= lsb (Ubuntu) /etc/issue.
# uptime                                      # Show how long the system has been running + load
# hostname                                # system's host name
# hostname -i                            # Display the IP address of the host.
# man hier                                 # Description of the file system hierarchy
# last reboot                              # Show system reboot history

Hardware Informations:
Kernel detected hardware:

# dmesg                               # Detected hardware and boot messages
# watch 'dmesg | tail -50'    # Continuoly print dmesg output
#watch 'dmesg >> /var/log/dmesg.log | tail -1'  #Another way
# lsdev                                  # information about installed hardware
# dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8 # Read BIOS

# cat /proc/cpuinfo                               # CPU model
# cat /proc/meminfo                             # Hardware memory
# grep MemTotal /proc/meminfo       # Display the physical memory
# watch -n1 'cat /proc/interrupts'        # Watch changeable interrupts continuously
# free -m                                                # Used and free memory (-m for MB)
# cat /proc/devices                              # Configured devices
# lspci -tv                       # Show PCI devices
# lsusb -tv                      # Show USB devices
# lshal                            # Show a list of all devices with their properties
# dmidecode                # Show DMI/SMBIOS: hw info from the BIOS

Load, statistics and messages:
The following commands are useful to find out what is going on on the system.

# top                                                   # display and update the top cpu processes
# mpstat 1                                         # display processors related statistics
# vmstat 2                                         # display virtual memory statistics
# iostat 2                                           # display I/O statistics (2 s intervals)
# systat -vmstat 1                            # BSD summary of system statistics (1 s intervals)
# systat -tcp 1                                  # BSD tcp connections (try also -ip)
# systat -netstat 1                           # BSD active network connections
# systat -ifstat 1                               # BSD network traffic through active interfaces
# systat -iostat 1                              # BSD CPU and and disk throughput
# tail -n 500 /var/log/messages    # Last 500 kernel/syslog messages
# tail /var/log/warn                          # System warnings messages see syslog.conf

Users:

# id                                                                     # Show the active user id with login and group
# last                                                                  # Show last logins on the system
# who                                                                 # Show who is logged on the system
# groupadd admin                                           # Add group "admin" and user colin
# useradd -c "Colin Barschel" -g admin -m colin
# usermod -a -G                                               # Add existing user to group (Debian)
# userdel colin                                                  # Delete user colin
# pw groupmod admin -m newmembe r      # Add a new member to a group
# pw useradd colin -c "Colin Barschel" -g admin -m -s /bin/tcsh
# pw userdel colin; pw groupdel admin

Kernel modules:

# lsmod                                      # List all modules loaded in the kernel
# modprobe isdn                      # To load a module (here isdn)

Compile Kernel

# cd /usr/src/linux
# make mrproper                      # Clean everything, including config files
# make oldconfig                      # Reuse the old .config if existent
# make menuconfig                 # or xconfig (Qt) or gconfig (GTK)
# make                                       # Create a compressed kernel image
# make modules                      # Compile the modules
# make modules_install         # Install the modules
# make install                           # Install the kernel
# reboot

Repair grub:
So you broke grub? Boot from a live cd, [find your linux partition under /dev and use fdisk to find the linux partion] mount the linux partition, add /proc and /dev and use grub-install /dev/xyz. Suppose linux lies on /dev/sda4:

# mount /dev/sda6 /mnt                   # mount the linux partition on /mnt
# mount --bind /proc /mnt/proc       # mount the proc subsystem into /mnt
# mount --bind /dev /mnt/dev          # mount the devices into /mnt
# chroot /mnt                                      # change root to the linux partition
# grub-install /dev/sda                     # reinstall grub with your old settings

Listing and PIDs:
Each process has a unique number, the PID. A list of all running process is retrieved with ps.
# ps -auxefw                         # Extensive list of all running process
However more typical usage is with a pipe or with pgrep:


# ps axww | grep cron
  586  ??  Is     0:01.48 /usr/sbin/cron -s
# ps axjf                                     # All processes in a tree format
# ps aux | grep 'ss[h]'               # Find all ssh pids without the grep pid
# pgrep -l sshd                         # Find the PIDs of processes by (part of) name
# echo $$                                  # The PID of your shell
# fuser -va 22/tcp                     # List processes using port 22 (Linux)
# pmap PID                               # Memory map of process (hunt memory leaks) (Linux)
# fuser -va /home                     # List processes accessing the /home partition
# strace df                                  # Trace system calls and signals
# truss df                                    # same as above

Signals/Kill:
Terminate or send a signal with kill or killall.

# kill -s TERM 4712                  # same as kill -15 4712
# killall -1 httpd                          # Kill HUP processes by exact name
# pkill -9 http                              # Kill TERM processes by (part of) name
# pkill -TERM -u www              # Kill TERM processes owned by www
# fuser -k -TERM -m /home     # Kill every process accessing /home (to umount)

Important signals are:
1       HUP (hang up)
2       INT (interrupt)
3       QUIT (quit)
9       KILL (non-catchable, non-ignorable kill)
15     TERM (software termination signal)

Permissions:
Change permission and ownership with chmod and chown. The default umask can be changed for all users in /etc/profile for Linux. The default umask is usually 022. The umask is subtracted from 777, thus umask 022 results in a permission 0f 755.

1 --x execute                        # Mode 764 = exec/read/write | read/write | read
2 -w- write                          # For:       |--  Owner  --|   |- Group-|   |Oth|
4 r-- read
  ugo=a                              u=user, g=group, o=others, a=everyone
# chmod [OPTION] MODE[,MODE] FILE    # MODE is of the form [ugoa]*([-+=]([rwxXst]))
# chmod 640 /var/log/maillog                      # Restrict the log -rw-r-----
# chmod u=rw,g=r,o= /var/log/maillog       # Same as above
# chmod -R o-r /home/*                                # Recursive remove other readable for all users
# chmod u+s /path/to/prog                           # Set SUID bit on executable (know what you do!)
# find / -perm -u+s -print                               # Find all programs with the SUID bit
# chown user:group /path/to/file                  # Change the user and group ownership of a file
# chgrp group /path/to/file                             # Change the group ownership of a file
# chmod 640 `find ./ -type f -print`                # Change permissions to 640 for all files
# chmod 751 `find ./ -type d -print`               # Change permissions to 751 for all directories

Disk information:

# hdparm -I /dev/sda                 # information about the IDE/ATA disk (Linux)
# fdisk /dev/ad2                          # Display and manipulate the partition table
# smartctl -a /dev/ad2                # Display the disk SMART info

System mount points/Disk usage

# mount | column -t                   # Show mounted file-systems on the system
# df                                              # display free disk space and mounted devices
# cat /proc/partitions                # Show all registered partitions

# du -sh *                                 # Directory sizes as listing
# du -csh                                 # Total directory size of the current directory
# du -ks * | sort -n -r              # Sort everything by size in kilobytes

Who has which files opened:
This is useful to find out which file is blocking a partition which has to be unmounted and gives a typical error of:

# umount /home/
umount: unmount of /home             # umount impossible because a file is locking home
   failed: Device busy
# ls -lSr                                               # Show files, biggest last

Find opened files on a mount point with fuser or lsof:

# fuser -m /home                     # List processes accessing /home
# lsof /home

COMMAND   PID    USER   FD   TYPE DEVICE    SIZE     NODE NAME
tcsh    29029 eedcoba  cwd    DIR   0,18   12288  1048587 /home/cipi (cipi:/home)
lsof    29140 eedcoba  cwd    DIR   0,18   12288  1048587 /home/cipi (cipi:/home)
About an application:

ps ax | grep Xorg | awk '{print $1}'
3324
# lsof -p 3324
COMMAND   PID    USER   FD   TYPE DEVICE    SIZE    NODE NAME
Xorg    3324 root    0w   REG        8,6   56296      12492 /var/log/Xorg.0.log
About a single file:
# lsof /var/log/Xorg.0.log
COMMAND  PID USER   FD   TYPE DEVICE  SIZE  NODE NAME
Xorg    3324 root    0w   REG    8,6 56296 12492 /var/log/Xorg.0.log

Mount/remount a file system
For example the cdrom. If listed in /etc/fstab:

# mount /cdrom
# mount -t auto /dev/cdrom /mnt/cdrom             # typical cdrom mount command
# mount /dev/hdc -t iso9660 -r /cdrom               # typical IDE
# mount /dev/scd0 -t iso9660 -r /cdrom             # typical SCSI cdrom
# mount /dev/sdc0 -t ntfs-3g /windows              # typical SCSI
Entry in /etc/fstab:
/dev/cdrom   /media/cdrom  subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec 0 0

Add swap on-the-fly
Suppose you need more swap (right now), say a 2GB file /swap2gb .

# dd if=/dev/zero of=/swap2gb bs=1024k count=2000
# mkswap /swap2gb                                            # create the swap area
# swapon /swap2gb                                             # activate the swap. It now in use
# swapoff /swap2gb                                             # when done deactivate the swap
# rm /swap2gb

Mount an SMB share
Suppose we want to access the SMB share myshare on the computer smbserver, the address as typed on a Windows PC is \\smbserver\myshare\. We mount on /mnt/smbshare. Warning> cifs wants an IP or DNS name, not a Windows name.

# smbclient -U user -I 192.168.16.229 -L //smbshare/        # List the shares
# mount -t smbfs -o username=winuser //smbserver/myshare /mnt/smbshare
# mount -t cifs -o username=winuser,password=winpwd //192.168.16.229/myshare /mnt/share
Additionally with the package mount.cifs it is possible to store the credentials in a file, for example /home/user/.smb:
username=winuser
password=winpwd
And mount as follow:
# mount -t cifs -o credentials=/home/user/.smb //192.168.16.229/myshare /mnt/smbshare

Mount an image:

# mount -t iso9660 -o loop file.iso /mnt                # Mount a CD image
# mount -t ext3 -o loop file.img /mnt                     # Mount an image with ext3 fs

Create a memory file system:
A memory based file system is very fast for heavy IO application. How to create a 64 MB partition mounted on /memdisk:

# mount -t tmpfs -osize=64m tmpfs /memdisk

Disk performance:
Read and write a 1 GB file on partition ad4s3c (/home)

# time dd if=/dev/ad4s3c of=/dev/null bs=1024k count=1000
# time dd if=/dev/zero bs=1024k count=1000 of=/home/1Gb.file
# hdparm -tT /dev/hda      # Linux only

Networking:

# ethtool eth0                                           # Show the ethernet status (replaces mii-diag)
# ethtool -s eth0 speed 100 duplex full # Force 100Mbit Full duplex
# ethtool -s eth0 autoneg off # Disable auto negotiation
# ethtool -p eth1                                      # Blink the ethernet led - very useful when supported
# ip link show                                           # Display all interfaces on Linux (similar to ifconfig)
# ip link set eth0 up                                # Bring device up (or down). Same as "ifconfig eth0 up"
# ip addr show                                        # Display all IP addresses on Linux (similar to ifconfig)
# ip neigh show                                      # Similar to arp -a

Ports in use:
Listening open ports:

# netstat -an | grep LISTEN
# lsof -i                                         # List all Internet connections
# socklist                                     # Display list of open sockets
# netstat -anp --udp --tcp | grep LISTEN    
# netstat -tup                              # List active connections to/from system
# netstat -tupl                             # List listening ports from system

Firewall
Check if a firewall is running (typical configuration only):

# iptables -L -n -v                                 # For status Open the iptables firewall
# iptables -P INPUT       ACCEPT     # Open everything
# iptables -P FORWARD     ACCEPT
# iptables -P OUTPUT      ACCEPT
# iptables -Z                                         # Zero the packet and byte counters in all chains
# iptables -F                                         # Flush all chains
# iptables -X                                         # Delete all chains

IP Forward for routing
Check and then enable IP forward with :
# cat /proc/sys/net/ipv4/ip_forward  # Check IP forward 0=off, 1=on
# echo 1 > /proc/sys/net/ipv4/ip_forward
or edit /etc/sysctl.conf with:
net.ipv4.ip_forward = 1

Network Address Translation

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE    # to activate NAT
# iptables -t nat -A PREROUTING -p tcp -d 78.31.70.238 --dport 20022 -j DNAT \
--to 192.168.16.44:22           # Port forward 20022 to internal IP port ssh
# iptables -t nat -A PREROUTING -p tcp -d 78.31.70.238 --dport 993:995 -j DNAT \
--to 192.168.16.254:993-995     # Port forward of range 993-995
# ip route flush cache
# iptables -L -t nat            # Check NAT status

DNS
The DNS entries are valid for all interfaces and are stored in /etc/resolv.conf. The domain to which the host belongs is also stored in this file. A minimal configuration is:

nameserver 66.63.128.84
search cipi.net intern.lab
domain cipi.org
Check the system domain name with:
# hostname -d                # Same as dnsdomainname

DHCP

# dhcpcd -n eth0           # Trigger a renew (does not always work)
# dhcpcd -k eth0           # release and shutdown
The lease with the full information is stored in:
/var/lib/dhcpcd/dhcpcd-eth0.info

tar
The command tar (tape archive) creates and extracts archives of file and directories. The archive .tar is uncompressed, a compressed archive has the extension .tgz or .tar.gz (zip) or .tbz (bzip2). Do not use absolute path when creating an archive, you probably want to unpack it somewhere else. Some typical commands are:

Create

# cd /
# tar -cf home.tar home/         # archive the whole /home directory (c for create)
# tar -czf home.tgz home/      # same with zip compression
# tar -cjf home.tbz home/       # same with bzip2 compression
Only include one (or two) directories from a tree, but keep the relative structure. For example archive /usr/local/etc and /usr/local/www and the first directory in the archive should be local/.
# tar -C /usr -czf local.tgz local/etc local/www
# tar -C /usr -xzf local.tgz      # To untar the local dir into /usr
# cd /usr; tar -xzf local.tgz     # Is the same as above

Extract

# tar -tzf home.tgz               # look inside the archive without extracting (list)
# tar -xf home.tar                # extract the archive here (x for extract)
# tar -xzf home.tgz             # same with zip compression (-xjf for bzip2 compression)
                                # remove leading path gallery2 and extract into gallery
# tar --strip-components 1 -zxvf gallery2.tgz -C gallery/
# tar -xjf home.tbz home/colin/file.txt    # Restore a single file

More advanced

# tar c dir/ | gzip | ssh user@remote 'dd of=dir.tgz' # arch dir/ and store remotely.
# tar cvf - `find . -print` > backup.tar                 # arch the current directory.
# tar -cf - -C /etc . | tar xpf - -C /backup/etc      # Copy directories
# tar -cf - -C /etc . | ssh user@remote tar xpf - -C /backup/etc      # Remote copy.
# tar -czf home.tgz --exclude '*.o' --exclude 'tmp/' home/

Find

Some important options:
-x (on BSD) -xdev (on Linux)       Stay on the same file system (dev in fstab).
-exec cmd {} \;       Execute the command and replace {} with the full path
-iname       Like -name but is case insensitive
-ls       Display information about the file (like ls -la)
-size n       n is +-n (k M G T P)
-cmin n       File's status was last changed n minutes ago.
# find . -type f ! -perm -444        # Find files not readable by all
# find . -type d ! -perm -111        # Find dirs not accessible by all
# find /home/user/ -cmin 10 -print   # Files created or modified in the last 10 min.
# find . -name '*.[ch]' | xargs grep -E 'expr' # Search 'expr' in this dir and below.
# find / -name "*.core" | xargs rm   # Find core dumps and delete them (also try core.*)
# find / -name "*.core" -print -exec rm {} \;  # Other syntax
# Find images and create an archive, iname is not case sensitive. -r for append
# find . \( -iname "*.png" -o -iname "*.jpg" \) -print -exec tar -rf images.tar {} \;
# find . -type f -name "*.txt" ! -name README.txt -print  # Exclude README.txt files
# find /var/ -size +10M -exec ls -lh {} \;     # Find large files > 10 MB
# find /var/ -size +10M -ls           # This is simpler
# find . -size +10M -size -50M -print
# find /usr/ports/ -name work -type d -print -exec rm -rf {} \;  # Clean the ports
# Find files with SUID; those file are vulnerable and must be kept secure
# find / -type f -user root -perm -4000 -exec ls -l {} \;

Miscellaneous

# which command                      # Show full path name of command
# time command                         # See how long a command takes to execute
# time cat                                     # Use time as stopwatch. Ctrl-c to stop
# set | grep $USER                    # List the current environment
# cal -3                                         # Display a three month calendar
# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
# date 10022155                       # Set date and time
# whatis grep                              # Display a short info on the command or word
# whereis java                            # Search path and standard directories for word
# setenv varname value           # Set env. variable varname to value (csh/tcsh)
# export varname="value"        # set env. variable varname to value (sh/ksh/bash)
# pwd                                # Print working directory
# mkdir -p /path/to/dir                 # no error if existing, make parent dirs as needed
# mkdir -p project/{bin,src,obj,doc/{html,man,pdf},debug/some/more/dirs}
# rmdir /path/to/dir                     # Remove directory
# rm -rf /path/to/dir                     # Remove directory and its content (force)
# rm -- -badchar.txt                    # Remove file whitch starts with a dash (-)
# cp -la /dir1 /dir2                       # Archive and hard link files instead of copy
# cp -lpR /dir1 /dir2                    #
# cp unixtoolbox.xhtml{,.bak}  # Short way to copy the file with a new extension
# mv /dir1 /dir2                           # Rename a directory
# ls -1                                           # list one file per line
# history | tail -50                       # Display the last 50 used commands
# cd -                                            # cd to previous ($OLDPWD) directory


Add/Remove software
Debian/Ubuntu/Mint

# apt-get update                     # First update the package lists
# apt-get install emacs          # Install the package emacs
# dpkg --remove emacs        # Remove the package emacs
# dpkg -S file                           # find what package a file belongs to




Tags: Simple and advanced Shell tutorial for advances and newbie users.

Thursday, March 12, 2015

Unhide Files Hidden by Malware

Through the File's or Folder's Properties Page
1.To Hide a File or Folder
A) Right click on the file or folder, and click on Properties.

B) Check the Hidden box, and click on OK. (see screenshots below)
Name:  File1.jpg
Views: 76734
Size:  101.8 KB

Name:  Folder1.jpg
Views: 80667
Size:  88.4 KB
C) If this is for a folder and it has a subfolder or file in it, then you will also need to select (dot) to only hide the folder or to hide the folder and all of it's subfolders and files in it. Click on OK. (see screenshot below)
Name:  Folder2.jpg
Views: 76217
Size:  65.8 KB
D) In Folder Options, make sure that Don't Show hidden files, folders, and drives is selected (dotted).
3. To Unhide a File or Folder
A) Open Folder Options, select (dot) Show hidden files, folders, and drives, and click on OK. (see screenshot below)
NOTE: This way you will be able to see the hidden file or folder to be able to unhide it.
Name:  Folder_Options-1.jpg
Views: 76841
Size:  140.5 KB
B) Right click on the file or folder, and click on Properties.

C) Uncheck the Hidden box and click on OK. (see screenshots below step 2B)

D) If this is for a folder and it has a subfolder or file in it, then you will also need to select (dot) to only unhide the folder or to unhide the folder and all of it's subfolders and files in it. Click on OK. (see screenshot below step 2C)

E) In Folder Options, select (dot) Don't Show hidden files, folders, and drives, and click on OK. (see screenshot below step 3A)



OPTION TWO
Through the Command Prompt

Note   Note
This will show you how to hide or unhide a file or folder using the ATTRIB command.

Name:  About_ATTRIB.jpg
Views: 83781
Size:  132.4 KB

While you can run this command in a non-elevated or elevated command prompt, you would get the best results using a elevated command prompt.
1. Open a elevated command prompt, then do either step 2, 3, 4, 5, 6, 7, or 8 below for what you would like to do.

2. To Hide a specific File
A) Open Folder Options and uncheck the Hide extensions for known file types option and click on OK. (see screenshot below)
NOTE: This way you will be able to see the file extension in your file's name to use in the command below.
Name:  Folder_Options.jpg
Views: 77130
Size:  138.0 KB
B) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of File with extension within quotes below with your files's full path and name with the extension included within quotes instead.

Code:
ATTRIB +H "Full Path of File with extension"
NOTE: For example, if I wanted to hide a text file named File with the file extension .txt on my desktop, I would type this command below.

Code:
ATTRIB +H "C:\Users\UserName\Desktop\File.txt"
Name:  Attrib_Hide_File.jpg
Views: 77101
Size:  57.1 KB
C) In Folder Options, make sure that Don't Show hidden files, folders, and drives is selected (dotted).

D) The file should now be hidden. Go to step 7.
4. To Unhide a specific File
A) Open Folder Options and uncheck the Hide extensions for known file types option and click on OK. (see screenshot below step 3A)
NOTE: This way you will be able to see the file extension in your file's name to use in the command below.

B) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of File with extension within quotes below with your files's full path and name with the extension included within quotes instead.

Code:
ATTRIB -H "Full Path of File with extension"
NOTE: For example, if I wanted to unhide a hidden text file named File with the file extension .txt on my desktop, I would type this command below.

Code:
ATTRIB -H "C:\Users\UserName\Desktop\File.txt"
Name:  Attrib_Unhide_File.jpg
Views: 76151
Size:  54.6 KB
C) The file should now be unhidden. Go to step 7.
5. To Hide a specific Folder
A) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of Folder within quotes below with your folder's full path within quotes instead.

Code:
ATTRIB +H "Full Path of Folder" /S /D
NOTE: For example, if I wanted to hide a folder named Folder on my desktop, I would type this command below.

Code:
ATTRIB +H "C:\Users\UserName\Desktop\Folder" /S /D
Name:  Attrib_Hide_Folder.jpg
Views: 76172
Size:  56.3 KB
B) In Folder Options, make sure that Don't Show hidden files, folders, and drives is selected (dotted).

C) The folder should now be hidden. Go to step 7.
6. To Unhide a specific Folder
A) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of Folder within quotes below with your folder's full path within quotes instead.

Code:
ATTRIB -H "Full Path of Folder" /S /D
NOTE: For example, if I wanted to unhide a hidden folder named Folder on my desktop, I would type this command below.

Code:
ATTRIB -H "C:\Users\UserName\Desktop\Folder" /S /D
Name:  Attrib_Unhide_Folder.jpg
Views: 76659
Size:  56.5 KB
B) The folder should now be unhidden.
7. To Hide a Folder and all Contents in the Folder
NOTE: This will hide the selected folder along with all subfolders and files inside this folder.
A) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of Folder within quotes below with your folder's full path within quotes instead.

Code:
ATTRIB +H "Full Path of Folder\*" /S /D
NOTE: For example, if I wanted to hide a folder named Folder on my desktop along with all of it's contents, I would type this command below.

Code:
ATTRIB +H "C:\Users\UserName\Desktop\Folder\*" /S /D
Name:  Attrib_Hide_Folder.jpg
Views: 76172
Size:  56.3 KB
B) In Folder Options, make sure that Don't Show hidden files, folders, and drives is selected (dotted).

C) The folder should now be hidden. Go to step 7.
8. To Unhide a Folder and all Contents in the Folder
NOTE: This will unhide the selected folder along with all subfolders and files inside this folder.
A) In the command prompt, type the command below and press enter.
NOTE: Substitute Full Path of Folder within quotes below with your folder's full path within quotes instead.
Code:
ATTRIB -H "Full Path of Folder\*" /S /D
NOTE: For example, if I wanted to unhide a hidden folder named Folder on my desktop and all of it's contents, I would type this command below.

Code:
ATTRIB -H "C:\Users\UserName\Desktop\Folder\*" /S /D
Name:  Attrib_Unhide_Folder.jpg
Views: 76659
Size:  56.5 KB
B) The folder should now be unhidden.
9. When done, close the command prompt.

Or

Try to kill first the Autorun file.
Follow the steps below to do that:



Step 1:

Click on the below link and download the file "AutorunExterminator"
http://en.kioskea.net/download/download-11613-autorun-exterminator

Extract it --> Double-click on "AutorunExterminator" --> Plug your External

hard drive now.
This will remove the autorun.inf files from your External hard drive and also from
the drives.

Step 2:

Click on "Start" -->Run --> type cmd and click on OK.
Here I assume your External hard drive as G:
Enter this command.

attrib -h -r -s /s /d g:\*.*

You can copy the above command --> Right-click in the Command Prompt and
paste it.

Note : Replace the letter g with your External hard drive letter.

Now check for your files in External Drive.

Step 3:

After that, download the Malwarebytes' Anti-Malware from the below link
http://en.kioskea.net/download/download-105-malwarebytes-anti-malware

Update it --> Perform "Full Scan"
Note : Default selected option is "Quick Scan".


Good Luck.

Enable Local Administrator Account For Windows 8.1 In WorkGroup Mode

Previously, I posted about how to track user activities for Windows 8.1 in WorkGroup mode. Today, I came to know that the Local Administrator account is disabled by default, of course in WorkGroup mode. The settings made in WorkGroup mode are different one than those of Active Directory Domain. So, the procedure to enable built-in administrator account requires a different approach.
An administrator account is the at the hierarchy to manage all the activities for a system. Since the local administrator account is disabled by default, so in order to enable it, we need user who is the part of default administrator group. He can easily enable built-in administrator account using the steps illustrated below:

Activate Administrator Account For Windows 8.1 In WorkGroup Mode

1. Press Windows Key + R combination, type put lusrmgr.msc in Run dialog box and hit Enter to open the Local Users and Groups snap-in.
2. In the Local Users and Groups window, click Users from the left pane, then right-click the Administrator in the center pane. Select Properties.
Enable-Local-Administrator-Account-For-Windows-8.1-In-WorkGroup-Mode
3. In the Administrator Properties window, uncheck the option Account is disabled. Click Apply followed by OK.

Enable-Local-Administrator-Account-For-Windows-8.1-In-WorkGroup-Mode-1
4. Again right-click on Administrator and select Set Password in following window:
Enable-Local-Administrator-Account-For-Windows-8.1-In-WorkGroup-Mode-2
5. Now click Proceed in the following window:
Enable-Local-Administrator-Account-For-Windows-8.1-In-WorkGroup-Mode-3
6. Finally, input a strong password in the following window. Click OK.
Enable-Local-Administrator-Account-For-Windows-8.1-In-WorkGroup-Mode-4
In this way, the built-in administrator account is bought out into action. You should notify the administrator about the change you’ve made to the system. This procedure also works in Windows 8.
Hope you find the article useful!

Find the Lyrics to a Song without using Media Player or Web Browser


The lyrics are the most important aspect of a song, and sometimes as music listeners, we would love to know the lyrics in order to sing along. Searching for any particular lyrics using Bing Lyrics is easy, but what if we could do it without ever having to open the web browser – or without using Windows Media Player? To find the lyrics of an MP3 music file without the need of a web browser and a media player, one needs to download a neat little program called Lyrics Finder.

Find the Lyrics to a Song

song-lyrics-finder
Once you have downloaded and installed Lyrics Finder on your Windows PC, it is practically smooth sailing from this point.
Open Lyrics Finder and press the “Add File” button at the top left corner of the program, or “Add Folder” to add a whole album. Lyrics Finder will connect to the Internet and download all the lyrics of every song as long as they are available.
When lyrics have been found, each song will have a green circle attached at the left. Click on the songs on the left and watch as the lyrics appear in the box on the right. The program also allows for the playing of songs while the lyrics are available, which means Lyrics Finder can be used for karaoke purposes.
Our main gripe with Lyrics Finder is the fact that while adding songs is an easy task, deleting them is impossible at the moment. The only way to do it is to restart the program, but that is not good enough because it means that users will have to read songs they had no intention of deleting from the list.
We suspect the amount of lyrics available and the quality will all depend on the source Lyrics Finder is using. Unfortunately, we can’t tell, but so far we haven’t come across any issues where finding lyrics is concerned. Furthermore, the lyrics found are correct from our test.
At the end of the day though, Lyrics Finder is easy to use and does what it sets out to do perfectly, at least in our tests. We’ve tested several similar programs in the past, and while they are feature rich, they are not this easy to use. All that is needed in the next update is the ability to delete songs without having to close the program, and Lyrics Finder will no doubt achieve perfection.

Lyrics Finder software free download

Press the orange download button on this page to download the program, then open the set-up wizard and follow instructions to install it on your Windows PC.

Sunday, February 22, 2015

Add "Open with Notepad" to the Context Menu

Add "Open with Notepad" to the Context Menu for All Files

The default method of opening unknown files forces you to go through a list of known applications and is generally a pain to deal with. That’s why I like to have a context menu option for “Open with Notepad” so that I can quickly open up files without having to go through a lot of trouble.
This registry hack is nothing new, it’s been around forever… think of this as a refresher course. Also note that you can use this same technique to substitute any other application that you’d like by adjusting the path in the registry to point to the different editor.
image
Manual Registry Hack
Open regedit.exe through the start menu search or run box, and then browse down to the following key:
HKEY_CLASSES_ROOT\*\shell
image
Right-click on “shell” and choose to create a new key, calling it “Open with Notepad”. Create a new key below that one called “command”. Double-click on the (Default) value in the right-hand pane and enter in the following:
notepad.exe %1
The change should take effect immediately… just right-click on any file and you’ll see the next menu entry.
Download Registry Hack
Just download, extract and double-click on the OpenWithNotepad.reg file to enter the information into the registry. There’s also an uninstall script included.
Download OpenWithNotepad registry hack

Saturday, October 4, 2014

Useful RUN Commands For Windows

Hi Guys here goes the load.
  1.  Accessibility Controls - access.cpl
  2. Accessibility Wizard - accwiz
  3. Add Hardware Wizard - hdwwiz.cpl Add/Remove Programs - appwiz.cpl
  4. Administrative Tools - control admintools
  5. Automatic Updates - wuaucpl.cpl
  6. Bluetooth Transfer Wizard - fsquirt
  7. Calculator - calc Certificate Manager - certmgr.msc
  8. Character Map - charmap
  9. Check Disk Utility - chkdsk
  10. Clipboard Viewer - clipbrd Command Prompt - cmd
  11. Component Services - dcomcnfg
  12. Computer Management - compmgmt.msc
  13. Control Panel - control
  14.  Date and Time Properties - timedate.cpl
  15.  DDE Shares - ddeshare
  16. Device Manager - devmgmt.msc Direct X Troubleshooter - dxdiag
  17. Disk Cleanup Utility - cleanmgr
  18.  Disk Defragment - dfrg.msc Disk Management - diskmgmt.msc
  19. Disk Partition Manager - diskpart
  20. Display Properties - control desktop
  21. Display Properties - desk.cpl
  22. Dr. Watson System Troubleshooting Utility - drwtsn32
  23. Driver Verifier Utility - verifier
  24. Event Viewer - eventvwr.msc
  25. Files and Settings Transfer Tool - migwiz
  26. File Signature Verification Tool - sigverif
  27. Findfast - findfast.cpl
  28. Firefox - firefox
  29.  Folders Properties - control folders
  30.  Fonts - control fonts
  31.  Fonts Folder - fonts
  32.  Free Cell Card Game - freecell
  33. Game Controllers - joy.cpl
  34. Group Policy Editor (for xp professional) - gpedit.msc
  35. Hearts Card Game - mshearts
  36. Help and Support - helpctr
  37. HyperTerminal - hypertrm
  38. Iexpress Wizard - iexpress
  39.  Indexing Service - ciadv.msc
  40. Internet Connection Wizard - icwconn1
  41.  Internet Explorer - iexplore
  42. Internet Properties - inetcpl.cpl
  43. Keyboard Properties - control keyboard
  44. Local Security Settings - secpol.msc
  45. Local Users and Groups - lusrmgr.msc
  46. Logs You Out Of Windows - logoff
  47. Malicious Software Removal Tool - mrt
  48. Microsoft Chat - winchat
  49.  Microsoft Movie Maker - moviemk
  50.  Microsoft Paint - mspaint
  51.  Microsoft Syncronization Tool - mobsync
  52. Minesweeper Game - winmine
  53. Mouse Properties - control mouse
  54. Mouse Properties - main.cpl
  55. Netmeeting - conf
  56.  Network Connections - control netconnections
  57. Network Connections - ncpa.cpl
  58. Network Setup Wizard - netsetup.cpl
  59. Notepad - notepad
  60. Object Packager - packager
  61. ODBC Data Source Administrator - odbccp32.cpl
  62. On Screen Keyboard - osk
  63. Outlook Express - msimn
  64. Paint - pbrush
  65.  Password Properties - password.cpl
  66. Performance Monitor - perfmon.msc
  67. Performance Monitor - perfmon
  68. Phone and Modem Options - telephon.cpl
  69. Phone Dialer - dialer
  70.  Pinball Game - pinball
  71. Power Configuration - powercfg.cpl
  72.  Printers and Faxes - control printers
  73. Printers Folder - printers
  74. Regional Settings - intl.cpl
  75.  Registry Editor - regedit
  76.  Registry Editor - regedit32
  77. Remote Access Phonebook - rasphone
  78. Remote Desktop - mstsc
  79. Removable Storage - ntmsmgr.msc
  80. Removable Storage Operator Requests - ntmsoprq.msc
  81. Resultant Set of Policy (for xp professional) - rsop.msc
  82. Scanners and Cameras - sticpl.cpl
  83. Scheduled Tasks - control schedtasks
  84.  Security Center - wscui.cpl
  85. Services - services.msc
  86.  Shared Folders - fsmgmt.msc
  87.  Shuts Down Windows - shutdown
  88.  Sounds and Audio - mmsys.cpl
  89. Spider Solitare Card Game - spider
  90. SQL Client Configuration - cliconfg
  91.  System Configuration Editor - sysedit
  92. System Configuration Utility - msconfig
  93. System Information - msinfo32
  94.  System Properties - sysdm.cpl
  95. Task Manager - taskmgr
  96. .TCP Tester - tcptest
  97.  Telnet Client - telnet
  98.  User Account Management - nusrmgr.cpl
  99.  Utility Manager - utilman
  100. Windows Address Book - wab
  101. Windows Address Book Import Utility - wabmig
  102. Windows Explorer - explorer

Tuesday, September 2, 2014

Fix Major USB Problems



If you use Usb device then you should have faced various type of problems with your Usb stick or system settings. Most common cases are that 
  •  “Usb Device Not Recognized”,  
  • “Windows was unable to complete the format”,
  •  “The device cannot start[code 10]",
  •  "Problem ejecting the USB mass storage device".

1.Fix the problem “USB Device Not Recognize”

Sometimes when you plug in USB device in the port of  your PC/Laptop, you will get a serious error message “USB Device Not Recognize”. To fix this problem follow the steps.
  • Press Windows Key + R and type regedt32.exe.
  • Navigate to
HKEY_LOCAL_MachineSYSTEMCurrentControlSetServicesUsb.
  • If  the Usb key is not exist then create usb key underServices.
  • Under Usb key create a new DWORD value. Right click on the right pain of the Registry Editorand select New > DWORD value.
  • Rename this newly created DWORD value asDisableSelectiveSuspend.
  • Right click on DisableSelectiveSuspend and select “Modify”. Put 1 in “Value data” field.
  • Click on “OK”.
  • Reboot your computer.
You can also try a another way. Remove the power supply without Log Off your computer and restart the computer. This process seldom works.

2.Format USB Drive In Command Prompt

Generally we format USB drive by right clicking on the "Removable drive" in "My Computer" Window and selecting Format. But sometimes Windows can’t format it and gives a message Windows was unable to complete the format. By the following steps you can format your USB drive in command prompt and solve this problem.
  • Go to Start > Run and type cmd. Click on OK.
  • In the commend window type format G:/FS:FAT32. Here G:” is my USB drive letter (it may be different for you) andFAT32 is the file system.
  • Now insert the USB stick to your computer and hit "Enter".
Now the it will format your USB stick in Fat32 file system.

3.Fix the problem “Error code 10

Sometimes whenever you plug in USB drive in Windows XP computer it shows an error message like “This device cannot start (code 10) ”. To fix this error problem follow the steps listed below.
  • Go to “Start > Run” and type “Devmgmt.msc”. Click on “OK”.
  • The “Device Manager” dialog box will appear. Expand the “Universal Serial Bus Controllers”.
  • Right click on “USB Mass Storage Device” and select “Properties”.
  • Under the “General” tab you will see the “Device status” (Make sure your USB device is connected).
  • If the “Device status” says that “Error code 10” or something like that then you have to uninstall all of your USB Controller.
  • To uninstall the USB Controller right click on each of the USB Controller under “Universal Serial Bus Controllers” and click on “Uninstall”.
  • Restart your computer. The USB Controllers will be automatically re-installed.

4.Safely Remove Your USB Drive Without Any Error

Generally it happens with you so often that when you want to remove your USB by clicking on “Safely Remove Hardware” option in system tray it will give you an error message like “The Device Generic volume cannot be stopped right now. Try stopping the device later”. If you ignore this error message and remove USB drive, your USB drive may be damaged. To fix this problem you can use a free application “Unlocker”, which helps you to remove your USB drive safely.
  • Download Unlocker 1.8.7 and install it.
  • Right click on USB drive and select “Unlocker”.
  • An “Unlocker” window will appear. Click on “Unlock All” to stop all running program in USB drive.
Now safely remove USB drive by click on “Safely Remove Hardware” option from the system tray.


 

Monday, September 1, 2014

Increase your PC's speed easiest way

Hey guys,
So strikers i was looking up things and i found a way to speed up my computer it worked perfectly. It also gave me a boost on FPS and cleaned my RAM and now my computer is faster than ever. Ok


Step 1:
Start up Notepad
and paste the following ACCORDING TO UR RAM!

128 MB de Ram: Mystring=(80000000)
256 MB de Ram: Mystring=(160000000)
512 MB de Ram: Mystring=(320000000)
1 GB de Ram: Mystring=(655000000)
2 GB de Ram: Mystring=(1000000000)
3 GB de Ram: Mystring=(1655000000)
4 GB de Ram: Mystring=(2000000000)


 e.g

 Mystring=(80000000)




Step 2:

Save As -> In Desktop         and call it ram.vbe
I know .vbe isn't in the format file so keep it as .txt
Click Save as



Step 3:
Just double click the file on desktop and it will work

HOW TO ADD APPLICATION TO RIGHT CLICK ON DEKSTOP


Retrieve Deleted Facebook Messages,Photos and Videos

Today we will see How to Recover deleted facebook messages,Photos and Videos and much more on facebook.
Basically its a Facebook Feature which not many people are aware of and hence i will be writing this tutorial to let you guys know about this amazing feature/Trick that Facebook Provides.
Retrieve Deleted Facebook Messages
Many a times We Delete Messages,Photos or Vidoes from our profile which is not intentional but once we do , we can not undo it. and its gone forever.
But wait, There is a saying: Nothing is Lost, until MOM can’t find it, Likewise in this case even if you delete anything from your facebook account, you can get it back. Facebook have all your data in their archive which you can download too.

Retrieve Deleted Facebook Messages,Photos and Videos

Follow the Below simple steps to Know how you can get back and have access to your deleted messages, photos,Videos and all other data of your facebook profile.
Step 1: First of all,You will have to Click here to open Facebook General account Settings.
Step 2: Once you open your general settings, you will see Download a Copy of your Facebook Data, So click on it to.
Step 3: On the Next page you will see a Download Archive Button, Click on it and you will be prompt to enter your Password to Continue, This is a Security Step by Facebook.
Step 4: After entering your Facebook Password, Click on Submit, On the next screen you will be shown that the download link for your data will be sent to your email id which you used to create your facebook account.
Step 5: Wait for Few Minutes, check your mail. You will see a mail from facebook in your Inbox with Downloading link ready for you to download all your data.
Retrieve Deleted Messages,photos and videos on facebook
Step 6: Now After downloading the file. Unzip it and open the folder where you will find your messages, photos, vidoes. Pokes, Friend list etc.
The Files will be in .html format so you will have to double click on the file and select your Favourite Browser to open the file, the File will open up in your browser where you will have access to all your data..

I Hope this guide will help someone or other who didn’t already know that you can actually Retrieve Deleted Facebook Messages,Photos and Videos. Don’t forget to Share it with your friends if you like it and you may even Subscribe for New post, to get directly in your mail inbox.