Request cần 1 pro code c# code dùm 1 library

format

Junior
Joined
Oct 22, 2013
Messages
63
Reactions
25
MR
0.000
hiện tại đã code gần xong 1 phần mềm còn thiếu công đoạn hỗ trợ fake webbower control bằng sock 5 hoặc ssh có pro nào forum mình có khả năng
code hộ 1 file library đóng gói với mã hóa thành dll luôn dùm mình chức năng cơ bản fake ip bằng sock 5 và ssh cho webbrower .
giá cả thương lượng .
mình chỉ cần file dll ko cần source code , để references vào project của mình ,
yahoo : format8888
 
Theo tớ được biết thì Internet Explorer không cho lập trình viên lập trình can thiệp vào connection. Cách đơn giản nhất có lẽ là thay đổi thiết lập proxy của Internet Explorer, khi exit chương trình thì trả lại thiết lập gốc.
 
Bạn ở trên nói đúng rồi đó. Cứ xài regedit thay đổi thiết lập của IE là được :D
 
uhm mình tích hợp dc rồi . connect vô tư mỗi tội phải can thiệp hơi sâu
 
cái tiên sư sao mình sài regedit fake IP lúc vào web nó thành down cả html của web về nhỉ
=)) bạn xem lại n mình chỉ regedit fake IP để connect tool với vip72 , hoặc ssh thôi
còn http proxy tớ cho cậu đoạn code này xài ổn hơn

[DllImport("wininet.dll")]
static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength);
public struct Struct_INTERNET_PROXY_INFO
{


public int dwAccessType;


public IntPtr proxy;


public IntPtr proxyBypass;
}
public void RefreshIESettings(string strProxy)
{
const int INTERNET_OPTION_PROXY = 38;
const int INTERNET_OPEN_TYPE_PROXY = 3;
Struct_INTERNET_PROXY_INFO s_IPI;
s_IPI.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
s_IPI.proxy = System.Runtime.InteropServices.Marshal.StringToHGl obalAnsi(strProxy);
s_IPI.proxyBypass = System.Runtime.InteropServices.Marshal.StringToHGl obalAnsi("Global");
IntPtr intptrStruct = System.Runtime.InteropServices.Marshal.AllocCoTask Mem(System.Runtime.InteropServices.Marshal.SizeOf( s_IPI));
System.Runtime.InteropServices.Marshal.StructureTo Ptr(s_IPI, intptrStruct, true);
InternetSetOption(IntPtr.Zero, INTERNET_OPTION_PROXY, intptrStruct, System.Runtime.InteropServices.Marshal.SizeOf(s_IP I));
}
 
=)) bạn xem lại n mình chỉ regedit fake IP để connect tool với vip72 , hoặc ssh thôi
còn http proxy tớ cho cậu đoạn code này xài ổn hơn

[DllImport("wininet.dll")]
static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength);
public struct Struct_INTERNET_PROXY_INFO
{


public int dwAccessType;


public IntPtr proxy;


public IntPtr proxyBypass;
}
public void RefreshIESettings(string strProxy)
{
const int INTERNET_OPTION_PROXY = 38;
const int INTERNET_OPEN_TYPE_PROXY = 3;
Struct_INTERNET_PROXY_INFO s_IPI;
s_IPI.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
s_IPI.proxy = System.Runtime.InteropServices.Marshal.StringToHGl obalAnsi(strProxy);
s_IPI.proxyBypass = System.Runtime.InteropServices.Marshal.StringToHGl obalAnsi("Global");
IntPtr intptrStruct = System.Runtime.InteropServices.Marshal.AllocCoTask Mem(System.Runtime.InteropServices.Marshal.SizeOf( s_IPI));
System.Runtime.InteropServices.Marshal.StructureTo Ptr(s_IPI, intptrStruct, true);
InternetSetOption(IntPtr.Zero, INTERNET_OPTION_PROXY, intptrStruct, System.Runtime.InteropServices.Marshal.SizeOf(s_IP I));
}
thank cậu để tối ngâm lại xem
 
RefreshIESettings(string strProxy)
truyền cái proxy vào đảm bảo không cần restart tool ,đoạn này chỉ áp dụng với http proxy còn sock 5 thì không dc đâu đó
 
Cũng đơn giản thôi dùng cái Gecko fx ý. cái này phang socks được mà không ảnh hướng tới toàn máy.
 

Announcements

Today's birthdays

Forum statistics

Threads
419,451
Messages
7,085,987
Members
171,500
Latest member
tknoithatdn

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom