#!/bin/bash

ps aux | grep -ie $1 | awk '{kill -9 $2}'

 

Usage:

$ monsterkill dodgyscript.php

Use with care!!