Solved

ASM Process Killer

Posted on 2004-08-13
3
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cascading assemblies in .net libraries 4 358
Convert MP3/Wav to bin format ? 4 978
Binary Bomb/GDB Questions 10 1,936
IE9 Blank pages 5 636
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Read our guide on how to survive being on-call.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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