diff --git a/Programs/Decoder/Decoder.build b/Programs/Decoder/Decoder.build deleted file mode 100644 index 0262010c..00000000 --- a/Programs/Decoder/Decoder.build +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Programs/Decoder/Decoder.cs b/Programs/Decoder/Decoder.cs deleted file mode 100644 index 956d4c51..00000000 --- a/Programs/Decoder/Decoder.cs +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Decoder.cs: decodes pasted packet dumps - * See the README for usage instructions. - * - * Copyright (c) 2006 Austin Jennings - * All rights reserved. - * - * - Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - Neither the name of the openmetaverse.org nor the names - * of its contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -using System; -using System.Globalization; -using System.IO; -using System.Text.RegularExpressions; - -using OpenMetaverse; -using OpenMetaverse.Packets; - -class Decoder { - private static int BUFSIZE = 8096; - - private static GridClient client = new GridClient(); - private static string grep = null; - private static byte[] data = new byte[BUFSIZE]; - private static byte[] temp = new byte[BUFSIZE]; - private static bool boring; - private static string endpoints; - private static int pos; - private static Mode mode = Mode.Generic; - private static Regex regex = RegexForMode(mode); - - private enum Mode - {Generic - ,TCPDump - }; - - private static Regex RegexForMode(Mode mode) { - switch (mode) { - case Mode.Generic: - return new Regex(@"(?:\s|PD:|^)(?:([0-9a-fA-F][0-9a-fA-F]){1,2}(?:\s|$))+"); - case Mode.TCPDump: - return new Regex(@"^\t0x....: (?:([0-9a-f][0-9a-f]){1,2}(?: |$))+"); - default: - throw new Exception("RegexForMode broken"); - } - } - - private static Regex _modeRegex_TCPDump = new Regex(@"^\d\d:\d\d:\d\d\.\d+ IP \S+ > \S+: "); - private static void SetMode(string line) { - if (_modeRegex_TCPDump.Match(line).Success) - regex = RegexForMode(mode = Mode.TCPDump); - } - - public static void Main(string[] args) { - if (args.Length > 0) { - // FIXME - Console.WriteLine("sorry, filtering is currently broken :("); - return; - // grep = String.Join(" ", args); - } - - for (Reset();;) { - string line = Console.ReadLine(); - if (line == null) { - if (pos != 0) - Done(); - - return; - } - - if (mode == Mode.Generic) - SetMode(line); - - Match m = regex.Match(line); - if (m.Success) { - if (pos == 0 && m.Groups[1].Captures.Count < 4) { - boring = true; - continue; - } - - while (pos + m.Groups[1].Captures.Count >= BUFSIZE) { - byte[] newData = new byte[data.Length + BUFSIZE]; - Array.Copy(data, 0, newData, 0, pos); - data = newData; - } - - foreach (Capture capture in m.Groups[1].Captures) - data[pos++] = Byte.Parse(capture.ToString(), NumberStyles.AllowHexSpecifier); - } else { - if (pos != 0) - Done(); - - Prepare(line); - } - } - } - - private static void Reset() { - byte[] clear = {0,0,0,0,0,0,0,0}; - Array.Copy(clear, 0, data, 0, 8); - boring = false; - endpoints = ""; - pos = 0; - } - - private static Regex _prepareRegex_TCPDump_0 = new Regex(@"^\d\d:\d\d:\d\d\.\d+ (.+)"); - private static Regex _prepareRegex_TCPDump_1 = new Regex(@"^IP (\S+ > \S+): UDP, "); - private static Regex _prepareRegex_TCPDump_2 = new Regex(@"\.lindenlab\.com\.\d+"); - private static void Prepare(string line) { - Match m; - if (mode == Mode.TCPDump && (m = _prepareRegex_TCPDump_0.Match(line)).Success) - // packet header - if ((m = _prepareRegex_TCPDump_1.Match(m.Groups[1].Captures[0].ToString())).Success) - // UDP header - if (_prepareRegex_TCPDump_2.Match(m.Groups[1].Captures[0].ToString()).Success) - // SL header - endpoints = m.Groups[1].Captures[0].ToString(); - else - boring = true; - else - boring = true; - } - - private static void Done() - { - byte[] zeroBuffer = new byte[4096]; - - if (!boring) try { - byte[] buf; - if ((data[0] & 0xF0) == 0x40) { - // strip IP and UDP headers - int headerlen = (data[0] & 0x0F) * 4 + 8; - - if ((data[6] & 0x1F) != 0x00 || data[7] != 0x00) { - // nonzero fragment offset; we already told them we're truncating the packet - Reset(); - return; - } - if ((data[6] & 0x02) != 0x00) { - Console.WriteLine("*** truncating fragmented packet ***"); - } - - if (data.Length - headerlen > temp.Length) - temp = new byte[data.Length]; - - Array.Copy(data, headerlen, temp, 0, pos -= headerlen); - - if ((temp[0] & Helpers.MSG_ZEROCODED) != 0) { - pos = Helpers.ZeroDecode(temp, pos, data); - buf = data; - } else - buf = temp; - } else - if ((data[0] & Helpers.MSG_ZEROCODED) != 0) { - pos = Helpers.ZeroDecode(data, pos, temp); - buf = temp; - } else - buf = data; - - Packet packet = Packet.BuildPacket(buf, ref pos, zeroBuffer); - - if (grep != null) { - bool match = false; - - //FIXME: This needs to be updated for the new API - //foreach (Block block in packet.Blocks()) - //{ - // foreach (Field field in block.Fields) - // { - // string value; - // if (field.Layout.Type == FieldType.Variable) - // value = DataConvert.toChoppedString(field.Data); - // else - // value = field.Data.ToString(); - // if (Regex.Match(packet.Layout.Name + "." + block.Layout.Name + "." + field.Layout.Name + " = " + value, grep, RegexOptions.IgnoreCase).Success) - // { - // match = true; - // break; - // } - - // // try matching variable fields in 0x notation - // if (field.Layout.Type == FieldType.Variable) - // { - // StringWriter sw = new StringWriter(); - // sw.Write("0x"); - // foreach (byte b in (byte[])field.Data) - // sw.Write("{0:x2}", b); - // if (Regex.Match(packet.Layout.Name + "." + block.Layout.Name + "." + field.Layout.Name + " = " + sw, grep, RegexOptions.IgnoreCase).Success) - // { - // match = true; - // break; - // } - // } - // } - //} - - if (!match) { - Reset(); - return; - } - } - - Console.WriteLine("{0,5} {1} {2}" - ,packet.Header.Sequence - ,InterpretOptions(packet.Header) - ,endpoints - ); - Console.WriteLine(packet); - } catch (Exception e) { - Console.WriteLine(e.Message); - } - - Reset(); - } - - private static string InterpretOptions(Header header) { - return "[" - + (header.AppendedAcks ? "Ack" : " ") - + " " - + (header.Resent ? "Res" : " ") - + " " - + (header.Reliable ? "Rel" : " ") - + " " - + (header.Zerocoded ? "Zer" : " ") - + "]" - ; - } - -} diff --git a/Programs/Decoder/Decoder.csproj b/Programs/Decoder/Decoder.csproj deleted file mode 100644 index eaf5f5e3..00000000 --- a/Programs/Decoder/Decoder.csproj +++ /dev/null @@ -1,67 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {7AE16AC1-E64C-4FDC-9B85-4BB6145D511C} - Exe - Properties - Decoder - Decoder - Decoder - - - true - full - false - ..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - - - - - - - - - \ No newline at end of file diff --git a/Programs/Decoder/README b/Programs/Decoder/README deleted file mode 100644 index 33ba4d5f..00000000 --- a/Programs/Decoder/README +++ /dev/null @@ -1,60 +0,0 @@ -Decoder is a tool that decodes packet dumps according to the Second -Life network protocol. Decoder tries to be semi-intelligent about -finding packet data in its input, and for example supports parsing -Second Life's console output or acting as a filter for tcpdump. - -BUILDING -======== - -To build Decoder, you must check out the entire libsecondlife trunk -with subversion: - - svn co svn://svn.gna.org/svn/libsecondlife/trunk libsecondlife - -The libsecondlife-cs project must be built first; see -libsecondlife-cs/README for instructions. Building SLProxy should be -straightforward with Microsoft Visual Studio. If you're using Mono, -you can build the solution with the included build script: - - perl build - -The SLProxy library and its example applications will be built in -bin/Debug. In order to run the example applications, you must first -add the libsecondlife-cs build directory to your MONO_PATH environment -variable. For example, if your libsecondlife-cs directory is -~/libsecondlife/libsecondlife-cs and your shell is bash, you can type: - - export MONO_PATH=$MONO_PATH:~/libsecondlife/libsecondlife-cs/bin/Debug/ - -USAGE -===== - -You can use Decoder by either copying and pasting packet dumps -directly, or piping it a logfile, as below: - - Decoder.exe < some.log - -Decoder will attempt to automatically extract the packet data from the -rest of the input. If you paste the packet dump directly rather than -piping in a logfile, you may have to press enter a couple times to -indicate that the packet dump is complete. - -You can filter packets by providing a regular expression as a -command-line argument. In this case, at least one field in the form -"PacketName.BlockName.FieldName = FieldValue" must match (case -insensitive) for the packet to be displayed. In the case of -variable-length fields, the FieldValue will be rendered as a -hexadecimal numeral preceeded by 0x, and if that doesn't match, -as a UTF-8 string if possible. - -USAGE WITH TCPDUMP -================== - -Decoder has enhanced support for tcpdump output. Traffic not related -to SL will be filtered, and the endpoints for each packet will be -displayed. To generate output suitable for Decoder, you must run -tcpdump with the options `-x -s0'. For example: - - $ sudo tcpdump -x -s0 | mono Decoder.exe > ~/sldump - -See the manpage for tcpdump(1) for more information. diff --git a/Programs/SLImageUpload/SLImageUpload.build b/Programs/SLImageUpload/SLImageUpload.build deleted file mode 100644 index 1c109ba5..00000000 --- a/Programs/SLImageUpload/SLImageUpload.build +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Programs/SLImageUpload/SLImageUpload.csproj b/Programs/SLImageUpload/SLImageUpload.csproj deleted file mode 100644 index 6537432c..00000000 --- a/Programs/SLImageUpload/SLImageUpload.csproj +++ /dev/null @@ -1,95 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {F3BDC0BC-74EB-451E-8FFE-AA162474F2F2} - WinExe - Properties - SLImageUpload - SLImageUpload - - - true - full - false - ..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - - Form - - - frmSLImageUpload.cs - - - - - Designer - frmSLImageUpload.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - - - \ No newline at end of file diff --git a/Programs/SecondGlance/SecondGlance.csproj b/Programs/SecondGlance/SecondGlance.csproj deleted file mode 100644 index d3008c4c..00000000 --- a/Programs/SecondGlance/SecondGlance.csproj +++ /dev/null @@ -1,98 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {D72C92D1-559A-48A7-93F5-99F4E99F3F98} - WinExe - Properties - SecondGlance - SecondGlance - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - Form - - - frmSecondGlance.cs - - - - - Designer - frmSecondGlance.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - {E4115DC9-FC88-47D6-B3B6-2400AD19B80D} - SLProxy - - - - - \ No newline at end of file diff --git a/Programs/VisualParamGenerator/VisualParamGenerator.csproj b/Programs/VisualParamGenerator/VisualParamGenerator.csproj deleted file mode 100644 index 0e92bee8..00000000 --- a/Programs/VisualParamGenerator/VisualParamGenerator.csproj +++ /dev/null @@ -1,62 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {D2A514C5-5590-4789-9032-6E5B4C297B80} - Exe - VisualParamGenerator - VisualParamGenerator - - - true - full - false - ..\..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - - - \ No newline at end of file diff --git a/Programs/VoiceTest/VoiceTest.build b/Programs/VoiceTest/VoiceTest.build deleted file mode 100644 index 0c769cbf..00000000 --- a/Programs/VoiceTest/VoiceTest.build +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Programs/VoiceTest/VoiceTest.csproj b/Programs/VoiceTest/VoiceTest.csproj deleted file mode 100644 index 01cb3b1d..00000000 --- a/Programs/VoiceTest/VoiceTest.csproj +++ /dev/null @@ -1,70 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {B69597A7-5DC5-4564-9089-727D0348EB4E} - Exe - Properties - VoiceTest - VoiceTest - - - true - full - false - ..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - {CE5E06C2-2428-416B-ADC1-F1FE16A0FB27} - OpenMetaverse.Utilities - - - - - - - - \ No newline at end of file diff --git a/Programs/importprimscript/importprimscript.build b/Programs/importprimscript/importprimscript.build deleted file mode 100644 index 93b7c7f7..00000000 --- a/Programs/importprimscript/importprimscript.build +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Programs/importprimscript/importprimscript.csproj b/Programs/importprimscript/importprimscript.csproj deleted file mode 100644 index 0f4a16aa..00000000 --- a/Programs/importprimscript/importprimscript.csproj +++ /dev/null @@ -1,67 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {32A7AA59-5129-4446-A6DC-2F581ED1A25C} - Exe - Properties - importprimscript - importprimscript - - - true - full - false - ..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - - - {D9CDEDFB-8169-4B03-B57F-0DF638F044EC} - OpenMetaverse - - - - - - - - \ No newline at end of file diff --git a/Programs/mapgenerator/Properties/AssemblyInfo.cs b/Programs/mapgenerator/Properties/AssemblyInfo.cs deleted file mode 100644 index aa792c30..00000000 --- a/Programs/mapgenerator/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("mapgenerator")] -[assembly: AssemblyDescription("C# class generator from the message_template.msg format")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("openmetaverse.org")] -[assembly: AssemblyProduct("mapgenerator")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("87314973-b32d-4dab-b0da-ab3c5280d268")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Programs/mapgenerator/mapgenerator.csproj b/Programs/mapgenerator/mapgenerator.csproj deleted file mode 100644 index 0beea6d1..00000000 --- a/Programs/mapgenerator/mapgenerator.csproj +++ /dev/null @@ -1,60 +0,0 @@ - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {C59B1312-57EF-4146-B6B2-1C7B6DC4638B} - Exe - Properties - mapgenerator - mapgenerator - - - true - full - false - ..\..\bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\..\bin\ - TRACE - prompt - 4 - - - bin\Release-docs\ - TRACE - true - pdbonly - AnyCPU - C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\\rules - true - GlobalSuppressions.cs - prompt - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Programs/mapgenerator/mapgenerator.sln b/Programs/mapgenerator/mapgenerator.sln deleted file mode 100644 index afa656c6..00000000 --- a/Programs/mapgenerator/mapgenerator.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mapgenerator", "mapgenerator.csproj", "{C59B1312-57EF-4146-B6B2-1C7B6DC4638B}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C59B1312-57EF-4146-B6B2-1C7B6DC4638B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C59B1312-57EF-4146-B6B2-1C7B6DC4638B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C59B1312-57EF-4146-B6B2-1C7B6DC4638B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C59B1312-57EF-4146-B6B2-1C7B6DC4638B}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/prebuild.xml b/prebuild.xml index 1b9b473e..26f12d2b 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -32,6 +32,8 @@ + + @@ -100,6 +102,103 @@ + + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + + + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + + + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + + + frmSecondGlance.resx + + + + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + + frmSLImageUpload.resx + + + + @@ -121,6 +220,50 @@ + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + + + + + + + ../../bin/ + + + + + ../../bin/ + + + + ../../bin/ + + + + + + + +