Skip to content

Commit

Permalink
update reversetool
Browse files Browse the repository at this point in the history
  • Loading branch information
devseed authored and YuriSizuku committed Apr 8, 2024
1 parent fed58d7 commit b56cc29
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion depend/reversetool
2 changes: 1 addition & 1 deletion project/winexe_winmemdll/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# build example
# build example, tested in linux 10.0.0-3, gcc 12, wine-9.0
# make winmemdll_shellcode CC=x86_64-w64-mingw32-gcc
# make winmemdll winmemdll_test CC=i686-w64-mingw32-gcc BUILD_TYPE=32d
# make winmemdll winmemdll_test CC=x86_64-w64-mingw32-gcc BUILD_TYPE=64d
Expand Down
5 changes: 0 additions & 5 deletions project/winexe_winmemdll/src/winmemdll.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
#include "winpe.h"
#include <assert.h>

#define DUMP(path, addr, size)\
FILE *_fp = fopen(path, "wb");\
fwrite(addr, 1, size, _fp);\
fclose(_fp)

// these functions are stub function, will be filled by python
#include "winmemdll_shellcode.h"
#define FUNC_SIZE 0x400
Expand Down
14 changes: 8 additions & 6 deletions project/winexe_winmemdll/winmemdll.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,25 @@
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)32d</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/debug/i686</IntDir>
<IntDir>build/obj/$(ProjectName)32d</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)32</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/release/i686</IntDir>
<IntDir>build/obj/$(ProjectName)32</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>build</OutDir>
<TargetName>$(ProjectName)64d</TargetName>
<IntDir>build/obj/debug/x86_64</IntDir>
<IntDir>build/obj/$(ProjectName)64d</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)64</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/release/x86_64</IntDir>
<IntDir>build/obj/$(ProjectName)64</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand All @@ -110,6 +110,7 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -128,6 +129,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -142,7 +144,7 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -161,7 +163,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
14 changes: 8 additions & 6 deletions project/winexe_winmemdll/winmemdll_test.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,25 @@
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)32d</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/debug/i686</IntDir>
<IntDir>build/obj/$(ProjectName)32d</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)32</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/release/i686</IntDir>
<IntDir>build/obj/$(ProjectName)32</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>build</OutDir>
<TargetName>$(ProjectName)64d</TargetName>
<IntDir>build/obj/debug/x86_64</IntDir>
<IntDir>build/obj/$(ProjectName)64d</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>$(ProjectName)64</TargetName>
<OutDir>build</OutDir>
<IntDir>build/obj/release/x86_64</IntDir>
<IntDir>build/obj/$(ProjectName)64</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand All @@ -110,6 +110,7 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -128,6 +129,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -142,7 +144,7 @@
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -161,7 +163,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<MinimumRequiredVersion>5.01</MinimumRequiredVersion>
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down

0 comments on commit b56cc29

Please sign in to comment.