diff --git a/.vs/Cronos/FileContentIndex/04ac2203-918f-4a3e-a7e3-52478ab88b5d.vsidx b/.vs/Cronos/FileContentIndex/04ac2203-918f-4a3e-a7e3-52478ab88b5d.vsidx new file mode 100644 index 0000000..5b766ef Binary files /dev/null and b/.vs/Cronos/FileContentIndex/04ac2203-918f-4a3e-a7e3-52478ab88b5d.vsidx differ diff --git a/.vs/Cronos/FileContentIndex/9492e81a-44c8-4a28-8f9a-49adc6495816.vsidx b/.vs/Cronos/FileContentIndex/9492e81a-44c8-4a28-8f9a-49adc6495816.vsidx new file mode 100644 index 0000000..9ac0e15 Binary files /dev/null and b/.vs/Cronos/FileContentIndex/9492e81a-44c8-4a28-8f9a-49adc6495816.vsidx differ diff --git a/.vs/Cronos/FileContentIndex/e789965a-e2a9-45b3-bddf-db3d13e84353.vsidx b/.vs/Cronos/FileContentIndex/e789965a-e2a9-45b3-bddf-db3d13e84353.vsidx new file mode 100644 index 0000000..46acaa7 Binary files /dev/null and b/.vs/Cronos/FileContentIndex/e789965a-e2a9-45b3-bddf-db3d13e84353.vsidx differ diff --git a/.vs/Cronos/FileContentIndex/read.lock b/.vs/Cronos/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/Cronos/v17/.suo b/.vs/Cronos/v17/.suo new file mode 100644 index 0000000..f2deb70 Binary files /dev/null and b/.vs/Cronos/v17/.suo differ diff --git a/.vs/Cronos/v17/Browse.VC.db b/.vs/Cronos/v17/Browse.VC.db new file mode 100644 index 0000000..fed2dbf Binary files /dev/null and b/.vs/Cronos/v17/Browse.VC.db differ diff --git a/.vs/Cronos/v17/ipch/AutoPCH/cd3b31e53a5087c6/MAIN.ipch b/.vs/Cronos/v17/ipch/AutoPCH/cd3b31e53a5087c6/MAIN.ipch new file mode 100644 index 0000000..24a81cc Binary files /dev/null and b/.vs/Cronos/v17/ipch/AutoPCH/cd3b31e53a5087c6/MAIN.ipch differ diff --git a/Cronos.sln b/Cronos.sln new file mode 100644 index 0000000..613ce70 --- /dev/null +++ b/Cronos.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32630.192 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cronos", "Cronos.vcxproj", "{70F300C7-1BEE-4787-AFB0-29E614E7C307}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Debug|x64.ActiveCfg = Debug|x64 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Debug|x64.Build.0 = Debug|x64 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Debug|x86.ActiveCfg = Debug|Win32 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Debug|x86.Build.0 = Debug|Win32 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Release|x64.ActiveCfg = Release|x64 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Release|x64.Build.0 = Release|x64 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Release|x86.ActiveCfg = Release|Win32 + {70F300C7-1BEE-4787-AFB0-29E614E7C307}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {96BFE8F7-10DB-4228-892C-E4C84174DF6C} + EndGlobalSection +EndGlobal diff --git a/Cronos.vcxproj b/Cronos.vcxproj new file mode 100644 index 0000000..c43ec3e --- /dev/null +++ b/Cronos.vcxproj @@ -0,0 +1,149 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {70f300c7-1bee-4787-afb0-29e614e7c307} + Cronos + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + headers + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + Document + + + + + + + + + + + \ No newline at end of file diff --git a/Cronos.vcxproj.filters b/Cronos.vcxproj.filters new file mode 100644 index 0000000..91da19b --- /dev/null +++ b/Cronos.vcxproj.filters @@ -0,0 +1,41 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + Source Files + + + + + Source Files + + + + + Header Files + + + Header Files + + + \ No newline at end of file diff --git a/Cronos.vcxproj.user b/Cronos.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/Cronos.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/README.md b/README.md index 19d47ff..ec3a9d4 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,18 @@ To compile it you will need: After you have all of the above, navigate to the project's directory and build it with the makefile, the EXE will be in the bin directory. +## Visual Studio Setup +- [VSNASM](https://github.com/ShiftMediaProject/VSNASM) + - Run install_script.bat +- Add NASMPATH environment variable + - NASMPATH=C:\Users\\AppData\Local\bin\NASM\ +- Open Visual Studio & Configure Settings + - Tools > Options > Projects and Solutions > VC++ Project Settings > Build Customization Search Path + - Set to %NASMPATH%;0 + +Optional: +- ‘AsmDude‘ extension for syntax highlighting into .asm files. + ## Contributors Thanks a lot to those people that contributed to this project: diff --git a/x64/Debug/Cronos.Build.CppClean.log b/x64/Debug/Cronos.Build.CppClean.log new file mode 100644 index 0000000..5415c4f --- /dev/null +++ b/x64/Debug/Cronos.Build.CppClean.log @@ -0,0 +1,17 @@ +c:\pentest\cronosa\cronos\x64\debug\vc143.pdb +c:\pentest\cronosa\cronos\x64\debug\vc143.idb +c:\pentest\cronosa\cronos\x64\debug\utils.obj +c:\pentest\cronosa\cronos\x64\debug\main.obj +c:\pentest\cronosa\cronos\x64\debug\cronos.obj +c:\pentest\cronosa\cronos\x64\debug\cronos.ilk +c:\pentest\cronosa\cronos\x64\debug\cronos.exe +c:\pentest\cronosa\cronos\x64\debug\cronos.pdb +c:\pentest\cronosa\cronos\x64\debug\rop.obj +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\cl.command.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\cl.read.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\cl.write.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\link.command.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\link.read.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\link.write.1.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\nasm.read.1u.tlog +c:\pentest\cronosa\cronos\x64\debug\cronos.tlog\nasm.write.1u.tlog diff --git a/x64/Debug/Cronos.exe b/x64/Debug/Cronos.exe new file mode 100644 index 0000000..7bbd315 Binary files /dev/null and b/x64/Debug/Cronos.exe differ diff --git a/x64/Debug/Cronos.exe.recipe b/x64/Debug/Cronos.exe.recipe new file mode 100644 index 0000000..3448863 --- /dev/null +++ b/x64/Debug/Cronos.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\PENTEST\CronosA\Cronos\x64\Debug\Cronos.exe + + + + + + \ No newline at end of file diff --git a/x64/Debug/Cronos.ilk b/x64/Debug/Cronos.ilk new file mode 100644 index 0000000..0361618 Binary files /dev/null and b/x64/Debug/Cronos.ilk differ diff --git a/x64/Debug/Cronos.log b/x64/Debug/Cronos.log new file mode 100644 index 0000000..aca689f --- /dev/null +++ b/x64/Debug/Cronos.log @@ -0,0 +1,6 @@ + src\asm\rop.asm + Cronos.c + Main.c + Utils.c + Generating Code... + Cronos.vcxproj -> C:\PENTEST\CronosA\Cronos\x64\Debug\Cronos.exe diff --git a/x64/Debug/Cronos.obj b/x64/Debug/Cronos.obj new file mode 100644 index 0000000..bc3e949 Binary files /dev/null and b/x64/Debug/Cronos.obj differ diff --git a/x64/Debug/Cronos.pdb b/x64/Debug/Cronos.pdb new file mode 100644 index 0000000..bd9f548 Binary files /dev/null and b/x64/Debug/Cronos.pdb differ diff --git a/x64/Debug/Cronos.tlog/CL.command.1.tlog b/x64/Debug/Cronos.tlog/CL.command.1.tlog new file mode 100644 index 0000000..314e735 Binary files /dev/null and b/x64/Debug/Cronos.tlog/CL.command.1.tlog differ diff --git a/x64/Debug/Cronos.tlog/CL.read.1.tlog b/x64/Debug/Cronos.tlog/CL.read.1.tlog new file mode 100644 index 0000000..afd0c63 Binary files /dev/null and b/x64/Debug/Cronos.tlog/CL.read.1.tlog differ diff --git a/x64/Debug/Cronos.tlog/CL.write.1.tlog b/x64/Debug/Cronos.tlog/CL.write.1.tlog new file mode 100644 index 0000000..4181b57 Binary files /dev/null and b/x64/Debug/Cronos.tlog/CL.write.1.tlog differ diff --git a/x64/Debug/Cronos.tlog/Cronos.lastbuildstate b/x64/Debug/Cronos.tlog/Cronos.lastbuildstate new file mode 100644 index 0000000..b71afd2 --- /dev/null +++ b/x64/Debug/Cronos.tlog/Cronos.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.32.31326:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\PENTEST\CronosA\Cronos\| diff --git a/x64/Debug/Cronos.tlog/Nasm.read.1u.tlog b/x64/Debug/Cronos.tlog/Nasm.read.1u.tlog new file mode 100644 index 0000000..8600ce2 Binary files /dev/null and b/x64/Debug/Cronos.tlog/Nasm.read.1u.tlog differ diff --git a/x64/Debug/Cronos.tlog/Nasm.write.1u.tlog b/x64/Debug/Cronos.tlog/Nasm.write.1u.tlog new file mode 100644 index 0000000..cc80603 Binary files /dev/null and b/x64/Debug/Cronos.tlog/Nasm.write.1u.tlog differ diff --git a/x64/Debug/Cronos.tlog/link.command.1.tlog b/x64/Debug/Cronos.tlog/link.command.1.tlog new file mode 100644 index 0000000..9116e31 Binary files /dev/null and b/x64/Debug/Cronos.tlog/link.command.1.tlog differ diff --git a/x64/Debug/Cronos.tlog/link.read.1.tlog b/x64/Debug/Cronos.tlog/link.read.1.tlog new file mode 100644 index 0000000..b9341c7 Binary files /dev/null and b/x64/Debug/Cronos.tlog/link.read.1.tlog differ diff --git a/x64/Debug/Cronos.tlog/link.write.1.tlog b/x64/Debug/Cronos.tlog/link.write.1.tlog new file mode 100644 index 0000000..1cc9e7f Binary files /dev/null and b/x64/Debug/Cronos.tlog/link.write.1.tlog differ diff --git a/x64/Debug/Cronos.vcxproj.FileListAbsolute.txt b/x64/Debug/Cronos.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..b0f3ad6 --- /dev/null +++ b/x64/Debug/Cronos.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\PENTEST\CronosA\Cronos\x64\Debug\Cronos.exe diff --git a/x64/Debug/Main.obj b/x64/Debug/Main.obj new file mode 100644 index 0000000..b684855 Binary files /dev/null and b/x64/Debug/Main.obj differ diff --git a/x64/Debug/Utils.obj b/x64/Debug/Utils.obj new file mode 100644 index 0000000..0ca788c Binary files /dev/null and b/x64/Debug/Utils.obj differ diff --git a/x64/Debug/rop.obj b/x64/Debug/rop.obj new file mode 100644 index 0000000..2d8940b Binary files /dev/null and b/x64/Debug/rop.obj differ diff --git a/x64/Debug/vc143.idb b/x64/Debug/vc143.idb new file mode 100644 index 0000000..7d6e57d Binary files /dev/null and b/x64/Debug/vc143.idb differ diff --git a/x64/Debug/vc143.pdb b/x64/Debug/vc143.pdb new file mode 100644 index 0000000..8ce2630 Binary files /dev/null and b/x64/Debug/vc143.pdb differ