Guest User

Untitled

a guest
Jul 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. namespace EveryIPv4{
  4. class Program{
  5. static void Main(string[] args){
  6. using(StreamWriter sw=new StreamWriter("dump.txt"))
  7. for(uint u=uint.MinValue;u<=uint.MaxValue;u++)
  8. for (byte b=0;b<4;b++)
  9. sw.Write(((u>>((3-b)*8))&0xFF).ToString()+(b==3?'\n':'.'));
  10. }
  11. }
  12. }
Add Comment
Please, Sign In to add comment