Proxy Server Lab Setup using Wingate (Part 2)

Digital era allows company to work securely and much efficiently. For doing so software’s and hardware’s play a major role. Today, it is nearly impossible to work without technology. And we all know that when something has advantages then it comes with disadvantages too. For instance you run a company or institute or even college. And you want to make sure that your employees or students are doing nothing but their work, so, how will know that? You can never know what someone is doing on their computer whether they are searching for inappropriate data or are playing a game or downloading a virus. Not even router helps us monitor all the devices connected to our network. so, in this case you can setup a Proxy Server.

First of all, connect both of your LAN cards to your computer. Once the LAN cards are connected, all you need to know is the IP address of second network which it will configure automatically.

Now, open WinGate to its Welcome panel by right clicking on its hidden icon on the task bar and selecting WinGate management option.

Now, go to your client computer, i.e the computer whose proxy you want to setup, and right click on network adaptor icon (it is present on the right-hand-side of the task bar) and open network sharing dailogue box.

Now, open the Local Area Connection. The following window will open.

Now to go properties and the following windows will open.

Now select Internet Protocol Version 4 (TCP/IPv4) and click on properties and the following windows will open. Select Use the following IP address automatically in the said window. Here, give IP address of the series ahead of the IP address of the second LAN card’s IP address along with subnet mask. In Default Gateway option, give the IP address of second LAN card.

Now, select Use the following DNS server automatically and give 8.8.8.8 as DNS address. Then click on OK.

Open web browser in your client computer, go to settings, open LAN settings and give the Defualt Gateway’s IP address. After doing so, all the traffic from the client’s computer will go through the proxy server and so; one will be able to monitor it.

Now that your web proxy is all setup go back to your proxy server (the computer in which you installed WinGate). Open WinGate, choose Network Connections from Control Panel. You will see two options.

Out of these two options right click on the option with the router’s IP (first LAN card’s IP) and select Edit Option. And then select an external untrusted network and click on OK as show:

After clicking on OK the settings will change and you will be able to differentiate between external and internal network as:

If you want that any time your client computer opens a browser then they should enter a username and password to access the internet then all you have to do is go to Users and Groups.

Right click on the screen and select create user option. There give name and description (optional)

After giving name click on Next, give Account name and select Account locked option and again click on Next.

Now it will ask for a password. Enter your password and click on Finish.

By doing so, It will show you the entire user you just created.

Author: Yashika Dhir is a passionate Researcher and Technical Writer at Hacking Articles. She is a hacking enthusiast.

Wifi Penetration Testing in Remote PC (Part 1)

People often say “news travel fast”. How? The answer is one word Wireless. Wireless network all around the world helps us to move faster in our life. It enables us to make more of already running time. But, today, wireless connections to the internet have become necessisity. And it is now very much possible to take advantage of this necessisity.

Wifi : It is technology that allows electronic devices to connect to internet in a given area. WiFi has a lot of advantages. Wireless networks are easy to set up and inexpensive. They’re also unobtrusive — unless you’re on the lookout for a place to watch streaming movies on your tablet, you may not even notice when you’re in a hotspot.A wireless network uses radio waves, just like cell phones, televisions and radios do. In fact, communication across a wireless network is a lot like two-way radio communication. Here’s what happens:

  1. A computer’s wireless adapter translates data into a radio signal and transmits it using an antenna.
  2. A wireless router receives the signal and decodes it. The router sends the information to the Internet using a physical, wired Ethernet connection.

The process also works in reverse, with the router receiving information from the Internet, translating it into a radio signal and sending it to the computer’s wireless adapter.

When you connect your device to the wifi, your device will store all the information of wifi. And after taking over the control of Victim PC. You can know each and everything about their wifi router, including their password.

For WiFi Penetration Testing, Take a session through meterpreter and reach to the shell of your Remote PC. And run the following commands:

Our first command will allow us to see all the networks to which the remote PC has been ever connected till date.

netsh wlan show profiles

Our next command helps us to see the details and password of a particular router.

netsh wlan show profiles name=[profile name] key=clear

Here, profile name is wifi name.

The following image shows the detail of the router named “Yashika”

The next image shows us the password of the router named Yashika with the heading key content. We can see that password is 99********

Our next command allows us to delete a particular wifi connection.

netsh wlan delete profile name=[profile name]

Here, profile name is wifi name.

Next command allows us to set the priority of a wifi network.

netsh wlan set profileorder name=[profile name]interface=[interface_name] priority=1

Here, profile name is wifi name and interface name is network types such as WLAN, LAN.

Next command allows us to stops our remote PC to automatically connect to a network.

netsh wlan set profileparameter name=[profile name] connectionmode=manual

Here, profile name is wifi name.

Next command allows us to export all the details about a wlan network.

netsh wlan export profile name=[profile name]

Here, profile name is wifi name.

Next command helps us to import any wlan file to a particular wifi network.

netsh wlan add profile filename=[path_and_filename.xml] interface=[interface_name]

Author: Yashika Dhir is a passionate Researcher and Technical Writer at Hacking Articles. She is a hacking enthusiast.

Proxy Server Lab Setup using Wingate (Part 1)

Albert Einstein always said “Imagination is important than knowledge” and this imagination accompanied by knowledge helps our world to more and more every day. Thus, technology grows and grows and succeeds to reduce human effort and increase our potential. And there is much software that helps us to do so.

