net use command basic (Network Session Hacking)

As a system administrator we always need to deal with following error.

(You do not have permission to access \ipaddress(hostname)Folder Contact your network administrator to request access.)

Example : The share server and client is in same domain so the share server is easily accessible from client, But there are two share folders “Inventory” and “Test” also two different domain user login account “AUSER” and “PUSER”, the AUSER have rights to access Inventory folder and PUSER can only access Test folder and we currently login with AUSER in the client system.

And other folders in same share location is accessible

The issue with share permissions which doesn’t allow the following domain user to access some folder in our case “Test” folder.
Let’s assume that you want to access the test folder, and the folder shared for PUSER user ID so the simple way to logoff current user and login with PUSER user to gain share access but the simple solution is to create share session.

So how we can access both folders in single domain ID?

  • First Solution is to provide the Test folder accessible by other user.
  • But if we want access the folders without changing share permission then?

Yes we can using windows “net use” Command.

net use the command is used to map network share folders and drive and create null and different users sessions with share server Wiki.

Firstly we need to check is there any session is established with the server using following command.
Command: net use (Hit Enter).
In Following windows we can see the Disconnected session for Test folder that we not able to access by AUSER

Let’s disconnect this session using following command.

Command: net use * /del (Hit Enter) this will prompt for confirmation Press Y and Hit Enter.

Now if we use Command: net use the following output will show.

(There are no Entries in the list.)

Now Start the Session Hacking.

Remember whenever you want to open the share folders of any share server first create session with the network system using following.
Command: net use \192.168.15.1 /u:DomainPuser (Hit Enter)

it will prompt for password type password and (Hit Enter).

Now open the network path using run

You can access Both folders.

&
See the Working Video Demonstration on following video.