SSH Slackbot
This is a simple slackbot to post successful SSH logins to a slack channel to help you keep track of server access.
Step 1
Create an incoming webhook for your slack community.
Step 2
Create /etc/ssh/sshslack.sh
#!/bin/bash | |
for url in $(cat domains.txt) | |
do | |
if curl --output /dev/null --silent --head --fail "$url"; then | |
printf "$url \\n" | |
else | |
: | |
fi | |
done |
#!/bin/bash | |
#Simple Script To Scan All Public Bounty Sites With Burp 2.0 | |
sites=$(curl https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/domains.txt) | |
for site in $sites | |
do | |
curl -vgw "\\n" 'http://127.0.0.1:1337/v0.1/scan' -d '{"urls":["'"$site"'"]}' | |
done |
This is a simple slackbot to post successful SSH logins to a slack channel to help you keep track of server access.
Create an incoming webhook for your slack community.
Create /etc/ssh/sshslack.sh
#!/bin/bash | |
set -e | |
set -u | |
clear | |
ami="ami-10e00b6d" | |
size="t2.medium" | |
today=$(date +"%m-%d-%y-%H%M") | |
localip=$(curl -s https://ipinfo.io/ip) |
# coding=utf-8 | |
import certstream | |
import json | |
import requests | |
# Get the webhook_url here: | |
# https://my.slack.com/services/new/incoming-webhook/ |
#!/usr/bin/python3 | |
import os | |
shodan = ["104.131.0.69", "104.236.198.48", "155.94.222.12","155.94.254.133", "155.94.254.143", "162.159.244.38", "185.181.102.18", "188.138.9.50", "198.20.69.74", "198.20.69.98", "198.20.70.114", "198.20.87.98", "198.20.99.130", "208.180.20.97", "209.126.110.38", "216.117.2.180", "66.240.192.138", "66.240.219.146", "66.240.236.119", "71.6.135.131", "71.6.146.185", "71.6.158.166", "71.6.165.200", "71.6.167.142", "82.221.105.6", "82.221.105.7", "85.25.103.50", "85.25.43.94", "93.120.27.62", "98.143.148.107", "98.143.148.135"] | |
for ip in shodan: | |
os.system("iptables -A INPUT -s {} -j DROP".format(ip)) |
#!/bin/bash | |
filename="domains.txt" | |
while read -r line | |
do | |
name="$line" | |
open -a "Firefox" https://$name | |
done < "$filename" |
#!/bin/bash | |
#Check If Brew Is Installed | |
if ! [ -x "$(command -v brew)" ]; then | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
else | |
brew update | |
brew upgrade | |
fi |
#!/bin/bash | |
mkdir -p ~/Pictures/Wallpapers/unsplash | |
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 | |
osascript -e "tell application \"System Events\" to set picture of every desktop to \"~/Pictures/Wallpapers/unsplash/$(date +%F).png\"" | |
killall Dock |
#!/bin/bash | |
#Required | |
apikey= | |
domain= | |
commonname=$1 | |
orgid= | |
#Change to your company details | |
country= |