Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Ensure VirtualAllocEx uses length of dll path +1 for dll injection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfearless committed Sep 12, 2019
1 parent a01e4f1 commit b318aee
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion IEex/IEex.asm
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ InjectDLL PROC hProcess:HANDLE, szDLLPath:DWORD
Invoke lstrlen, szDLLPath
mov szLibPathSize, eax

Invoke VirtualAllocEx, hProcess, NULL, szLibPathSize, MEM_COMMIT, PAGE_READWRITE
Invoke VirtualAllocEx, hProcess, NULL, szLibPathSize+1, MEM_COMMIT, PAGE_READWRITE
mov lpLibAddress, eax
.IF eax == NULL
.IF gConsoleStartedMode == TRUE
Expand Down
Binary file modified IEex/IEex.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion IEex/IEex.inc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ IEEX_ALIGN TEXTEQU <ALIGN 16>
;------------------------------------------------------------------------------
AppName DB "IEex loader",0
szAppName DB "[IEex loader]",0
szAppVersion DB " v1.0.0.8",0
szAppVersion DB " v1.0.0.9",0
szIEexLoaderByfearless DB "IEex loader by fearless: github.com/mrfearless/IEexLoader",0
szIEexByBubb DB "IEex by Bubb: github.com/Bubb13/IEex",0
szCRLF DB 13,10,0
Expand Down
16 changes: 8 additions & 8 deletions IEex/IEex.rap
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ Menu=1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0
[VerInf]
Nme=VERINF1
ID=1
FV=1.0.0.8
PV=1.0.0.8
FV=1.0.0.9
PV=1.0.0.9
VerOS=0x00000004
VerFT=0x00000001
VerLNG=0x00000409
VerCHS=0x000004B0
ProductVersion=1.0.0.8
ProductVersion=1.0.0.9
ProductName=IEex.exe
OriginalFilename=IEex.exe
LegalTrademarks=fearless
LegalCopyright=fearless
InternalName=IEex.exe
FileDescription=IEex loader
FileVersion=1.0.0.8
FileVersion=1.0.0.9
CompanyName=fearless
[Group]
Group=Assembly,Resources,Misc
Expand All @@ -95,8 +95,8 @@ AutoLoad=2,4,5,1
[Size]
4=0,0,0,0,0
5=0,0,0,0,6051
2=0,0,0,0,5121
1=0,0,0,0,16241
2=0,0,0,0,1433
1=0,0,0,0,19726
[RADebugBP]
2=
1=
Expand Down Expand Up @@ -135,10 +135,10 @@ ProductVer2Range=0
ProductVer3Range=0
ProductVer4Range=0
[PTimer]
PTimer=20792248
PTimer=20943710
[Collapse]
2=
1=536871040,8,
1=536871040,8,512
5=
4=
[GroupExpand]
Expand Down
8 changes: 4 additions & 4 deletions IEex/Res/IEexVer.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define VERINF1 1
VERINF1 VERSIONINFO
FILEVERSION 1,0,0,8
PRODUCTVERSION 1,0,0,8
FILEVERSION 1,0,0,9
PRODUCTVERSION 1,0,0,9
FILEOS 0x00000004
FILETYPE 0x00000001
BEGIN
Expand All @@ -10,14 +10,14 @@ BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "fearless\0"
VALUE "FileVersion", "1.0.0.8\0"
VALUE "FileVersion", "1.0.0.9\0"
VALUE "FileDescription", "IEex loader\0"
VALUE "InternalName", "IEex.exe\0"
VALUE "LegalCopyright", "fearless\0"
VALUE "LegalTrademarks", "fearless\0"
VALUE "OriginalFilename", "IEex.exe\0"
VALUE "ProductName", "IEex.exe\0"
VALUE "ProductVersion", "1.0.0.8\0"
VALUE "ProductVersion", "1.0.0.9\0"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file modified IEexDLL/IEex.dll
Binary file not shown.
10 changes: 5 additions & 5 deletions IEexDLL/IEex.rap
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ProductVer2Range=0
ProductVer3Range=0
ProductVer4Range=0
[PTimer]
PTimer=46981093
PTimer=46997988
[GroupExpand]
GroupExpand=1,1,0
[BookMark]
Expand All @@ -120,20 +120,20 @@ GroupExpand=1,1,0
[VerInf]
Nme=VERINF1
ID=1
FV=1.0.0.8
PV=1.0.0.8
FV=1.0.0.9
PV=1.0.0.9
VerOS=0x00000004
VerFT=0x00000002
VerLNG=0x00000409
VerCHS=0x000004B0
ProductVersion=1.0.0.8
ProductVersion=1.0.0.9
ProductName=IEex.dll
OriginalFilename=IEex.dll
LegalTrademarks=fearless
LegalCopyright=fearless
InternalName=IEex.dll
FileDescription=IEex.dll
FileVersion=1.0.0.8
FileVersion=1.0.0.9
CompanyName=fearless
[RADebugBP]
2=
Expand Down
8 changes: 4 additions & 4 deletions IEexDLL/Res/IEexVer.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define VERINF1 1
VERINF1 VERSIONINFO
FILEVERSION 1,0,0,8
PRODUCTVERSION 1,0,0,8
FILEVERSION 1,0,0,9
PRODUCTVERSION 1,0,0,9
FILEOS 0x00000004
FILETYPE 0x00000002
BEGIN
Expand All @@ -10,14 +10,14 @@ BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "fearless\0"
VALUE "FileVersion", "1.0.0.8\0"
VALUE "FileVersion", "1.0.0.9\0"
VALUE "FileDescription", "IEex.dll\0"
VALUE "InternalName", "IEex.dll\0"
VALUE "LegalCopyright", "fearless\0"
VALUE "LegalTrademarks", "fearless\0"
VALUE "OriginalFilename", "IEex.dll\0"
VALUE "ProductName", "IEex.dll\0"
VALUE "ProductVersion", "1.0.0.8\0"
VALUE "ProductVersion", "1.0.0.9\0"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file modified Release/IEex.dll
Binary file not shown.
Binary file modified Release/IEex.exe
Binary file not shown.
Binary file modified Release/IEexLoader.zip
Binary file not shown.

0 comments on commit b318aee

Please sign in to comment.