Breaking admin password of Windows 7,8 & 10.

How to Reset Windows 7, 8.1 & 10 Admin Password
Forgot Windows (7, 8.1 & 10) Administrator password and have no password reset disk, here is the step by step procedure to reset the Windows admin password. With this method you can easily reset Windows admin password from command prompt on your own without any expensive third party tool.
Windows has an inbuilt utility Utilman.exe for disabled people. This utility was developed for the people who are hard of sight or hearing. This utility allows users to configure the accessibility options such as Magnifier, High contrast theme, Narrator and On Screen Keyboard. In order to help the disabled people in login process, this utility is available at the login screen and does not require any authentication.
We can run this utility either by pressing Window + U keys combination or by clicking Ease of Access icon on login screen. This application runs under the system account which has the highest level of privilege.

This utility can be used as a back door to run other utility with system privilege without login. The cmd.exe utility provides command prompt. If anyhow we can disguise cmd.exe in Utilman.exe, we will get command prompt without login. Once command prompt is accessed, resetting a user password is a matter of few commands. Let’s learn it practically.
Disguising cmd.exe in Utilman.exe
There are several ways to disguise the cmd.exe utility in the utilman.exe. From them we will use the easiest and the safest method in this tutorial.
Boot the system with Windows installation disk (the disk which you used to install the Windows)and access the command prompt from the first screen of installation wizard by pressing Shift + F10 keys combination.

Windows 7

Locating Windows partition
In order to work with Windows files, we have to find the partition in which Windows is installed. If you know the Windows partition, skip this step.
If you do not know the partition in which Windows is installed, run following command.
X:\Sources> wmic logicaldisk get caption
This command scans attached hard disk and prints the drive letters of all partitions. Once we know the available partitions, we can find the Windows partition by listing the contents of each partition. To list the contents of each partition, we can use dir command.


Once Windows partition is figured out, run following commands.
WDL:\>move WDL:\Windows\System32\Utilman.exe WDL:\Windows\System32\Utilman.exe.bak
WDL:\>copy WDL:\Windows\System32\cmd.exe WDL:\Windows\System32\Utilman.exe
WDL:\>wpeutil reboot
WDL = Windows partition Drive Letter. Drive letter of the partition in which Windows is installed.
First command renames the original file Utilman.exe to Utilman.exe.bak. By this command, we actually took the backup of original file at the same location. Later we will use this backup copy to restore the original file back.
Second command makes the copy of cmd.exe with new name Utilman.exe.
Third command reboots the system.

While system reboots, either remove installation disk or select the hard disk as first boot device from boot menu to avoid running installation wizard again.
Accessing command prompt at login screen
Since Utilman.exe has been replaced with cmd.exe, clicking Ease of Access icon at login screen will bring the command prompt instead of Ease of Access utility.

Windows 10


Windows 8


Windows 7



Changing user account’s password
To change a user account’s password, following command is used
net user [username] *
Type a password for the user: [type new password]
Retype the password to confirm: [type new password again]
Replace [username] with the name of user whose account password you want to change. While typing password at command prompt, indicative asterisk [*] characters do not appear. It’s standard security feature which prevents users from guessing the length of password.
To reset the built-in administrator account’s password, use following command
net user administrator *
Type a password for the user: [type new password]
Retype the password to confirm: [type new password again]
Thats all in this tutorial.

VPN Configuration in windows 7

Windows 7

Currently only the following authentication mechanisms are supported:
  • User authentication: Active Directory (AD), RADIUS, or Meraki hosted authentication.
  • Machine authentication: Preshared keys (a.k.a., shared secret).
When using Meraki hosted authentication, VPN account/user name setting on client devices (e.g., PC or Mac) is the user email addressentered in the Dashboard.

Open Start Menu > Control Panel, click on Network and Internet, click on View network status and tasks.


In the Set up a connection or network pop-up window, choose Connect to a workplace (Set up a dial-up or VPN connection to your workplace).

Choose Use my Internet connection (VPN), in the Connect to a workspace dialog window.

In the Connect to a Workplace dialog box, enter:
  • Internet address: Enter the public IP address (found in Dashboard, under Security appliance > Monitor > Appliance status > Uplink ) for the MX appliance.
  • Destination name: Optionally enter a name for the VPN connection.
 
