<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hak9 &#187; Programs &#8211; Construction And Working</title>
	<atom:link href="http://hak9.com/category/e-books-tutorials/programs-construction-and-working/feed/" rel="self" type="application/rss+xml" />
	<link>http://hak9.com</link>
	<description>Hub Of Anti-Kracker's</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Prevent Access To USB Pen Drive &#8211; working and construction</title>
		<link>http://hak9.com/2009/05/01/prevent-access-to-usb-pen-drive-working-and-construction/</link>
		<comments>http://hak9.com/2009/05/01/prevent-access-to-usb-pen-drive-working-and-construction/#comments</comments>
		<pubDate>Fri, 01 May 2009 13:37:09 +0000</pubDate>
		<dc:creator>manpreetrules</dc:creator>
				<category><![CDATA[Programs - Construction And Working]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[hak9.com]]></category>
		<category><![CDATA[PreventAccess To USB Pen Drive - working and construction]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://hak9.com/2009/05/prevent-access-to-usb-pen-drive-working-and-construction</guid>
		<description><![CDATA[<a href="http://hak9.com/2009/05/01/prevent-access-to-usb-pen-drive-working-and-construction/"><img width="120" src="http://i41.tinypic.com/fnha8y_th.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a>This program actually consist of two parts. i.e 1) Visual Basic Part 2) and a batch file Visual Basic Part: Create form as show in the figure. CODE: Private Sub Command1_Click() If Option1.Value = True Then Shell (&#8220;c:\man.bat 4&#8243;) ElseIf Option2.Value = True Then Shell (&#8220;c:\man.bat 3&#8243;) End If End Sub Batch Program: Create a]]></description>
			<content:encoded><![CDATA[<div class="vs-topic" topic="Prevent Access To USB Pen Drive - working and construction" link="http://hak9.com/2009/05/01/prevent-access-to-usb-pen-drive-working-and-construction/"><p>This program actually consist of two parts. i.e<br />
1) Visual Basic Part<br />
2) and a batch file</p>
<p><span style="font-weight:bold;">Visual Basic Part:</span></p>
<p><img src="http://i41.tinypic.com/fnha8y_th.jpg" border="0" />Create form as show in the figure.<br />
<span style="font-weight:bold;">CODE:</span><br />
Private Sub Command1_Click()<br />
If Option1.Value = True Then<br />
Shell (&#8220;c:\man.bat 4&#8243;)<br />
ElseIf Option2.Value = True Then</p>
<p>Shell (&#8220;c:\man.bat 3&#8243;)<br />
End If<br />
End Sub</p>
<p><span style="font-weight:bold;">Batch Program:</span></p>
<p>Create a text file and rename to man.bat and place it in C drive<br />
the file will contain the following code:</p>
<p>@echo off<br />
echo Windows Registry Editor Version 5.00 &gt;&gt; c:\man.reg<br />
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor] &gt;&gt; c:\man.reg<br />
echo &#8220;start&#8221;=dword:00000<span style="font-weight:bold;">%1</span> &gt;&gt;c:\man.reg<br />
regedit.exe /s c:\man.reg<br />
exit</p>
<p><span style="font-weight:bold;">WORKING:</span></p>
<p>when the user select option1(enable) and clicks the command 1 button the batch file will executed with %1 as 4(the batch file replace %1 with &#8220;4&#8243;<span style="font-weight:bold;"><span style="font-weight:bold;"><span style="font-weight:bold;">) </span></span></span>and then change the value of start in &#8220;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor&#8221; to &#8220;4<span style="font-weight:bold;"></span><span style="font-weight:bold;"><span style="font-weight:bold;"><span style="font-weight:bold;">&#8221;<br />
</span></span></span>the same when we select disable option.<span style="font-weight:bold;"><span style="font-weight:bold;"><span style="font-weight:bold;"><br />
</span></span><br />
NOTE: </span>You can also use visual basic to write a batch file automatically, to automate the process.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://hak9.com/2009/05/01/prevent-access-to-usb-pen-drive-working-and-construction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
