<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Multithreading in Batch Script, Part 2: Running Code</title>
	<atom:link href="http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/</link>
	<description>/*** Code's last stand ***/</description>
	<lastBuildDate>Thu, 11 Feb 2010 00:59:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Awesome Find #7: Multithreading in Batch Scripts &#124; Daily Cup of Tech</title>
		<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/comment-page-1/#comment-299</link>
		<dc:creator>Awesome Find #7: Multithreading in Batch Scripts &#124; Daily Cup of Tech</dc:creator>
		<pubDate>Thu, 26 Mar 2009 13:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://caseelse.net/?p=21#comment-299</guid>
		<description>[...] Part 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] Part 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/comment-page-1/#comment-296</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Thu, 12 Mar 2009 18:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://caseelse.net/?p=21#comment-296</guid>
		<description>DarC, I assume you mean brute-forcing the password.

You probably could (you can do pretty much anything in any language, with enough effort, and possibly some extensions). Thing is, it wouldn&#039;t be worthwhile.
You can do loops, and pass parameters in bat, so you could drive a command-line version of rar or 7z; but it wouldn&#039;t be any easier than in other languages.
You can read dictionaries from bat, or make up sequences, but it tends to be harder than in other languages.
You could get it all together, but it will tend to be slower than in other languages.
Those sort of things will get written in better, faster, more powerful languages, because they really need that.</description>
		<content:encoded><![CDATA[<p>DarC, I assume you mean brute-forcing the password.</p>
<p>You probably could (you can do pretty much anything in any language, with enough effort, and possibly some extensions). Thing is, it wouldn&#8217;t be worthwhile.<br />
You can do loops, and pass parameters in bat, so you could drive a command-line version of rar or 7z; but it wouldn&#8217;t be any easier than in other languages.<br />
You can read dictionaries from bat, or make up sequences, but it tends to be harder than in other languages.<br />
You could get it all together, but it will tend to be slower than in other languages.<br />
Those sort of things will get written in better, faster, more powerful languages, because they really need that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DarC</title>
		<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/comment-page-1/#comment-295</link>
		<dc:creator>DarC</dc:creator>
		<pubDate>Wed, 11 Mar 2009 21:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://caseelse.net/?p=21#comment-295</guid>
		<description>Wondering if there is a way to brute force a 7z or RaR archive with a Bat script...</description>
		<content:encoded><![CDATA[<p>Wondering if there is a way to brute force a 7z or RaR archive with a Bat script&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/comment-page-1/#comment-93</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Fri, 12 Sep 2008 19:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://caseelse.net/?p=21#comment-93</guid>
		<description>Brian,&lt;br&gt;
I hope it&#039;s helpful. It&#039;s more of an oddity than anything else: I use it for quick &#039;batch scanners&#039; to quickly gather data on a lot of machines (such as if software installed correctly) but I wouldn&#039;t do a long-standing project with it.&lt;br&gt;
As far as checking a password (the gotcha is below), the standard (not batch) thing to do would be to verify it with one of the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa378184(VS.85).aspx&quot; rel=&quot;nofollow&quot;&gt;LogonUser APIs&lt;/a&gt;. With scripts, you don&#039;t have so many options (and normally wouldn&#039;t want to use them. Putting passwords in text files is working against yourself). You can use the NET USE command, and try to attach a share, or similar things.&lt;br&gt;
All of the methods that I know of &lt;strong&gt;will&lt;/strong&gt; lockout an account, if they use the wrong password &lt;em&gt;N&lt;/em&gt; times. I don&#039;t think you&#039;re going to bypass that (and I have looked for exactly the same thing)--if you could, it would render useless locking out the passwords at all. If your password locks out after three wrong guesses, (to keep brute force attacks from working) then a function that allows you to just test a password completely bypasses the usefullness of that.&lt;br&gt;
If you are using scripts to access file on shares, etc, your best option is to create a user/password for that function, give it the minimal rights it needs to fulfill it&#039;s tasks, and don&#039;t give it rights to anywhere else.</description>
		<content:encoded><![CDATA[<p>Brian,<br />
I hope it&#8217;s helpful. It&#8217;s more of an oddity than anything else: I use it for quick &#8216;batch scanners&#8217; to quickly gather data on a lot of machines (such as if software installed correctly) but I wouldn&#8217;t do a long-standing project with it.<br />
As far as checking a password (the gotcha is below), the standard (not batch) thing to do would be to verify it with one of the <a href="http://msdn.microsoft.com/en-us/library/aa378184(VS.85).aspx" rel="nofollow">LogonUser APIs</a>. With scripts, you don&#8217;t have so many options (and normally wouldn&#8217;t want to use them. Putting passwords in text files is working against yourself). You can use the NET USE command, and try to attach a share, or similar things.<br />
All of the methods that I know of <strong>will</strong> lockout an account, if they use the wrong password <em>N</em> times. I don&#8217;t think you&#8217;re going to bypass that (and I have looked for exactly the same thing)&#8211;if you could, it would render useless locking out the passwords at all. If your password locks out after three wrong guesses, (to keep brute force attacks from working) then a function that allows you to just test a password completely bypasses the usefullness of that.<br />
If you are using scripts to access file on shares, etc, your best option is to create a user/password for that function, give it the minimal rights it needs to fulfill it&#8217;s tasks, and don&#8217;t give it rights to anywhere else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://caseelse.net/2008/05/22/multithreading-in-batch-script-part-2-running-code/comment-page-1/#comment-91</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 10 Sep 2008 19:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://caseelse.net/?p=21#comment-91</guid>
		<description>I have been needed to work on adding some multi threading to a script of mine so this will be very helpfull.
But I have a issue that I wonder if you can help with.
I need to have a script check to see if a username/password work.  Just so it does not lock out a account.  Have you came accross anything like that before?  Any help would be wonderfull.</description>
		<content:encoded><![CDATA[<p>I have been needed to work on adding some multi threading to a script of mine so this will be very helpfull.<br />
But I have a issue that I wonder if you can help with.<br />
I need to have a script check to see if a username/password work.  Just so it does not lock out a account.  Have you came accross anything like that before?  Any help would be wonderfull.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
