2

I injected an sh script (https://github.com/jart/rickrollrc) using ./astley.sh inject evil for a joke but now when I need the terminal I have to wait and then lets me do commands. How do I UN-inject the script so I can go on the terminal immediately? Also I'm using Ubuntu 12.04 LTS if that helps.

JackLock
  • 329

3 Answers3

3

From the readme.

Misc.

If you've astley-overdosed:

./astley.sh stop

And also remove the script.


  • As far as I can tell is that you need to remove the script from disc.
  • A reboot will clean the process from memory OR do a ps -ef|grep astley and kill the process-id.
Rinzwind
  • 309,379
1

I'm guessing this should only be running in the terminal you're running. Simplest way to fix this would be to boot into a livecd and undo it.Alternately, if booting into a livecd sounds like too much work you'll want to boot into single user mode (so you're root) and do the same thing.

To undo it, you simply need to go into your home directory from the other install, and remove it from your .bashrc, or better yet, work out from bashrc where astley.sh is now, and delete it (which is safer, since then you can edit bashrc from your own account, which avoids the risk of accidentally changing ownership to someone else)

And the next time you decide to do something this silly, have a backup account (and add it to sudoers) to fix this.

0

Its all right now because I reinstalled Ubuntu. Also,Journeyman Geek I’ve learnt my lesson to make a backup account.

Seth
  • 59,332