Skip to content

Commit

Permalink
adding reverse engineering result for gsmcom
Browse files Browse the repository at this point in the history
use JustDecompile
  • Loading branch information
Welly committed Jan 2, 2013
0 parents commit b86ee83
Show file tree
Hide file tree
Showing 126 changed files with 17,508 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
163 changes: 163 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML



############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

# Mac crap
.DS_Store
38 changes: 38 additions & 0 deletions GSMComm.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDUConverter", "PDUConverter\PDUConverter.csproj", "{5E657EFE-0A30-466D-B025-FF177E23A727}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GSMCommShared", "GSMCommShared\GSMCommShared.csproj", "{71EA4054-A98A-46BA-84FA-81652DB72B72}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GSMCommunication", "GSMCommunication\GSMCommunication.csproj", "{32B76F1E-B022-47C6-86EC-28639D348067}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GSMCommServer", "GSMCommServer\GSMCommServer.csproj", "{67CB92ED-436B-4005-A6D6-092503D6E496}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5E657EFE-0A30-466D-B025-FF177E23A727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E657EFE-0A30-466D-B025-FF177E23A727}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E657EFE-0A30-466D-B025-FF177E23A727}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E657EFE-0A30-466D-B025-FF177E23A727}.Release|Any CPU.Build.0 = Release|Any CPU
{71EA4054-A98A-46BA-84FA-81652DB72B72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71EA4054-A98A-46BA-84FA-81652DB72B72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71EA4054-A98A-46BA-84FA-81652DB72B72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71EA4054-A98A-46BA-84FA-81652DB72B72}.Release|Any CPU.Build.0 = Release|Any CPU
{32B76F1E-B022-47C6-86EC-28639D348067}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32B76F1E-B022-47C6-86EC-28639D348067}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32B76F1E-B022-47C6-86EC-28639D348067}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32B76F1E-B022-47C6-86EC-28639D348067}.Release|Any CPU.Build.0 = Release|Any CPU
{67CB92ED-436B-4005-A6D6-092503D6E496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67CB92ED-436B-4005-A6D6-092503D6E496}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67CB92ED-436B-4005-A6D6-092503D6E496}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67CB92ED-436B-4005-A6D6-092503D6E496}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
82 changes: 82 additions & 0 deletions GSMCommServer/GSMCommServer.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{67CB92ED-436B-4005-A6D6-092503D6E496}</ProjectGuid>
<SchemaVersion>2</SchemaVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<AssemblyName>GSMCommServer</AssemblyName>
<OutputType>Library</OutputType>
<RootNamespace>GsmComm</RootNamespace>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>true</DebugSymbols>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<Optimize>false</Optimize>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>false</DebugSymbols>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<WarningLevel>4</WarningLevel>
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Runtime.Remoting" />
<Reference Include="GSMCommShared">
<HintPath>.\GSMCommServerReferences\GSMCommShared.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="GSMCommunication">
<HintPath>.\GSMCommServerReferences\GSMCommunication.dll</HintPath>
</Reference>
<Reference Include="PDUConverter">
<HintPath>.\GSMCommServerReferences\PDUConverter.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\AuthorizationModule.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\MessageSendEventHandler.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\MessageSendErrorEventHandler.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\MessageSendEventArgs.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\MessageSendErrorEventArgs.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\SmsSender.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
<Compile Include="Server\SmsServer.cs">
<AutoGen>false</AutoGen>
<DesignTimeSharedInput>false</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions GSMCommServer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyCompany("Stefan Mayr")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyright("Copyright © 2004-2011 Stefan Mayr")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyFileVersion("1.21.0.0")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyTitle("GSMComm Server")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyVersion("1.21.0.0")]
[assembly: CompilationRelaxations(8)]
[assembly: ComVisible(false)]
[assembly: Guid("51344c27-1895-4355-9289-a25D0880918f")]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows=true)]
53 changes: 53 additions & 0 deletions GSMCommServer/Server/AuthorizationModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using System;
using System.Net;
using System.Runtime.Remoting.Channels;
using System.Security.Principal;

/// <summary>
/// Implements the authorization module for the server.
/// </summary>
namespace GsmComm.Server
{
public class AuthorizationModule : IAuthorizeRemotingConnection
{
private bool allowAnonymous;

/// <summary>
/// Initializes a new instance of the module.
/// </summary>
/// <param name="allowAnonymous">Specifies if users authenticated anonymously can
/// connect to the current channel.</param>
public AuthorizationModule(bool allowAnonymous)
{
this.allowAnonymous = allowAnonymous;
}

/// <summary>
/// Gets a Boolean value that indicates whether the network address of the client is
/// authorized to connect on the current channel.
/// </summary>
/// <param name="endPoint">The <see cref="T:System.Net.EndPoint" /> that identifies the network address of the client.</param>
/// <returns>true if the network address of the client is authorized; otherwise, false.</returns>
public bool IsConnectingEndPointAuthorized(EndPoint endPoint)
{
return true;
}

/// <summary>
/// Gets a Boolean value that indicates whether the user identity of the client is
/// authorized to connect on the current channel.
/// </summary>
/// <param name="identity">The <see cref="T:System.Security.Principal.IIdentity" /> that represents the user identity of the client.</param>
/// <returns>true if the user identity of the client is authorized; otherwise, false.</returns>
public bool IsConnectingIdentityAuthorized(IIdentity identity)
{
bool flag = true;
WindowsIdentity windowsIdentity = identity as WindowsIdentity;
if (windowsIdentity != null && windowsIdentity.IsAnonymous && !this.allowAnonymous)
{
flag = false;
}
return flag;
}
}
}
Loading

0 comments on commit b86ee83

Please sign in to comment.