1 |
Douglas Thrift |
77 |
// Host Update Sharp |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
using System; |
8 |
|
|
using System.IO; |
9 |
|
|
using System.Net; |
10 |
|
|
|
11 |
Douglas Thrift |
78 |
public class HostUpdateSharp |
12 |
Douglas Thrift |
77 |
{ |
13 |
Douglas Thrift |
78 |
public static void Main(string[] args) |
14 |
Douglas Thrift |
77 |
{ |
15 |
Douglas Thrift |
78 |
OperatingSystem os = Environment.OSVersion; |
16 |
|
|
string host = Dns.GetHostName(); |
17 |
|
|
string url = "http://topsecret.douglasthrift.net/auth/hostupdate.cgi"; |
18 |
|
|
|
19 |
|
|
Console.WriteLine(os + "\n" + host + "\n" + url); |
20 |
Douglas Thrift |
77 |
} |
21 |
|
|
} |