Виктория
1

Виктория

no recommendations
no complaints
Project title: Write a script
Type of cooperation: One-time project
Section: Web development, Web programming
Prepayment: without prepayment
Payment methods: Bank transfer
Acceptance of requests: from until 2023-07-27

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.

Attached files:
Attached files are available only to Freelancers and the project author
Project author
Виктория