Skip to content

Commit

Permalink
Changed Project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daem0nc0re committed May 15, 2023
1 parent f4e3e07 commit 1e7ebf5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
6 changes: 3 additions & 3 deletions SyscallResolvers/HalosGateResolver/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
</configuration>
</configuration>
15 changes: 9 additions & 6 deletions SyscallResolvers/HalosGateResolver/HalosGateResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void Main(string[] args)
}

string target;
var status = false;

if (args[0].IndexOf("Nt", StringComparison.OrdinalIgnoreCase) == 0)
{
Expand All @@ -38,15 +39,17 @@ static void Main(string[] args)
{
foreach (var entry in table)
{
status = true;
Console.WriteLine("[+] Found.");
Console.WriteLine(" |-> Syscall Name : {0}", entry.Key);
Console.WriteLine(" |-> Syscall Number : {0} (0x{1})\n", entry.Value, entry.Value.ToString("X"));
Console.WriteLine(" [*] Syscall Name : {0}", entry.Key);
Console.WriteLine(" [*] Syscall Number : {0} (0x{1})", entry.Value, entry.Value.ToString("X"));
}
}
else
{
Console.WriteLine("[-] Failed to resolve syscall number.\n");
}

if (!status)
Console.WriteLine("[-] Failed to resolve syscall number.");

Console.WriteLine("[*] Done.\n");
}
}
}
3 changes: 2 additions & 1 deletion SyscallResolvers/HalosGateResolver/HalosGateResolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<OutputType>Exe</OutputType>
<RootNamespace>HalosGateResolver</RootNamespace>
<AssemblyName>HalosGateResolver</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
6 changes: 3 additions & 3 deletions SyscallResolvers/HellsGateResolver/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
</configuration>
</configuration>
14 changes: 9 additions & 5 deletions SyscallResolvers/HellsGateResolver/HellsGateResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void Main(string[] args)
}

string target;
var status = false;

if (args[0].IndexOf("Nt", StringComparison.OrdinalIgnoreCase) == 0)
{
Expand All @@ -41,15 +42,18 @@ static void Main(string[] args)
target,
StringComparison.OrdinalIgnoreCase) == 0)
{
status = true;
Console.WriteLine("[+] Found.");
Console.WriteLine(" |-> Syscall Name : {0}", entry.Key);
Console.WriteLine(" |-> Syscall Number : {0} (0x{1})\n", entry.Value, entry.Value.ToString("X"));

return;
Console.WriteLine(" [*] Syscall Name : {0}", entry.Key);
Console.WriteLine(" [*] Syscall Number : {0} (0x{1})", entry.Value, entry.Value.ToString("X"));
break;
}
}

Console.WriteLine("[-] Failed to resolve syscall number.\n");
if (!status)
Console.WriteLine("[-] Failed to resolve syscall number.");

Console.WriteLine("[*] Done.\n");
}
}
}
3 changes: 2 additions & 1 deletion SyscallResolvers/HellsGateResolver/HellsGateResolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<OutputType>Exe</OutputType>
<RootNamespace>HellsGateResolver</RootNamespace>
<AssemblyName>HellsGateResolver</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down

0 comments on commit 1e7ebf5

Please sign in to comment.