[711chan]  -  [WT]  [Home] [Manage]

[Return]
Posting mode: Reply
Name
Email
Subject   (reply to 50)
Message
File
Password  (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 264 unique user posts. View catalog

  • Blotter updated: 2010-01-06 Show/Hide Show All

we need $20/mo

File 124616497515.gif - (832.02KB , 256x192 , 1180269612433.gif )
50 No. 50
#!/bin/sh
#ukill.sh - written to pwn compromised accounts
#kthx :)


ps -aufx | grep $1 | awk -F ' ' '{print "kill "$2}' > die.sh && sh die.sh && echo "All user processes killed\n"
netstat -pant | grep $1 | awk -F ' ' '{print $7}' | awk -F '\/' '{print "kill "$1}' > con.sh && sh con.sh
echo "All user's connections killed.\n"
echo "Enter new password for user\n\n"
passwd $1

echo "Ok, send an email to $1 telling him blahz."
>> No. 75
Sauce on your pic, OP? I don't care about your scr1pt, sorry.
>> No. 223
lame script. not useful in any circumstance, and does things ass backwards. if you're the user, you don't want to kill all your own processes. if you're someone else, you can't do it without being root.
the netstat is also redundant, btw, owned processes would have been killed in the first sweep, including processes owned
and -aufx and -pant don't work in GNU versions of utils. you want something like netstat -pate (no n, which will make your grep useless, and add e, which shows users)
ps could be -fu $1 or waux | grep $1

anyway, your script sucks.


Delete post []
Password  
Report post
Reason