SunQuest
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old October 27th, 2003, 12:43 PM
linh linh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 245 linh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 27 sec
Reputation Power: 6
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 ?

Reply With Quote
  #2  
Old October 27th, 2003, 08:24 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
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

Reply With Quote
  #3  
Old October 28th, 2003, 11:00 AM
linh linh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 245 linh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 27 sec
Reputation Power: 6
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 ?

Reply With Quote
  #4  
Old October 28th, 2003, 08:04 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
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..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > How to write IP Security Policy Programming code in Visual Basic


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway