Jump to content

ProcessClose dont close the process >.<


Recommended Posts

What does ProcessClose return?

$Result = ProcessClose($Process) 
Consolewrite("Result: " & $Result & ", @Error: " & @error & @CRLF)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Without knowing what process it is ..

and providing that the code is correct ..

My first guess -- it's a protected process or service.

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

There are MANY ways to protect a process.

And there are processes which have good reasons for being protected...

There are also many ways to force a process into submission...

But, because many methods are dirty and because of above mentioned argument...

You wont find official support for them here.

..but since I'm qurious, what process do you need killed?

If I know what it is... suggesting something might be easier...

/Manko

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...
Link to comment
Share on other sites

#include <NomadMemory.au3>

_NOP(ProcessExists(Process.exe))

Func _NOP($PID)
    Local $MemoryOpen, $BaseAddr, $FinalAddr, $Allow, $Write

    $MemoryOpen = _MemoryOpen($PID)
    $BaseAddr = _MemoryGetBaseAddress($MemoryOpen, 1)

    For $X = 1 To 10000 Step 10
        $FinalAddr = "0x" & Hex($BaseAddr + $X)

        $Allow = DllCall("kernel32.dll", "bool", "VirtualProtectEx", "handle", $MemoryOpen[0], "ptr", $FinalAddr, "ulong_ptr", 4, "dword", 0x40, "dword*", "NULL")
        $Write = _MemoryWrite($FinalAddr, $MemoryOpen, 0x90, "byte")
        If $Write <> 1 Then ConsoleWrite("NOP of " & $FinalAddr & " failed. Error code " & @error & @CRLF)
    Next

    ConsoleWrite("Nopped 0x" & Hex($BaseAddr) & "-" & $FinalAddr & @CRLF)

    _MemoryClose($MemoryOpen)
EndFunc

If it can crash my AntiVirus, I'm pretty sure it will work for most things.

Edited by darkjohn20
Link to comment
Share on other sites

@darkjohn20: Not very protected if it allows you to "OpenProcess"... You should change anti-virus... :idea:

/Manko

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...
Link to comment
Share on other sites

It's actually very protective. All I had to do was press allow action on 500000000 things and it worked :idea:. The point is for him to kill his own process, in which case he would accept these. If he tried it on somebody else with a good AV, they could easily stop it.

This method basically has a small amount of protection from abuse. I was just surprised because trying anything else would produce a "You're not allowed to do this" type of message. Perhaps it was the VirtualProtectEx that got around this?

Link to comment
Share on other sites

It's actually very protective. All I had to do was press allow action on 500000000 things and it worked :idea:.

:)

/Manko

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...
Link to comment
Share on other sites

hehe

nice anti virus

anyway this process also dont respond to send and mouse click

or even mouse move ~_~ anyway to bypass it?

if it's not a "nice" way pm it to me pls

btw i build a killing scrip to a online game i play at work and i kinda not allow to do so i need fast killing way xD

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...