Skip to content

Commit 62f1b73

Browse files
author
BetaLeaf
authored
Add files via upload
1 parent 3ffba17 commit 62f1b73

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

FPR.au3

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
2-
#AutoIt3Wrapper_Icon=C:\ISN AutoIt Studio\autoitstudioicon.ico
32
#AutoIt3Wrapper_Outfile=D:\Google Drive\Documents\Github\False-Positive-Reporter\FPR.exe
4-
#AutoIt3Wrapper_Res_Fileversion=1.3.0.2
3+
#AutoIt3Wrapper_Res_Fileversion=1.3.1.0
54
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
6-
#include "File.au3"
5+
#include <File.au3>
76
#include <ButtonConstants.au3>
87
#include <EditConstants.au3>
98
#include <GUIConstantsEx.au3>
109
#include <StaticConstants.au3>
1110
#include <WindowsConstants.au3>
1211
Opt("WinTitleMatchMode", -2)
12+
Global $VendorList = "support.is@cmclab.net;samples@digital-defender.com;sample@preventon.com;support-tech@returnil.com;malwaresample@herdprotect.com;info@chicalogic.com;submit@antiy.com;avlnetwork@antiy.com;virus@arcabit.com;v3sos@ahnlab.com;virus@avast.com;virus@avira.com;virus_submission@bitdefender.com;samples@bluepointsecurity.com;malwaresubmit@avlab.comodo.com;vms@drweb.com;malware@emcosoftware.com;submit@emsisoft.com;virus@esafe.com;samples@escanav.com;submitvirus@fortinet.com;research@spy-emergency.com;viruslab@f-prot.com;labs@fsb-antivirus.com;vsamples@f-secure.com;samples@ikarus.at;submit@samples.immunet.com;newvirus@kaspersky.com;support@jiangmin.com;research@lavasoft.com;virus_research@avertlabs.com;virus@micropoint.com.cn;avsubmit@submit.microsoft.com;virus@nanoav.ru;samples@eset.com;support@noralabs.com;support@norman.com;virus_info@inca.co.kr;virus@pandasecurity.com;psafe@psafe.com;kefu@360.cn;support@rubus.co.in;newvirus@s-cop.com;samples@sophos.com;detections@spybot.info;vlab@srnmicro.com;avsubmit@symantec.com;virus@hacksoft.com.pe;virus@thirtyseven4.com;cainfo@ca.com;submit@trojanhunter.com;support@simplysup.com;virus@filseclab.com;malware-cruncher@sunbelt-software.com;viruslab@hauri.co.kr;newvirus@anti-virus.by;virus@zillya.com;huangruimin@kingsoft.com;support@aegislab.com;viruslab@quickheal.com;trojans@agnitum.com;bav@baidu.com;bkav@bkav.com.vn;samples@xvirus.net;falsepositive@reasoncoresecurity.com;virus_research_gateway@avertlabs.com;virus_research@mcafee.com"
1313
Global $BannedExtensions = [".ADE", ".ADP", ".BAT", ".CHM", ".CMD", ".COM", ".CPL", ".EXE", ".HTA", ".INS", ".ISP", ".JAR", ".JS", ".JSE", ".LIB", ".LNK", ".MDE", ".MSC", ".MSP", ".MST", ".PIF", ".SCR", ".SCT", ".SHB", ".SYS", ".VB", ".VBE", ".VBS", ".VXD", ".WSC", ".WSF", ".WSH"]
1414
startup()
15+
If $cmdlineraw = "-update" Then
16+
If MsgBox(BitOR($MB_YESNO, $MB_APPLMODAL, $MB_ICONWARNING), "False Positive Reporter", "This will overwrite the list of vendors with the latest known list. Are you sure you want to do this?") = $IDYES Then RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ToAddress", "REG_SZ", $VendorList)
17+
Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "Done.")
18+
EndIf
1519
If $cmdlineraw = "-config" Then
1620
setup() ; Run with -config flag to reconfigure.
17-
Exit
1821
EndIf
1922
OnAutoItExitRegister("_OnExit")
2023
FileInstall("7za.exe", @TempDir & "\7za.exe", 1)
@@ -51,7 +54,7 @@ Func setup()
5154
If RegRead("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ToAddress") Then
5255
Global $ToAddressDefault = RegRead("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ToAddress")
5356
Else
54-
Global $ToAddressDefault = "support.is@cmclab.net;samples@digital-defender.com;sample@preventon.com;support-tech@returnil.com;malwaresample@herdprotect.com;info@chicalogic.com;submit@antiy.com;avlnetwork@antiy.com;virus@arcabit.com;v3sos@ahnlab.com;virus@avast.com;virus@avira.com;virus_submission@bitdefender.com;samples@bluepointsecurity.com;malwaresubmit@avlab.comodo.com;vms@drweb.com;malware@emcosoftware.com;submit@emsisoft.com;virus@esafe.com;samples@escanav.com;submitvirus@fortinet.com;research@spy-emergency.com;viruslab@f-prot.com;labs@fsb-antivirus.com;vsamples@f-secure.com;samples@ikarus.at;submit@samples.immunet.com;newvirus@kaspersky.com;support@jiangmin.com;research@lavasoft.com;virus_research@avertlabs.com;virus@micropoint.com.cn;avsubmit@submit.microsoft.com;virus@nanoav.ru;samples@eset.com;support@noralabs.com;support@norman.com;virus_info@inca.co.kr;virus@pandasecurity.com;psafe@psafe.com;kefu@360.cn;support@rubus.co.in;newvirus@s-cop.com;samples@sophos.com;detections@spybot.info;vlab@srnmicro.com;avsubmit@symantec.com;virus@hacksoft.com.pe;virus@thirtyseven4.com;cainfo@ca.com;submit@trojanhunter.com;support@simplysup.com;virus@filseclab.com;malware-cruncher@sunbelt-software.com;viruslab@hauri.co.kr;newvirus@anti-virus.by;virus@zillya.com;huangruimin@kingsoft.com;support@aegislab.com;viruslab@quickheal.com;trojans@agnitum.com;bav@baidu.com;bkav@bkav.com.vn;samples@xvirus.net;falsepositive@reasoncoresecurity.com;virus_research_gateway@avertlabs.com"
57+
Global $ToAddressDefault = $VendorList
5558
EndIf
5659
$ToEmailInput = GUICtrlCreateInput($ToAddressDefault, 65, 81, 121, 21)
5760
$ToEmailLabel = GUICtrlCreateLabel("To", 20, 84, 17, 17)
@@ -103,7 +106,9 @@ Func setup()
103106
RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "Password", "REG_SZ", $Password)
104107
RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "FromAddress", "REG_SZ", $FromAddress)
105108
RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ssl", "REG_SZ", $ssl)
106-
Return
109+
MsgBox("", "False Positive Reporter - Saved!", "To submit a false positive, simply drag & drop your files onto FPR.exe.")
110+
If MsgBox(BitOR($MB_YESNO, $MB_APPLMODAL), "False Positive Reporter", "Would you also like to add this to the Send To context menu?") = $IDYES Then FileCopy(@ScriptFullPath, @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\SendTo\AV Vendors (for whitelisting).exe",1)
111+
Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "Done.")
107112
EndSwitch
108113
WEnd
109114
EndFunc ;==>setup
@@ -163,12 +168,12 @@ Func mail()
163168
$cmdline[$i] &= ".tmp"
164169
EndIf
165170
Next
166-
ShellExecuteWait(@TempDir & '\7za.exe', 'a -tzip "' & $tpath & 'InfectedFiles.zip" "' & $cmdline[$i] & '" -pinfected', $tpath, '', @SW_HIDE)
171+
ShellExecuteWait(@TempDir & '\7za.exe', 'a -tzip "' & $tpath & 'FalsePositives.zip" "' & $cmdline[$i] & '" -pinfected', $tpath, '', @SW_HIDE)
167172
If FileExists(StringTrimRight($cmdline[$i], 4) & ".tmp") Then FileDelete(StringTrimRight($cmdline[$i], 4) & ".tmp")
168-
$aFile=StringSplit($cmdline[$i],"/\")
173+
$aFile = StringSplit($cmdline[$i], "/\")
169174
$Body &= $aFile[$aFile[0]] & @CRLF
170175
Next
171-
Global $AttachFiles = $tpath & "InfectedFiles.zip"
176+
Global $AttachFiles = $tpath & "FalsePositives.zip"
172177
$CcAddress = "" ; address for cc - leave blank if not needed
173178
$BccAddress = "" ; address for bcc - leave blank if not needed
174179
$Importance = "High" ; Send message priority: "High", "Normal", "Low"
@@ -180,7 +185,7 @@ Func mail()
180185
MsgBox(0, @ScriptName, 'File is too large to send. It has been copied to your desktop as "FPR-Files.zip".')
181186
Exit
182187
EndIf
183-
If FileGetSize($AttachFiles) > 10000000 Then Global $FileOver10MB = 'Some vendors will reject your attachment because it was over 10 mb. Please check your email. The attachement has been copied to your desktop as "FPR-Files.zip".'
188+
If FileGetSize($AttachFiles) > 10000000 Then Global $FileOver10MB = 'Some vendors will reject your attachment because it was over 10 mb. Please verify that the email was sent by checking your sent folder. The attachement has been copied to your desktop as "FPR-Files.zip".'
184189
ProgressSet(100, "Sending Email to Anti Virus Vendors." & @CRLF & "This can take a while depending on your upload speed." & @CRLF & "Stand up and stretch while you wait.")
185190
$rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)
186191
If @error Then

0 commit comments

Comments
 (0)