This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc /proc proc defaults 0 0 | |
/dev/mmcblk0p1 /boot vfat defaults 0 0 | |
/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime 0 0 | |
/var/swapfile none swap sw 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEY="<your bot token>" | |
URL="https://api.telegram.org/bot$KEY/sendMessage" | |
TARGET="<your chat ID>" # Telegram ID of the conversation with the bot, get it from /getUpdates API | |
TEXT="User *$PAM_USER* logged in on *$HOSTNAME* at $(date '+%Y-%m-%d %H:%M:%S %Z') | |
Remote host: $PAM_RHOST |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p ~/Pictures/Wallpapers/unsplash | |
rm -f ~/Pictures/Wallpapers/unsplash/*.png | |
curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" > /dev/null | |
gsettings set org.gnome.desktop.background picture-uri file:///root/Pictures/Wallpapers/unsplash/"$(date +%F)".png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list | |
apt-get install kali-archive-keyring -y | |
apt-get update | |
apt-get upgrade -y --allow-unauthenticated | |
apt-get install kali-linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png | |
curl -s -L -o ~/Pictures/Wallpapers/unsplash/"$(date +%F)".png "https://unsplash.it/2560/1600/?random" > /dev/null | |
gsettings set org.gnome.desktop.background picture-uri file:///root/Pictures/Wallpapers/unsplash/"$(date +%F)".png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.user.loginscript</string> | |
<key>ProgramArguments</key> | |
<array><string>/Users/mehran/Pictures/Wallpapers/unsplash/login.sh</string></array> | |
<key>RunAtLoad</key> | |
<true/> |
NewerOlder