Skip to content

Commit 089c07a

Browse files
committed
Merge pull request x64dbg#423 from x64dbg/Nukem9-master
Nukem9 master
2 parents a1ec3e7 + c70edc0 commit 089c07a

File tree

595 files changed

+44340
-44639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

595 files changed

+44340
-44639
lines changed

.gitignore

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
#ignore directories
2-
bin/
1+
# Ignored directories
2+
bin/*/
33
obj/
44
ipch/
55
Win32/
66
x64/
77
release/
88
build/
9+
gui_build/
910
debug/
1011
*XE Results*/
1112
doxygen*/
1213
doc/
14+
COV/
1315

14-
#global filetypes to ignore
16+
# Global filetypes to ignore
1517
*.depend
1618
*.layout
1719
*.patch
@@ -30,49 +32,32 @@ doc/
3032
*.pro.user.*
3133
*.orig
3234
cov-int*
33-
COV/
3435
*.pdb
3536
ui_*
37+
*.aps
38+
*.pro.user
39+
.DS_Store
40+
*.ipgset
41+
*.vcxproj.user
3642

37-
#project to ignore
38-
todo_bridge.txt
43+
# Project to ignore
3944
help/x64*dbg.chm
4045
help/output/
4146

42-
#debugger files to ignore
43-
x64_dbg_dbg/ODbgScript.chm
44-
x64_dbg_dbg/ODbgScript.chw
45-
x64_dbg_dbg/CppCheckResults.xml
46-
x64_dbg_dbg/.cccc/
47-
x64_dbg_dbg/suggestions.txt
47+
# Debugger files to ignore
48+
CppCheckResults.xml
49+
src/dbg/ODbgScript.chm
50+
src/dbg/ODbgScript.chw
4851

49-
# For GUI
50-
*.pro.user
51-
x64_dbg_gui/DebuggerX64-build-Debug
52-
x64_dbg_gui/DebuggerX64-build-Release
53-
x64_dbg_gui/bin
54-
x64_dbg_gui/Project/GeneratedFiles/
55-
x64_dbg_gui/Project/release/
56-
x64_dbg_gui/Project/Win32/
57-
x64_dbg_gui/Project/x64/
58-
x64_dbg_gui/Project/Makefile
59-
x64_dbg_gui/Project/Makefile.Debug
60-
x64_dbg_gui/Project/Makefile.Release
61-
x64_dbg_gui/Project/Src/Bridge/libx32*bridge.a
62-
x64_dbg_gui/Project/Src/Bridge/libx64*bridge.a
63-
x64_dbg_gui/Project/Src/Bridge/x32*bridge.lib
64-
x64_dbg_gui/Project/Src/Bridge/x64*bridge.lib
65-
x64_dbg_gui/*/Makefile
66-
x64_dbg_gui/*/Makefile.Debug
67-
x64_dbg_gui/*/Makefile.Release
52+
# GUI files
53+
src/gui/build
54+
src/gui/Makefile*
6855
tools/
6956
RCa*
70-
*.aps
57+
src/build-*/
7158

