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 ~!
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Hack Pack : Largest Hacking Tools Collection
Tue Apr 28, 2015 9:35 am by THE-OUTSIDER

» Hi everyone!
Fri Nov 07, 2014 11:24 pm by zekrum

» Hacking Email ID's
Thu Sep 25, 2014 7:22 pm by NAVEEN KUMAR . S

» entering in a computer binary
Sat Sep 20, 2014 1:29 pm by erosh23

» hi hackers
Sat Sep 20, 2014 1:26 pm by erosh23

» Introduce Yourself !
Sat Sep 20, 2014 1:23 pm by erosh23

» Hello guys
Wed Jul 30, 2014 10:52 pm by RZero67

» need botnet like zues Betabot or any good botnet files please admin help me
Fri Jul 25, 2014 9:44 pm by sire_roktiv

» Extension Spoofer v0.1 [Beta Release]
Fri Jul 11, 2014 9:33 am by The Joker

Most Viewed Topics
Hack Pack : Largest Hacking Tools Collection
HACK WIFI PASSWORD USING CMD WHEN YOU ARE CONNECTED WITH WIFI
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
Keywords
account hack email hacker file netcat ddos internet backtrack crack phishing password wifi free download pack tools credit hacking Windows card admin facebook page gmail prorat
Facebook Like
Similar topics

Share | 
 

 Create Your Own Proxy Connection Tool

View previous topic View next topic Go down 
AuthorMessage
The Joker
Admin
Admin
avatar

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

PostSubject: Create Your Own Proxy Connection Tool    Mon 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:

CODE :

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:

CODE :

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:
CODE :

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


Status Properties:
CODE :

Text = Current Status: Disconnected
ForeColor = Red


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



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:

CODE :

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.

CODE :

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)
regkey1.Close()

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.

CODE :

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)
regKey.Close()

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:

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.



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




___________________________________________________
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 http://teamiha.tumblr.com
 
Create Your Own Proxy Connection Tool
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How to use ANT build to create HTML reports in Eclispe
» Selection of sub menus in Selenium IDE
» Having issue with Selenium using Appian tool
» The connection has timed out
» Create Batch file for Selenium

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