Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace EveryIPv4{
- class Program{
- static void Main(string[] args){
- using(StreamWriter sw=new StreamWriter("dump.txt"))
- for(uint u=uint.MinValue;u<=uint.MaxValue;u++)
- for (byte b=0;b<4;b++)
- sw.Write(((u>>((3-b)*8))&0xFF).ToString()+(b==3?'\n':'.'));
- }
- }
- }
Add Comment
Please, Sign In to add comment