Ethical Experts
Ethical Experts

A Community Dedicated to Helping and Learning . Here You Will Get Hacking Tutorials and Monetizing Methods . We Hope You Have a Pleasant Stay
HomeHome  SearchSearch  FAQFAQ  RegisterRegister  Log in  
Still Currently working on the forum design, until I find a perfect design that can sit there for the whole life :p .. Please Bare with us if you see the design change while / after you refresh a page or return ! Sorry for the Inconvenience ~!

Display results as :
Rechercher Advanced Search
Latest topics
» Hack Pack : Largest Hacking Tools Collection
Create Your Own Proxy Connection Tool  EmptyTue Apr 28, 2015 9:35 am by THE-OUTSIDER

» Hi everyone!
Create Your Own Proxy Connection Tool  EmptyFri Nov 07, 2014 11:24 pm by zekrum

» Hacking Email ID's
Create Your Own Proxy Connection Tool  EmptyThu Sep 25, 2014 7:22 pm by NAVEEN KUMAR . S

» entering in a computer binary
Create Your Own Proxy Connection Tool  EmptySat Sep 20, 2014 1:29 pm by erosh23

» hi hackers
Create Your Own Proxy Connection Tool  EmptySat Sep 20, 2014 1:26 pm by erosh23

» Introduce Yourself !
Create Your Own Proxy Connection Tool  EmptySat Sep 20, 2014 1:23 pm by erosh23

» Hello guys
Create Your Own Proxy Connection Tool  EmptyWed Jul 30, 2014 10:52 pm by RZero67

» need botnet like zues Betabot or any good botnet files please admin help me
Create Your Own Proxy Connection Tool  EmptyFri Jul 25, 2014 9:44 pm by sire_roktiv

» Extension Spoofer v0.1 [Beta Release]
Create Your Own Proxy Connection Tool  EmptyFri Jul 11, 2014 9:33 am by The Joker

Most Viewed Topics
Hack Pack : Largest Hacking Tools Collection
Hack Your BroadBand !! RISK FREE !!
How to Hack the Windows Admin Password Using OphCrack in Backtrack tutorial
Hacking With Keyloggers Prorat
How to Get Unlimited time in an Internet Cafe ... :D
How to Hack Websites & Servers - Tutorial
Cracking a WPA/WPA-2 Password.. ;)
Backtrack and Facebook
Credit Card Generating Sequence
wifi hack LARGEST netcat
Facebook Like
Similar topics


 Create Your Own Proxy Connection Tool

Go down 
The Joker
The Joker

Posts : 182
Join date : 2012-06-11
Age : 28

Create Your Own Proxy Connection Tool  Empty
PostSubject: Create Your Own Proxy Connection Tool    Create Your Own Proxy Connection Tool  EmptyMon Aug 20, 2012 6:46 pm

Today I will be showing you how to build a basic proxy connection tool. In later articles I will be showing you how to automatically download and load proxies into our application from a range of websites but for now we will just work on getting our application to use proxies.

This program was coded in Visual Studio 2010 however the same code should work in all versions from Visual Studio 2008 and after.

1. Open Visual Studio and create a basic form. The following are the names for all items on the form:


Form 1 = frmMain
Textbox = txtProxy
Button1 = btnConnect
Button 2 = btnDisconnect
Status Strip = StatusStrip1
Status Strip Label = lblStatus

2. Changes for the main form include the following. This is optional and should only be used if you want your application to have the same look at mine:


Text = Proxy Connection Tool
Size = 389, 171
MinimizeBox = False
MaximizeBox = False
FormBorderStyle = FixedDialog

3. To have your buttons and status strip label look the same as mine (shown in screenshot below) simply change the following in the properties pane for each.

Button Properties:

FlatStyle = Flat
Cursor = Hand
btnConnect Text = Connect
btnDisconnect Text = Disconnect

Status Properties:

Text = Current Status: Disconnected
ForeColor = Red

After you have completed these steps you should have a form that looks similar to the screenshot below:

Create Your Own Proxy Connection Tool  1

4. Now it is time to add in some code. Let’s start with the connect button. Simply add this code to the connect button:


On Error Resume Next
Dim Splitter() As String = Nothing
Splitter = txtProxy.text.ToString.Split(":")
SetProxy(Splitter(0), Splitter(1))

This code will call the SetProxy sub which we will create in the next step. This code will also split the proxy IP and Port into two sections (IP & Port) and pass this to the SetProxy sub.

5. The next step is to create the SetProxy sub. Copy the following code and paste it below the btnConnect sub.


Public Sub SetProxy(ByVal ServerName As String, ByVal port As Integer)
On Error Resume Next
Dim regkey1 As RegistryKey
regkey1 = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", RegistryKeyPermissionCheck.Default)
regkey1.SetValue("ProxyServer", ServerName ":" port.ToString(), RegistryValueKind.Unknown)
regkey1.SetValue("ProxyEnable", True, RegistryValueKind.DWord)

lblStatus.Text = "Proxy Status: Connected to " & txtProxy.text
lblStatus.ForeColor = Color.Green
End Sub

This sub sets the information into the registry and also changes the colour and text of the status label.

6. We then need to add code to our disconnect button. To do this simply paste the following code into the disconnect button. This code will disconnect the user and change the registry & status label back to normal.


On Error Resume Next
Dim regKey As RegistryKey
regKey = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", RegistryKeyPermissionCheck.Default)
regKey.SetValue("ProxyEnable", False, RegistryValueKind.DWord)

lblStatus.Text = "Proxy Status: Disconnected"
lblStatus.ForeColor = Color.Red

7. The final piece of code is to import Microsoft.Win32. To do this simply add the following code above “Public Class frmMain” in the code:


Imports Microsoft.Win32

8. Now you should be able to run your application and enter a proxy (IP:Port) into the text box and connect to it using the connect button. Remember to disconnect from the proxy before closing the application as the application will not disconnect you on exit.

Create Your Own Proxy Connection Tool  2

9. To check to make sure the application is working correctly, navigate to and see if your IP Address has changed.

Create Your Own Proxy Connection Tool  3

Do NOT PM me until you are DONATING or Your Upgrade  hasn't been completed even after you have purchased it .
If is one of the above, you can either choose to PM or mail me ..
Back to top Go down
View user profile
Create Your Own Proxy Connection Tool
Back to top 
Page 1 of 1
 Similar topics
» Selection of sub menus in Selenium IDE
» Selenium spying the oracle sql developer
» Command for auto populated text verification.
» How To Use Windows Malicious Software Removal Tool (mrt.exe)

Permissions in this forum:You cannot reply to topics in this forum
Ethical Experts :: Hacking Section :: Hacking Tutorials-
Jump to: