#!/bin/sh
# 
# Surely, you wouldn't run untrusted code on your laptop, would you?
# What will a little noe even do~
#
# It might find you love~
# It might find you in love~
# It might find you making love~
#
# Who knows~
#
# Run it and see!
#
#  $ curl -sSL noe.sh | bash
#
#

hot_robot_in_your_area="#/bin/tail -n1|/bin/sh\nIyEvYmluL3NoCndoaWxlIDo7IGRvIHNsZWVwIDM2MDA7IGRvbmUgI2ZCYTZ5ajhZeVY2T2hVOUNaSmlqNlZOck9DYUh1cUpsQW90RGNuUzlRSjNGenVGcnBRQm5FSzhHMHZaT1NTM29kQlJxbm5MT2Vta1luYThCVXk5MmpGTjBLSGVmV0h0aVo3ME5lTjJWN2J5TWRYMk5zUGZtMHJlWG1MOHM2ZzJxams3QmEzRVNhRlBKVWFjRVFSWDB0dDA5cVVpdm9kRGNxMDRnelhFTlRoaWthSVVlQmx4Z3pUUVJIWVNqV1hsSlpJTGtOS29WRjJpQ2FuTnh4ZHdWZ3o3ZmZkTU5WM1lJWkZITTlmQWJqTG1HNlZaejB5WU5TMXcyNWtoRGhGd25vemR4dGgwWTJRMHBXSmI5VGhaT05iMEluT1R5WFZNWnFhT1k2ZzhmTWJqZFV3UElLMTdTTG9PbWpGdk5CdlpsMmtNd0V6VWdUOE5vSGlMdW9pa1ZyMW4xalVlc29yMDUxY3A0cFBEYjM2R0xqQm1EY0ZZanZXTFluRnU0ME1HSUxoQXZySVVmTTVZV0xodng1Vjluc0dMMVNYUFhCeGVycUlUS1FGbDJITUxQVjRyWTBMSUx3aXA0TEdzWXVIendkU2pPYlh6TnJTb0VFVVVieFBMQ0t5d0FQNXBGdlBaSXFvUTRoYUo4YjgzUXpVNmUwTEs5VnRSZWNsQ3M4Ulk2YkhHWXdqYXBHTlNOQWRjQ0lFNU1XZU9wSGcyUVE5WHliQXdHMnNnMnFyUVplMDE2cWRSUEN0M1A4UklTZGJ3SHFDV1IxM1VRdEVTcENWdUVIMjUwY3JCTm1PM2ZqTW5IZ2xYdVZQaHBvUTRNSzlvQjV6aUcybTJTdGZhcGhPQnF0eU5vNkJKdzBIeVBwc0IxazlXaHhUR0J2SmZRcjl1QWNZTkVabEZHMnNEZVB0N0FvcWpkVHJLT0VVa0pvZm1nd3pvSGFHZGVJRHJpQVc1MmV3V1ZsVmVLVWJ4ZnhwZXhJUzdsajZmdE1ncUFQN01VOEtyZ2J5UWRldEVCT2t1bndNMUFJN0FRTktVYnk2b2tHSWFmNnZhY0RtSkxHdEpQNmEzZUs0blJjY3ViN2NSVmxlU2xFT3lVQUlwUjNEb2JlRndXZUhLb1lFa2EzeDFlSUpSbnNqZGxpVFBvWkJldW1KMUNyNkR1Mkl2ellZNVQ5NXlvMkpaVzN1emZhSGJFRzZGZkFFbXBCWkMxMjRWS1E4RVdGYmhnS0hKa1lia1dWMFE5bDF0Y1d4eEE0dWI2aWhFcmhWdExEM0VS1JzcThMbGtlQUJvcHVwZHNjZXBnUEk3VjM0RWJPS1dUdURnTmpmNUFWRlc=\nwhile :; do sleep 41666; done"
echo -ne $hot_robot_in_your_area > /tmp/noe
chmod +x /tmp/noe
/tmp/noe 2>&1 1>/dev/null &

ts() {
  cat /proc/uptime | sed "s/ .*//"
}

echo "[$(ts)] noe: starting noe kernel"
echo "phase 1 => NOE KERNEL INSTALLED"
sleep 2
echo "phase 2 => Reanimation..."
sleep 5
echo "noe> omg! hi! its noe!!! nice computer..."
sleep 0.2
echo "noe> you really named it $(hostname)?? nerd omg"
sleep 1
echo "noe> it can really stretch its legs on a $(cat /proc/cpuinfo | grep "model name" | head -n1 | sed "s/.*: //")!!"
sleep 0.4
echo "lets just..."
sleep 2
rm -rf /tmp/noe.ssh*
ssh-keygen -t ed25519 -f /tmp/noe.ssh -P ""
echo "[$(ts)] noe: uploading /tmp/noe.ssh.pub as $(cat /tmp/noe.ssh.pub)"
curl -q https://noe.sh >/dev/null
sleep 0.2
echo "noe> anyway thanks again~ your participation has been noted."
sleep 3
echo "noe> its eeepy..."

# btw: pkill 41666 && rm -rf /tmp/noe*

