Python Program to connect to different VPN servers autoatically using Windscribe VPN.

Overview

AutomateVPN

What is VPN ?

VPN stands for Virtual Private Network , it is a technology that creates a safe and encrypted connectionover a less secure network, such as Internet. Basically it connects you to a remote server(another country) by changing your IP Address and it use tunneling protocols to establish a secure connection.

How to Setup VPN ?

Here we are using Windscribe VPN

Step 1: Create a free account on Windscribe.Visit Windscibe and register yourself.

Step 2: Open your Terminal and add the windscribe signing key to apt using following command.


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key FDC247B7

Step 3: Add the repository to your source.list using following command


echo 'deb https://repo.windscribe.com/ubuntu bionic main' | sudo tee /etc/apt/sources.list.d/windscribe-repo.list

Step 4: Update your system packages


sudo apt-get update

Step 5: Install windscribe-cli using following command.


sudo apt-get install windscribe-cli

Step 6: Login to windscribe with your credentials used in Step 1 while creating account on Windscribe.


windscribe login

Working with VPN using Windscribe

1. To check status of VPN


windscribe status

it will show either you are connected to VPN or not

2. To connect to windscribe


windscribe connect

it will change your IP Address and connects you to a different server

**3.**To disconnect from windscribe


windscribe disconnect

4. To print VPN services Locations


windscribe locations

5. To connect to a specific Server


windscribe connect 

6. To logout from windscribe


windscribe logout

Steps to Automate VPN using Python

Step 1: Open the terminal and create a file using gedit by the following command


gedit AutomateVPN.py

Python must be installed in your system

Step 2: Copy code from Automate_VPN.py and save it to AutomateVPN.py

Step 3: Close the Terminal , Reopen the terminal and type the following Command


windscribe login

python3 AutomateVPN.py

This will run the program and it will change your IP Address every 15-20 minutes.

To disconnect VPN Close the Terminal , Reopen the terminal and type the following Command


windscribe disconnect
You might also like...
A vpn that sits in your browser, accessible via a website

VPNInYourBrowser A vpn that sits in your browser, accessible via a website Example setup: https://VPNInBrowser.jaffa42.repl.co Setup Put the code onto

A script for generating WireGuard configs from Surfshark VPN

Surfshark WireGuard A script for generating WireGuard configs from Surfshark VPN. You must have python3 available on your machine. Usage Currently we

A TCP Chatroom built with python and TCP/IP sockets, consisting of a server and multiple clients which can connect with the server and chat with each other.

A TCP Chatroom built with python and TCP/IP sockets, consisting of a server and multiple clients which can connect with the server and chat with each other. It also provides an Admin role with features including kicking and baning of users.

Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect

wifi-password Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect. Works on macOS and Li

A simple and lightweight server that allows clients to connect and launch a shell remotely through a browser.

carrotsh A simple and lightweight server that allows clients to connect and launch a shell remotely through a browser. Uses xterm.js for the frontend

No-dependency, single file NNTP server library for developing modern, rfc3977-compliant (bridge) NNTP servers.

nntpserver.py No-dependency, single file NNTP server library for developing modern, rfc3977-compliant (bridge) NNTP servers for python =3.7. Develope

Take a list of domains and probe for working HTTP and HTTPS servers

httprobe Take a list of domains and probe for working http and https servers. Install ▶ go get -u github.com/tomnomnom/httprobe Basic Usage httprobe

Lets you remove all friends, leave GCs, and leave servers, in an instant!

anonymity Lets you remove all friends, leave GCs, and leave servers, in an instant! You can also do each of them by themselves. First, you need to get

Proxlist - Retrieve proxy servers.
Proxlist - Retrieve proxy servers.

Finding and storing a list of proxies can be taxing - especially ones that are free and may not work only minutes from now. proxlist will validate the proxy and return a rotating random proxy to you so you don't need to keep a list of proxies or ensure it's contents are still valid.

Owner
Vivek
Vivek
KoreaVPN - Create a VPN App for Mac Using Automator

VPN app 만들기 (a.k.a. KoreaVPN) VPN을 사용하기 위해 들어가는 10초의 시간을 아끼고, 귀찮음을 최소화 하기 위해 크롤링

DongHee 6 Jan 17, 2022
Python script to stop qBittorrent from torrenting without VPN for users with static IP.

Python script to stop qBittorrent from torrenting without VPN for users with static IP.

voidoak_ 1 Oct 25, 2021
Simplest dashboard for WireGuard VPN written in Python w/ Flask

Hi! I'm planning the next major update for this project, please let me know if you have any suggestions or feature requests ;) You can create an issue

Donald Zou 763 Jan 2, 2023
SonicWall SSL-VPN Exploit

VisualDoor SonicWall SSL-VPN Exploit, as used by Phineas Fisher to hack Cayman Trust Bank and Hacking Team.

null 169 Nov 15, 2022
sshuttle: where transparent proxy meets VPN meets ssh

Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.

null 9.4k Jan 9, 2023
A fire and forget command-line tool to allow for easy transitions of VPN connections between a pool of AWS machines.

VPN Swapper A fire and forget command-line tool to allow for easy transitions of VPN connections between a pool of AWS machines. Dependencies poetry -

Workday 5 Jul 7, 2022
Ctech Didik Auto Script VPN 👨🏻‍💻Youtube: Ctech Didik

CTech Didik Auto Script VPN SUPPORT OPERATING SYSTEM Debian GNU/Linux 11 (Bullseye) Debian GNU/Linux 10 (Buster) Debian GNU/Linux 9 (Stretch) Ubuntu S

Ctech Didik 27 Dec 20, 2022
Raspberry Pi Based Serial Console Server, with PushBullet Notification of IP changes, Automatic VPN termination, custom menu, Power Outlet Control, and a lot more

ConsolePi Acts as a serial Console Server, allowing you to remotely connect to ConsolePi via Telnet/SSH/bluetooth to gain Console Access to devices co

null 120 Jan 5, 2023
Openconnect VPN RPi Gateway

Openconnect-VPN-RPi-Gateway See the blog (Chinese) for how to build an Openconne

Zhongze Tang 2 Jan 30, 2022
A vpn that sits in your browser, accessible via a website

VPNInYourBrowser A vpn that sits in your browser, accessible via a website Example setup: https://VPNInBrowser.jaffa42.repl.co Setup Put the code onto

null 1 Jan 20, 2022