Choose "Don't connect now; just set it up so that I can connect later" option.

Click Next. In the next dialog window, enter the user credentials, and click Create.
 
 
Close the VPN connection wizard.
 
 
Go to Networking and Sharing Center and click Change Adapter Settings
 
 
In Network Connections window, right click on the new VPN connection settings and choose Properties
 
 
In the General tab, verify that the public IP address or the URL of the MX appliance.
 
In the Options tab, make sure "Include Windows logon domain" is unchecked
 
 
 
In the "Security" tab, choose "Layer 2 Tunneling Protocol with IPsec (L2TP/IPSec)".
Then, check "Unencrypted password (PAP)", and uncheck all other options.
 
Despite the name "Unencrypted PAP", the client's password is sent encrypted over an IPsec tunnel between the client device and the MX. The password is fully secure and never sent in clear text over either the WAN or the LAN.

Click on "Advanced settings".
In Advanced Properties dialog box, choose "Use preshared key for authentication" and enter the same key you used for the client VPN settings in the Dashboard. Note: if you are enabling client VPN for your employees, you will need to distribute this key.
 
Click OK.
 
 
Back at the Network Connections window, right-click on the VPN connection and click Connect

Verify your user name and click Connect.
 

How to find files in Linux


How to find files in linux
In Linux world everything is file. Linux system is managed through the several configuration files. Most of configuration files have associated documentation file or sample file. You can use sample files in exam. For RHCE exam you should be able to find the file. It is very common to forget the path of file during the exam. You may know the name of file but not path in that case use these commands to find the file.
·      find
·      locate
find
find command need two arguments file name and location. Syntax of find command is
#find [location] -name  [file name ]
·      find :- command
·      location :- where you want to search the file
·      -name :- option to specify the file name
·      file name :- name of file which you want to search
For example to search vsftpd.conf [FTP configuration file] file we would use following command
#find / -name vsftpd.conf
This would start search from top level root directory and list the found.
Searching from root directory should be your last resources. When you perform search form root directory find command scan the entire Linux system for the desired file. It is time consuming process. Use subdirectories whenever you know it. For example if we know that vsftpd.conf file is located in /etc directory we should use following command
#find /etc -name vsftpd.conf
find command accepts wildcard. Wildcard allows us to find a file even we know only few characters of file name. For example our desired file starts from vs and have .conf in the end but we do not know the middle characters. In this case we would find it in following way
#find /etc -name vs*.conf
Wildcards
*
Any number of alphanumeric characters
?
Single alphanumeric characters
Example of wildcards
Create a directory and move in it
Make some blank files for practice of find command. Use touch command to create files.
Find the files those start from f and end with .conf
It would returns with following error
find: paths must precede expression
find command expand the wild card while it parse. So if result contain single match it would return without any error. Like in above example we searched for vs*.conf and it returned with correct result. But if result contains more than one match it would return with find: paths must precede expression error. It is because what find parsing in this case will look like
#find /root/practices_of_find  -name file1.conf  filek.conf
how to solve find: paths must precede expression error
solution of find: paths must precede expression error is very simple. Put the file name in quotes. It would stop the shell (bash) expanding your wildcards.
Find the files which
·      have file in staring
·      later one character could be anything
·      ends with .conf
locate
find command is too time consuming specially in 2 hour RHCE exam. use locate command instead of find in exam. locate command use a database of installed files and directories. locate command database updated only once in a day.
Syntax of locate command is following
#locate [file name]
locate command search form its database so it does not require path.
Major drawback of locate command is that it update its database only once in a day. For example you can find demo.conf which we created in above example from find command but not from locate command.
database of locate command is updated from /etc/cron.daily/mlocate.cron script. We can manually run this script.
Now we can find demo.conf also from locate command
In exam
·      Update locate command database as soon as possible and use locate command whenever you need to search any file.

·      Use find command when locate does not works. Try to specify as much path as you remember when using find command.

Breaking admin password of Windows 7,8 & 10.

How to Reset Windows 7, 8.1 & 10 Admin Password Forgot Windows (7, 8.1 & 10) Administrator password and have no password reset d...