Results 1 to 4 of 4
  1. #1
    maxkaxx's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Unknown
    Posts
    121
    Reputation
    10
    Thanks
    277
    My Mood
    In Love

    Question Proxy Source/Program

    Hello MPGH member! I need a proxy source/program that change the ip on all programs or just a specified process.
    the program will auto load a proxy from a txt file from de internet and it will change your IP for the process (not the proxy program another program)
    i want it as a single exe file or a bult in file so i can but it in to anoter vb.net program.
    if you know a source or can help me i can give you credits in the program called "MineCafe" https://www.mpgh.net/forum/411-minecr...-minecafe.html
    please make a comment or send me a pm.
    Thanks!
    Last edited by maxkaxx; 06-30-2012 at 07:16 AM.

  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Add this class to your program:

    Code:
    Imports System.Runtime.InteropServices
    Imports Microsoft.Win32
    Public Class ProxyChanger
        <DllImport("wininet.dll")> _
        Public Shared Function InternetSetOption(hInternet As IntPtr, dwOption As Integer, lpBuffer As IntPtr, dwBufferLength As Integer) As Boolean
        End Function
        Public Const INTERNET_OPTION_SETTINGS_CHANGED As Integer = 39
        Public Const INTERNET_OPTION_REFRESH As Integer = 37
        Public Function SetProxy(Server As String, Port As String) As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyServer", Server + ":" + Port)
            InternetSetOption(IntPtr.Zero, INTERNET_OPTION_SETTINGS_CHANGED, IntPtr.Zero, 0)
            InternetSetOption(IntPtr.Zero, INTERNET_OPTION_REFRESH, IntPtr.Zero, 0)
            RKey.SetValue("ProxyEnable", 1)
            Dim IsEnabled As Boolean = False
            If Not RKey.GetValue("ProxyEnable") = 0 Then
                IsEnabled = True
            End If
            Return IsEnabled
        End Function
        Public Function DisableProxy() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyEnable", 0)
            Dim Result As Boolean = False
            If RKey.GetValue("ProxyEnable") = 0 Then
                Result = True
            End If
            Return Result
        End Function
        Public Function EnableProxy() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyEnable", 1)
            Dim Result As Boolean = False
            If Not RKey.GetValue("ProxyEnable") = 0 Then
                Result = True
            End If
            Return Result
        End Function
        Public Function IsProxyEnabled() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            Dim Result As Boolean = True
            If RKey.GetValue("ProxyEnable") = 0 Then
                Result = False
            End If
            Return Result
        End Function
    End Class
    Create a new instance of this class from your program and call the functions to Set / Disable proxy:

    Code:
    Dim PChanger As New ProxyChanger
    If PChanger.SetProxy("192.11.23.12", "6969") Then
    MsgBox("Proxy Changed And Enabled")
    Else
    MsgBox("Unable To Change Proxy")
    End If
    Disable the proxy like this:
    Code:
    PChanger.DisableProxy()

  3. The Following 2 Users Say Thank You to Hassan For This Useful Post:

    Cryptonic (06-30-2012),Paul (07-02-2012)

  4. #3
    maxkaxx's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Unknown
    Posts
    121
    Reputation
    10
    Thanks
    277
    My Mood
    In Love
    Quote Originally Posted by Hassan View Post
    Add this class to your program:

    Code:
    Imports System.Runtime.InteropServices
    Imports Microsoft.Win32
    Public Class ProxyChanger
        <DllImport("wininet.dll")> _
        Public Shared Function InternetSetOption(hInternet As IntPtr, dwOption As Integer, lpBuffer As IntPtr, dwBufferLength As Integer) As Boolean
        End Function
        Public Const INTERNET_OPTION_SETTINGS_CHANGED As Integer = 39
        Public Const INTERNET_OPTION_REFRESH As Integer = 37
        Public Function SetProxy(Server As String, Port As String) As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyServer", Server + ":" + Port)
            InternetSetOption(IntPtr.Zero, INTERNET_OPTION_SETTINGS_CHANGED, IntPtr.Zero, 0)
            InternetSetOption(IntPtr.Zero, INTERNET_OPTION_REFRESH, IntPtr.Zero, 0)
            RKey.SetValue("ProxyEnable", 1)
            Dim IsEnabled As Boolean = False
            If Not RKey.GetValue("ProxyEnable") = 0 Then
                IsEnabled = True
            End If
            Return IsEnabled
        End Function
        Public Function DisableProxy() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyEnable", 0)
            Dim Result As Boolean = False
            If RKey.GetValue("ProxyEnable") = 0 Then
                Result = True
            End If
            Return Result
        End Function
        Public Function EnableProxy() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            RKey.SetValue("ProxyEnable", 1)
            Dim Result As Boolean = False
            If Not RKey.GetValue("ProxyEnable") = 0 Then
                Result = True
            End If
            Return Result
        End Function
        Public Function IsProxyEnabled() As Boolean
            Dim RKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
            Dim Result As Boolean = True
            If RKey.GetValue("ProxyEnable") = 0 Then
                Result = False
            End If
            Return Result
        End Function
    End Class
    Create a new instance of this class from your program and call the functions to Set / Disable proxy:

    Code:
    Dim PChanger As New ProxyChanger
    If PChanger.SetProxy("192.11.23.12", "6969") Then
    MsgBox("Proxy Changed And Enabled")
    Else
    MsgBox("Unable To Change Proxy")
    End If
    Disable the proxy like this:
    Code:
    PChanger.DisableProxy()
    Okey, Thanks ^^ you want credits in minecafe? pm me name + link you want.

  5. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by maxkaxx View Post
    Okey, Thanks ^^ you want credits in minecafe? pm me name + link you want.
    No, it's fine.
    Marked solved. No more posting.

Similar Threads

  1. i need a program (Free or cracked) for proxy(ing?)
    By Kanye in forum Combat Arms Help
    Replies: 2
    Last Post: 07-29-2010, 10:16 AM
  2. [Tutorial] Finding Source Code of Not Open Source Programs
    By treeham in forum C++/C Programming
    Replies: 21
    Last Post: 03-28-2010, 08:35 AM
  3. Korean Proxy or program
    By caeu2010 in forum General
    Replies: 6
    Last Post: 11-15-2009, 04:30 PM
  4. [Source] Raep - ws2_32 Proxy DLL + Configurable Injector
    By d.vel.oper in forum C++/C Programming
    Replies: 4
    Last Post: 05-06-2009, 12:00 PM
  5. Other Proxy Program ?
    By -Shadow- in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 12-28-2008, 07:22 AM

Tags for this Thread