|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
How to write IP Security Policy Programming code in Visual Basic
How to write IP Security Policy Programming code in Visual Basic
================================== Code:
On Windows 2000 Professional or XP,
click on the Start button as shown below
Start --> Settings --> Control Panel --> Administrative Tools -->
double click on "Local Security Settings"
Highlight "IP Security Policies on Local" on the left side of the window
On the right side of the window, double click on the Security Policies that I had
already created.
A window pop up on, "Rules" TAB, double click the
"server --> PC"
Select the "Authentication Methods" TAB
1) This is where the password can be edited
Select the "Tunnel Setting" TAB
2) This is where I can change the first IP address
Close the above window by clicking the "OK" button
Double click on the "PC --> server" section
Select the "Tunnel Setting" TAB
3) This is where I can change the second IP address
====================================
I would like to write Visual Basic code that will change the above three values. In order to write to those code there are three things that I need to know 1) When the three values from above are being saved, do they get stored in the registry or in a file ? 2) How do you write code that read from and write to a registry ? 3) Is there any example codes that will allowed me to read the three values as shown above and write to it ? |
|
#2
|
|||
|
|||
|
I suppose three value will store into the registry.It's generic way to microsoft.U can use some tools to monitor the change of the registry,and record it..If u will know something about registry operation with vb,u can visit http://www.codetoad.com/vb_modify_registry.asp
|
|
#3
|
|||
|
|||
|
reply
Hi cleverpig. Thank you for your help.
I changed the IP address value from 192.168.50.251 to 1.2.3.4 as shown below. Next I clicked the "OK" button. I then use regedit to search for the value 1.2.3.4, but it never find it. This means that this value is not stored in the registry, but in a file. Then I also searched for the password (lan123) using regedit but it did not find it. Either the password is stored in a file or it is stored in encrypted format, and when the window is opened it is decripted to ASCII text and then display it on the window. What do you think cleverpig ? ================================== Start --> Settings --> Control Panel --> Administrative Tools --> double click on "Local Security Settings" Highlight "IP Security Policies on Local" on the left side of the window On the right side of the window, double click on the Security Policies that I had already created. A window pop up on, "Rules" TAB, double click the "server --> PC" Select the "Authentication Methods" TAB 1) This is where the password can be edited Select the "Tunnel Setting" TAB 2) This is where I change the IP address from 192.168.50.251 to 1.2.3.4 ==================================== I would like to write Visual Basic code that will change the above three values. In order to write to those code there are three things that I need to know 1) When the three values from above are being saved, do they get stored in the registry or in a file ? 2) How do you write code that read from and write to a registry ? 3) Is there any example codes that will allowed me to read the three values as shown above and write to it ? |
|
#4
|
|||
|
|||
|
I recommend u to use a registry monior software(not regedit),because it can find your registry change in the period of modifing "IP Security Policies on Local"..Your data maybe store in other format..U can download demo soft:http://www.protect-me.com/arm/
If it's stored in a file,it's difficult to us.Because we maybe can't dencrypt the file content,thought we can find the file.. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How to write IP Security Policy Programming code in Visual Basic |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|