Write a script

Employer
[no-member:pro]Viktoriya[/no-member:pro]
Project parameters
Type of cooperationOne-time project
SectionWeb development, Web programming
Prepaymentwithout prepayment
Payment methodsBank transfer
Acceptance of requestsfrom Jul 12, 2023 until Jul 27, 2023
Project description
Web developer services are required. You need to write a script to stop running files in the system. The goal is to stop third-party processes (all except system processes). The script is written on the AVZ script editor, it is used in it.
Example
Var Var Var Var Var.
i: integer;
Begin.
// Updating the process list
RefreshProcessList;
AddToLog ('Number of processes = '+IntToStr' (GetProcessCount))
// Cycle of analysis of the received list
for i := 0 to GetProcessCount - 1 do start
// PID process output and its name
AddToLog(IntToStr(GetProcessPID(i)) + '+ GetProcessName(i)');
// Stopping the process under condition
if pos('trojan.exe', LowerCase(GetProcessName(i))) > 0 then
TerminateProcess(GetProcessPID(i))
end;
End.
The following examples were used: AddToLog, GetProcessCount, GetProcessName, GetProcessPID, RefreshProcessList, TerminateProcess
This example demonstrates the use of all the functions described above to work with processes. First, the process list is updated using the RefreshProcessList function. Then, the list is viewed in a loop with the information output in the protocol.
In addition, processes whose executable file name contains the text “trojan.exe” are terminated by calling TerminateProcess, to which the process identifier (PID) is transmitted.
Example
Var Var Var Var Var.
i: integer;
Begin.
// Updating the process list
RefreshProcessList;
AddToLog ('Number of processes = '+IntToStr' (GetProcessCount))
// Cycle of analysis of the received list
for i := 0 to GetProcessCount - 1 do start
// PID process output and its name
AddToLog(IntToStr(GetProcessPID(i)) + '+ GetProcessName(i)');
// Stopping the process under condition
if pos('trojan.exe', LowerCase(GetProcessName(i))) > 0 then
TerminateProcess(GetProcessPID(i))
end;
End.
The following examples were used: AddToLog, GetProcessCount, GetProcessName, GetProcessPID, RefreshProcessList, TerminateProcess
This example demonstrates the use of all the functions described above to work with processes. First, the process list is updated using the RefreshProcessList function. Then, the list is viewed in a loop with the information output in the protocol.
In addition, processes whose executable file name contains the text “trojan.exe” are terminated by calling TerminateProcess, to which the process identifier (PID) is transmitted.
Attached files
Files are available only to Freelancers and the project author