title: How to I create a nested for loop ping sweeper?
body: <p>OK so I'm a complete newb when it comes to programming, (The only languages I have experience with Javascript, SQL, and a little visual basic from a college course.)
  Anyway, I'm taking a SANS security/Ethical Hacking course and one of the useful little tidbits I learned was creating a ping sweeper in Windows Command Prompt:</p>
  
  <pre><code>for /L %i in (1,1,255) do @ping -n 1 10.10.10.%i | find "TTL"
  </code></pre>
  
  <p>Now what I want to do is not only iterate through the fourth octet but the third octet and second octet as well. The power point from the SANS class said this was possible with a nested for loop and other variables (%j, %k) but they didn't show an example of how to to do it. Any help would be appreciated. </p>