Skip to content

Commit 0361c8e

Browse files
author
BetaLeaf
authored
Update
Changed the body's file list from using an absolute path to a relative path.
1 parent 18d1d0a commit 0361c8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FPR.au3

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
22
#AutoIt3Wrapper_Icon=C:\ISN AutoIt Studio\autoitstudioicon.ico
3+
#AutoIt3Wrapper_Outfile=D:\Google Drive\Documents\Github\False-Positive-Reporter\FPR.exe
34
#AutoIt3Wrapper_Res_Fileversion=1.3.0.0
45
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
56
#include "File.au3"
@@ -164,7 +165,8 @@ Func mail()
164165
Next
165166
ShellExecuteWait(@TempDir & '\7za.exe', 'a -tzip "' & $tpath & 'InfectedFiles.zip" "' & $cmdline[$i] & '" -pinfected', $tpath, '', @SW_HIDE)
166167
If FileExists(StringTrimRight($cmdline[$i], 4) & ".tmp") Then FileDelete(StringTrimRight($cmdline[$i], 4) & ".tmp")
167-
$Body &= $cmdline[$i] & @CRLF
168+
$aFile=StringSplit($cmdline[$i],"/\")
169+
$Body &= $aFile[$aFile[0]] & @CRLF
168170
Next
169171
Global $AttachFiles = $tpath & "InfectedFiles.zip"
170172
$CcAddress = "" ; address for cc - leave blank if not needed

0 commit comments

Comments
 (0)