Government Security
Network Security Resources

Jump to content

Photo

Kill Process In Cmd


  • Please log in to reply
19 replies to this topic

#1 extreme

extreme

    Specialist

  • Sergeant Major
  • 615 posts

Posted 18 April 2004 - 10:57 PM

Is there any way to kill process via CMD or something, but without using 3rd party tools to do it??? I did investigate and couldn't find any way to do it via CMD, but maybe it can be done via VBScripts?? That is fine too... Basicly, any way will do, as long as I can write it manually(CMD, Bat, VBS..)
Anyone knows how?
САМО СЛОГА СРБИНА СПАСАВА

#2 x1`

x1`

    Staff Sergeant

  • Members
  • 412 posts

Posted 18 April 2004 - 11:05 PM

yeh you can use kill.exe
site exec kill.exe program.exe

Attached Files



#3 Guest_BlaStA_*

Guest_BlaStA_*
  • Guests

Posted 18 April 2004 - 11:28 PM

Nice to see you sharing DickyBob, but please, read if you can.

Is there any way to kill process via CMD or something, but without using 3rd party tools to do it???


If the OS is XP, you could use taskkill. Perhaps a bit more background information would be nice.

#4 bnhc

bnhc

    Private First Class

  • Members
  • 38 posts

Posted 18 April 2004 - 11:55 PM

Try CTRL+ALT + DEL and choose the process which u would like to kill....

#5 fivestar

fivestar

    Private First Class

  • Members
  • 24 posts

Posted 18 April 2004 - 11:58 PM

Here have I times one list&kill.bat writen, with which you canlist and afterwards killen the processes. I hopes, the correct foryou.

Attached Files



#6 DumpZ

DumpZ

    Staff Sergeant

  • Members
  • 356 posts

Posted 19 April 2004 - 12:07 AM

With that batch file you still need to have pskill.exe and pslist.exe so the batch file standalone isn't any good.

And like Blasta said you can kill porcesses in WIndows XP with Taskkill.exe and list them with Tasklist.exe

I don't think it's not possible to kill processes in cmd without 3rd party tools on an OS prior to XP

#7 NiteWorM

NiteWorM

    Corporal

  • Members
  • 161 posts

Posted 19 April 2004 - 01:11 AM

five star nice bat file :) works good i couldnt understand the german thou so i translated it :)

@echo off
:choice
@echo .##########################
@echo .##########################
@echo 1 List ####################
@echo 2 Kill ####################

@echo off
set /p choice=

if %choice% == 1 goto List
if %choice% == 2 goto Kill

:List
@echo off
@echo all processes
set /p Liste=
pslist.exe %Liste%
pause
cls
goto choice


:Kill
@echo off
@echo Enter the process to be terminated
set /p Prozess=
pskill.exe %Prozess%
pause
cls
goto choice

save that to a bat file to have an english version :) thankz again great bat file :D

bnhc Posted on Apr 19 2004, 07:55 AM
  Try CTRL+ALT + DEL and choose the process which u would like to kill.... 

emm dude did u even read what the person wrote he wants to do it via cmd line taskmgr.exe is a gui program not a console one :P

(*looks @ the date* few right date this time :P*)

#8 Psychotec

Psychotec

    Private First Class

  • Members
  • 83 posts

Posted 19 April 2004 - 01:14 AM

i think what he means is this:


to get a list of processes you type in this:

net start

Then stop the service by doing:

net stop "service name"

I hope this helps... :D

#9 DumpZ

DumpZ

    Staff Sergeant

  • Members
  • 356 posts

Posted 19 April 2004 - 01:29 AM

By typing net start it lists the running services and i think that the TS want to kill a process

#10 LKM

LKM

    Private First Class

  • Members
  • 66 posts

Posted 19 April 2004 - 03:20 AM

The .bat is nice, but it uses pslist and pskill....and he doesn't want that :[

I use pslist everyday because of ONE thing it has over the simple TLIST.exe : it shows the directory where the .exe is located ! Very nice to remove hackers, in fact. Not to add pslist list process that Tlist doesn't (ie rootkited process)

Fport + pslist => nice combo

#11 Killaloop

Killaloop

    Sergeant First Class

  • Members
  • 677 posts

Posted 19 April 2004 - 03:35 AM

there is no buildin program in windows that can list or kill process within cmdprompt.
However I once found vbscripts which do exactly what you need at microsofts knowledge center.
the scripts are rather big but work nicely!!
attached are 2 scripts one will list the PIDs
usage: cscript process.vbs
the other one will kill the process
usage: cscript kill.vbs PID

Attached Files



#12 nuorder

nuorder

    Sergeant First Class

  • Members
  • 574 posts

Posted 19 April 2004 - 03:49 AM

there is no buildin program in windows that can list or kill process within cmdprompt.

nice scripts
btw there is a task killer built into windowsxp called taskkill - BlaStA even mentioned this in the third post!

eg: from command line kill internet explorer
taskkill /IM iexplore.exe


edit2: hehe killaloop i was editing this post as u were writing urs - 4 minutes thats quick

#13 Killaloop

Killaloop

    Sergeant First Class

  • Members
  • 677 posts

Posted 19 April 2004 - 03:53 AM

there is no buildin program in windows that can list or kill process within cmdprompt.
However I once found vbscripts which do exactly what you need at microsofts knowledge center.
the scripts are rather big but work nicely!!
attached are 2 scripts one will list the PIDs
usage: cscript process.vbs
the other one will kill the process
usage: cscript kill.vbs PID

nice scripts
btw there is a task killer built into windows called taskkill - BlaStA even mentioned this in the third post!

eg: from command line kill internet explorer
taskkill /IM iexplore.exe

yes but taskkill is only present in windows xp as far as I know?
don't have it on my win2000 system.
Recording to Microsoft the vb scripts should work on any os starting from nt4.0 up to now (but who knows...)

#14 pugrit

pugrit

    Corporal

  • Members
  • 176 posts

Posted 19 April 2004 - 09:29 AM

TO SIMPLIFY QPROCESS AND TSKILL:




/* QPROCESS WILL DISPLAY THE PROCESS RUNNING */

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Winds of War>QPROCESS
USERNAME SESSIONNAME ID PID IMAGE
>winds of war console 0 1168 explorer.exe
>winds of war console 0 1624 mcvsshld.exe
>winds of war console 0 1632 mcagent.exe
>winds of war console 0 1668 mcvsescn.exe
>winds of war console 0 1728 dap.exe
>winds of war console 0 1792 mpfagent.exe
>winds of war console 0 1880 mpftray.exe
>winds of war console 0 2004 plguni.exe
>winds of war console 0 164 msmsgs.exe
>winds of war console 0 732 mcvsftsn.exe
>winds of war console 0 1576 iexplore.exe
>winds of war console 0 3356 wuauclt.exe
>winds of war console 0 3408 cmd.exe
>winds of war console 0 3468 qprocess.exe

C:\Documents and Settings\Winds of War>TSKILL 3408

/* TSKILL 3408 WILL KILL THE CMD PROCESS RUNNING*/

#15 Guest_tstngry_*

Guest_tstngry_*
  • Guests

Posted 19 April 2004 - 08:42 PM

For killing tasks via cmd i use iether

1. taskkill /f /im appname.exe
2. taskkill /f /pid appid

-To see a list of tasks and their process id's type "tasklist" im not sure if this only works in winxp, but those are the boxes i usually root anyway ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users