One of that software is Wingate. This software helps us to monitor internet activities of our employees or students or anyone as this software helps us to setup a proxy server which further allows all the traffic from a network passes through it to reach the router as per their request. We can say that this software helps us to share and control access to the Internet through a single computer connection. The computer with Wingate acts as a proxy server for the computer users inside the home or business network.

Proxy Sever : Proxy server is a server setup between router and your network. Once the proxy server is setup, it will help you differentiate between internal network(i.e your organisation network) and external network(i.e router). That means all the traffic from client’s application(i.e web browser) will go through this proxy server and you will be able to monitor everything they do on internet and also you will be able to permit who accesses internet or who does not. So, let us learn how to seup a proxy server

WinGate is software that acts as gateway which allows us to setup proxy server and helps us to share and control access to the Internet through a single computer connection.The computer with Wingate acts as a proxy server for the computer users inside the home or business network.

For WinGate to work on a computer we will need two LAN cards. Both of these LAN cards will act as routers. One of them will be our external network(i.e router) and other will be our internal network(i.e proxy server).

To install WinGate, download it from

http://download.cnet.com/WinGate/3000-2085_4-10003112.html. Once you have downloaded it,

Open it and the folowing screen will appear on your computer. Click on Next option on the dailogue box.

After clicking on next option, it will ask you the Program Features that you would like to install. Select all the three options and then again click on Next button.

Now it will ask you to enter an Administrative E-mail on which you want all of your alerts. Enter you r E-mail address. And then click on Next option.

Now a dialogue box will open as shown below. Select localhost option from it.

Now a Licience Activation Dailogue Box will open and it will ask whether your connection is offline or online. Select online on it and click on Next.

It will further ask you if you have bought WinGate or if you have it on trail bases. Select the appropriate option such as select activate a purchased lenience if you have bought it or else select activate a free full-featured 30 day trail.

Then your activation request will be processed. It may take a minute or two.

After the activation process click on Next and it will ask you to provide a database for Wingate. For it, simply click on Next.

Now, select the Wingate user database engine as you database and click on Next

To complete WinGate installation just click on Finish

After installing it will ask you computer to restart. Once the computer is restarted you wil find WinGate in the hidden icons on the Task bar.

Now right click on WinGate icon and select WinGate Management. After doing so, WinGate management window will open. And then click on localhost.

After clicking on localhost, it will ask you weather you want to work with current windows or want to use another user.

Now click on use another user and it will ask you for username and password.

(I have given administrator as username and i have kept password blank)

Once you have given username and password click on OK. And so, the welcone panel of WinGate will open

You can now start working with Wingate.

For to learn how to setup a proxy server using Wingate, do wait for part-2.

Author: Yashika Dhir is a passionate Researcher and Technical Writer at Hacking Articles. She is a hacking enthusiast.

How to Setup Cloud Computing Penetration Testing Lab

XAMPP is the most popular PHP development environment. XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.

Download XAMPP from here:

https://www.apachefriends.org/index.html

To install XAMPP, run the XAMPP setup and follow the on screen commands

Allow access to XAMPP in windows firewall

Now, start the XAMPP control panel and start Apache and MySQL services. If the Apache is not being started, then that is because the given ports 80 and/or 443 are not free. To change Apache ports, go to ‘Config’ button (next to admin button in control panel.)  And change the 1st and 2nd files.

In the first file, change all 80 with 81, and in the second file, change all 443 with 444.

Now, go to the installed XAMPP directory and paste the ownCloud server folder in installed directory/htdocs.

Usually the installed directory is: C:\xampp\htdocs

About ownCloud:

OwnCloud is a self-hosted file sync and share server. It provides access to your data through a web interface, sync clients or WebDAV while providing a platform to view, sync and share across devices easily — all under your control. ownCloud’s open architecture is extensible via a simple but powerful API for applications and plug-in and it works with any storage.

Download ownCloud server and client software both from here

Now, open your web browser and type:

localhost:81/ownCloud (assuming the name of the server is ownCloud)

Type in your admin username and admin password then. Do remember this name and password.

A popup will then appear which will tell you that ownCloud clients are available for different mobile phones platform; you might want to check that out as well.

On the right hand side top you will see your admin name, click on that and a popup will fall having many options. Click on ‘users’.

You can see a bar on the top of the page, you ought to input your client ID and password. This client ID and password is the key to your cloud files for the client. So, the client will access the files you share with them in the next step with their ID and password that you give them. No one else but admin (that is you) can see all the clients. All you have to do is give your client their ID and password, and they are ready to use ownCloud.

Type in the details and click create.

Now once the client is created, go to home page again and click on the upload button.

Choose a file to upload. I choose a text file and in the same row as your uploaded file there will be an option to share the file on cloud. Choose that option and fill in the name of client with which you want to share your file. I input the name of client as Hacking Articles.

Now, on the client PC, install the ownCloud Desktop client software.

Input the IP address of the server followed by the port and directory.

In my case, the ownCloud client types:

https://192.168.0.102:81/ownCloud

Now, the client inputs his/her username and password and connects to the server.

Then, click on open ownCloud.

The client inputs his username and password again.

In the activity bar, he/she can see the file shared by the admin.

Author: Harshit Rajpal is an InfoSec researcher and has a keen interest in technology. contact here

Related Posts Plugin for WordPress, Blogger...