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/> |
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
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
#!/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
#!/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
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/sh | |
# Automation resize remaining diskspace for Kali Linux 2018.2 on Rapsberry Pi3 | |
# Get the starting offset of the root partition | |
PART_START=$(parted /dev/mmcblk0 -ms unit s p | grep "^2" | cut -f 2 -d:) | |
[ "$PART_START" ] || return 1 | |
# Return value will likely be error for fdisk as it fails to reload the | |
# partition table because the root fs is mounted | |
fdisk -uc /dev/mmcblk0 <<EOF |
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 | |
### Author ### | |
# By : Mehran Goudarzi | |
# Update : 2018-11-12 | |
# Description : Automation Installer (Ubuntu 18.0 & Ubuntu 16.0) | |
# Version : 1.2 | |
############### | |
echo -e "[*] General dependencies..." | |
apt-get update | |
apt-get -y upgrade |
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 | |
### Author ### | |
# By : Mehran Goudarzi | |
# Release : 2018-06-24 | |
# Description : IKEV2 Auto Creator | |
# Version : 1.1 | |
############### | |
### Colors #### | |
BRed="\033[1;31m" | |
BGreen="\033[1;32m" |
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 | |
### Author ### | |
# By : Mehran Goudarzi | |
# Release : 2018-04-07 | |
# Description : Git auto update for repository | |
# Version : 1.2 | |
############### | |
### Colors #### |
OlderNewer