Solved

ASM Process Killer

Posted on 2004-08-13
3
325 Views
Last Modified: 2008-02-26
hello i need a code or full code Killing Procces For Example

when i build the code and run it
it will kill hello.exe  

cuz i need the code to make it killer process program
i need the code without menu like file and and ..
thx

Note : i don't need the code that writing with C or C++ Programming Language cuz im learning it and i have done one

i need the code that wrting with Assembly Programming Language

Big Thanks :)
0
Comment
Question by:hanagoku
3 Comments
 
LVL 1

Accepted Solution

by:
aneim earned 60 total points
ID: 11857565
Hi HanaGoku,

this code snipet just close the Windows Calculator and exit. Its look by the WindowTitle.
Firts Get the windowhandle with FindWindow and them Send a close command.


Hope it Helps.
I used MASM to do this app.

------------------------------------- BEGIN SNIPET
; #########################################################################
      .386
      .model flat, stdcall
      option casemap :none   ; case sensitive
; #########################################################################

      include \masm32\include\windows.inc
      include \masm32\include\user32.inc
      include \masm32\include\kernel32.inc

      includelib \masm32\lib\user32.lib
      includelib \masm32\lib\kernel32.lib

; #########################################################################
    .data

WindowTitle db "Calculator",0
    .code

start:
        invoke FindWindowA, 0, ADDR WindowTitle
        invoke SendMessageTimeout, EAX, WM_CLOSE, 0, 0, SMTO_ABORTIFHUNG or SMTO_NORMAL, 5000, 0
        invoke ExitProcess,0

; #########################################################################

end start
------------------------------------- END SNIPET
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FIR_filter 2 224
push(rx) in Beta 21 381
Binary/Hexadecimal conversion 8 630
query on ldd in Linux 16 573
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question