72-
# Intel performance guide
73-
*.ipgset
74-
75-
#exceptions
76-
!/AStyleWhore.exe
77-
!/AStyle.dll
78-
.DS_Store
59+
# Exceptions
60+
!/hooks/AStyleWhore.exe
61+
!/hooks/AStyle.dll
62+
!/bin/x64dbg_shell_remove.reg
63+
!*.lib

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Jenkins build server can be found [here](http://jenkins.x64dbg.com).
2929
- Fully customizable color scheme
3030
- Dynamically recognize modules and strings
3131
- Import reconstructor integrated (Scylla)
32-
- Fast disassembler (BeaEngine)
32+
- Fast disassembler (Capstone)
3333
- User database (JSON) for comments, labels, bookmarks, etc.
3434
- Plugin support with growing API
3535
- Extendable, debuggable scripting language for automation
@@ -39,13 +39,15 @@ Jenkins build server can be found [here](http://jenkins.x64dbg.com).
3939
- Built-in assembler (XEDParse)
4040
- Executable patching
4141
- Yara Pattern Matching
42+
- Decompiler (Snowman)
43+
- Analysis
4244

4345
## License
4446
*x64dbg* is licensed under GPLv3, which means you can freely distribute and/or modify the source of *x64dbg*, as long as you share your changes with us. The only exception is that plugins you write do not have to comply with the GPLv3 license. They do not have to be open-source and they can be commercial and/or private. The only exception to this is when your plugin uses code copied from *x64dbg*. In that case you would still have to share the changes to *x64dbg* with us.
4547

4648
## Credits
4749
- Debugger core by [TitanEngine Community Edition](https://bitbucket.org/mrexodia/titanengine-update)
48-
- Disassembly powered by [BeaEngine](http://www.beaengine.org) ([Updated](https://bitbucket.org/mrexodia/beaengine)) & [Capstone](http://capstone-engine.org)
50+
- Disassembly powered by [Capstone](http://capstone-engine.org)
4951
- Assembly powered by [XEDParse](https://bitbucket.org/mrexodia/xedparse)
5052
- Import reconstruction powered by [Scylla](https://github.com/NtQuery/Scylla)
5153
- JSON powered by [Jansson](http://www.digip.org/jansson)
File renamed without changes.

build.bat

Lines changed: 39 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,70 +3,64 @@
33
echo Saving PATH
44
if "%OLDPATH%"=="" set OLDPATH=%PATH%
55

6-
if "%1"=="x32" (
7-
call setenv.bat x32
8-
set type=Win32
9-
goto build
10-
) else if "%1"=="x64" (
11-
call setenv.bat x64
12-
set type=x64
13-
goto build
14-
) else if "%1"=="coverity" (
15-
if "%2"=="" (
16-
echo "usage: build.bat coverity x32/x64"
17-
goto :eof
18-
)
19-
goto coverity
20-
) else if "%1"=="doxygen" (
21-
goto doxygen
22-
) else if "%1"=="chm" (
23-
goto chm
24-
) else (
25-
echo "usage: build.bat x32/x64/coverity/doxygen/chm"
26-
goto :eof
27-
)
6+
cd %~dp0
7+
8+
if /i "%1"=="x32" call setenv.bat x32&set type=Configuration=Release;Platform=Win32&goto build
9+
if /i "%1"=="x64" call setenv.bat x64&set type=Configuration=Release;Platform=x64&goto build
10+
if /i "%1"=="coverity" goto coverity
11+
if /i "%1"=="doxygen" call setenv.bat doxygen&goto doxygen
12+
if /i "%1"=="chm" call setenv.bat chm&goto chm
13+
14+
goto usage
15+
2816

2917
:build
3018
echo Building DBG...
31-
devenv /Rebuild "Release|%type%" x64_dbg.sln
32-
33-
echo GUI prebuildStep
34-
cd x64_dbg_gui\Project
35-
cmd /k "prebuildStep.bat %1"
36-
cd ..
37-
cd ..
19+
msbuild.exe x64dbg.sln /m /verbosity:minimal /t:Rebuild /p:%type%
3820

3921
echo Building GUI...
40-
rmdir /S /Q build
41-
mkdir build
42-
cd build
43-
qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release
22+
rmdir /S /Q src\gui_build
23+
cd src\gui
24+
qmake x64dbg.pro CONFIG+=release
4425
jom
45-
cd ..
26+
cd ..\..
27+
goto :restorepath
4628

47-
echo GUI afterbuildStep
48-
cd x64_dbg_gui\Project
49-
call afterbuildStep.bat %1 ..\..\build\release
50-
cd ..
51-
cd ..
52-
goto restorepath
5329

5430
:coverity
31+
if "%2"=="" (
32+
echo "Usage: build.bat coverity x32/x64"
33+
goto usage
34+
)
35+
5536
call setenv.bat coverity
5637
echo Building with Coverity
5738
cov-configure --msvc
5839
cov-build --dir cov-int --instrument build.bat %2%
59-
goto restorepath
40+
goto :restorepath
41+
6042

6143
:doxygen
62-
call setenv.bat doxygen
6344
doxygen
64-
goto restorepath
45+
goto :restorepath
46+
6547

6648
:chm
67-
call setenv.bat chm
6849
start /w "" winchm.exe help\x64_dbg.wcp /h
69-
goto restorepath
50+
goto :restorepath
51+
52+
53+
:usage
54+
echo "Usage: build.bat x32/x64/coverity (x32/x64)/doxygen/chm"
55+
echo.
56+
echo Examples:
57+
echo build.bat x32 : builds 32-bit release build
58+
echo build.bat x64 : builds 64-bit release build
59+
echo build.bat coverity x32 : builds 32-bit coverity build
60+
echo build.bat coverity x64 : builds 64-bit coverity build
61+
echo build.bat doxygen : generate doxygen documentation
62+
echo build.bat chm : generate windows help format documentation
63+
goto :restorepath
7064

7165
:restorepath
7266
echo Resetting PATH

clean.bat

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,49 @@
11
@echo off
2-
echo cleaning base directory...
2+
3+
echo Cleaning base directory...
34
del /Q *.sdf
45
del /Q *.layout
56
del /Q /A H *.suo
67
rmdir /S /Q ipch
78
rmdir /S /Q release
8-
echo cleaning x64_dbg_bridge...
9-
cd x64_dbg_bridge
10-
rmdir /S /Q obj
11-
rmdir /S /Q Win32
12-
rmdir /S /Q x64
13-
del /Q *.bmarks
14-
del /Q *.layout
15-
del /Q *.depend
16-
cd ..
17-
echo cleaning x64_dbg_dbg...
18-
cd x64_dbg_dbg
19-
rmdir /S /Q obj
20-
rmdir /S /Q Win32
21-
rmdir /S /Q x64
22-
del /Q *.bmarks
23-
del /Q *.layout
24-
del /Q *.depend
25-
cd ..
26-
echo cleaning x64_dbg_exe...
27-
cd x64_dbg_exe
28-
rmdir /S /Q obj
29-
rmdir /S /Q Win32
30-
rmdir /S /Q x64
31-
del /Q *.bmarks
32-
del /Q *.layout
33-
del /Q *.depend
34-
cd ..
35-
echo cleaning x64_dbg_gui...
36-
cd x64_dbg_gui
37-
rmdir /S /Q bin
38-
rmdir /S /Q Project\GeneratedFiles
39-
rmdir /S /Q Project\release
40-
rmdir /S /Q Project\debug
41-
rmdir /S /Q Project\Win32
42-
rmdir /S /Q Project\x64
43-
del /Q Project\Src\Bridge\libx32bridge.a
44-
del /Q Project\Src\Bridge\libx64bridge.a
45-
del /Q Project\Src\Bridge\x32bridge.lib
46-
del /Q Project\Src\Bridge\x64bridge.lib
47-
cd ..
48-
echo cleaning bin\
9+
rmdir /S /Q build
10+
rmdir /S /Q cov-int
11+
12+
echo Cleaning BRIDGE...
13+
cd src\bridge
14+
call :delfiles
15+
16+
echo Cleaning DBG...
17+
cd src\dbg
18+
call :delfiles
19+
20+
echo Cleaning EXE...
21+
cd src\exe
22+
call :delfiles
23+
24+
echo Cleaning LAUNCHER...
25+
cd src\launcher
26+
call :delfiles
27+
28+
echo Cleaning GUI SRC...
29+
rmdir /S /Q src\gui_build
30+
31+
echo Cleaning GUI...
32+
cd src/gui
33+
rmdir /S /Q build
34+
del /Q Makefile*
35+
del /Q *.pdb
36+
cd ..\..
37+
38+
echo Cleaning bin\
4939
del /Q bin\*.pdb
5040
del /Q bin\*.exp
5141
del /Q bin\*.a
5242
del /Q bin\*.lib
5343
del /Q bin\*.def
54-
del /Q bin\x96_dbg.exe
55-
echo cleaning bin\x32...
44+
del /Q bin\x96dbg.exe
45+
46+
echo Cleaning bin\x32...
5647
rmdir /S /Q bin\x32\db
5748
del /Q bin\x32\*.pdb
5849
del /Q bin\x32\*.exp
@@ -63,7 +54,8 @@ del /Q bin\x32\x32dbg.exe
6354
del /Q bin\x32\x32dbg.dll
6455
del /Q bin\x32\x32gui.dll
6556
del /Q bin\x32\x32bridge.dll
66-
echo cleaning bin\x64...
57+
58+
echo Cleaning bin\x64...
6759
rmdir /S /Q bin\x64\db
6860
del /Q bin\x64\*.pdb
6961
del /Q bin\x64\*.exp
@@ -74,8 +66,21 @@ del /Q bin\x64\x64dbg.exe
7466
del /Q bin\x64\x64dbg.dll
7567
del /Q bin\x64\x64gui.dll
7668
del /Q bin\x64\x64bridge.dll
77-
echo cleaning help...
69+
70+
echo Cleaning help...
7871
cd help
7972
del /Q *.chm
8073
rmdir /S /Q output
81-
exit 0
74+
75+
echo Done!
76+
exit 0
77+
78+
:delfiles
79+
rmdir /S /Q obj
80+
rmdir /S /Q Win32
81+
rmdir /S /Q x64
82+
del /Q *.bmarks
83+
del /Q *.layout
84+
del /Q *.depend
85+
del /Q *.pdb
86+
cd ..\..

formatting_regexes.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.
Binary file not shown.

hooks/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#
55

66
#check if the formatter is present
7-
if [ ! -f ./AStyleWhore.exe ]; then
7+
if [ ! -f ./hooks/AStyleWhore.exe ]; then
88
echo "AStyleWhore not found!"
99
exit 0
1010
fi
1111

1212
#format the code
13-
"./AStyleWhore.exe" Silent
13+
"./hooks/AStyleWhore.exe" Silent
1414

1515
#exit when nothing needs to be done
1616
if [ $? == 0 ]; then
@@ -28,6 +28,6 @@ fi
2828
#cancel commit if the changes were undone by the formatting
2929
gitFiles=$(git diff-index --name-only --cached HEAD)
3030
if [ -z "$gitFiles" ]; then
31-
"./AStyleWhore.exe" "After formatting, no files were staged..."
31+
"./hooks/AStyleWhore.exe" "After formatting, no files were staged..."
3232
exit 1
3333
fi

setenv.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if "%1"=="x32" (
2121
) else if "%1"=="chm" (
2222
goto chm
2323
) else (
24-
echo "usage: setenv x32/x64/coverity/doxygen/chm"
24+
echo "Usage: setenv x32/x64/coverity/doxygen/chm"
2525
goto :eof
2626
)
2727

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)