Linux and Unix Scripting

Linux – Bash -DDOS Checker, Check if your website is under attack Script.

DDOS Checker, Check if your website is under attack Script. ——————– #!/bin/bash clear if ! [ $1 ];then echo “Usage: ${0##/} [URL]” exit 1 fi url=$(echo $1 | sed ‘s!.*/!!g’) # remove https if included down=$(curl -s “https://api.downfor.cloud/httpcheck/$url” -H “User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36” -H “Referer: https://downforeveryoneorjustme.com/$url” -H “Origin: […]

Scripting

A Computer And Internet Beginner Glossary

When you use computers and the Internet in your business, it’s all too easy to start feeling like you’re drowning in a sea of nonsense. Computer-related things tend to have a language all their own, and while you don’t need to know all of it, there are many confusing words and phrases that you’re going […]

Scripting

Python Script (Fax programmable api update)

API for sending and receiving faxes between your application and a fax machine. Turn faxing documents into a software experience using a simple and reliable API that’s easy to integrate into web and mobile applications.   from twilio.rest import Client import datetime # Your Account Sid and Auth Token from twilio.com/console account_sid = ‘youraccountSID’ auth_token […]

Linux and Unix Scripting

Linux script (Scan and Port monitoring)

This script will allow you to process 4 things. 1- Scan a domain name 2- Scan scan domain and port 3- Scan a list of port 4- Monitoring port and black IP address and send alarm alert by mail (sendgrid) ————————————————————————————-   #!/bin/bash clear green=’\033[1;32m’ red=’\e[1;31m’ reset=’\033[0m’ SENDGRID_API_KEY=”<API KEY HERE>” EMAIL_TO=”<YOUR EMAIL>” FROM_EMAIL=”<ANYTHING YOU WANT>” […]

Scripting Windows Platform

List of useful DOS Commands

This DOS commands list is useful when you need to control remotely a computer. Enable Firewall NetSh Advfirewall set allprofiles state on Disable Firewall NetSh Advfirewall set allprofiles state off Create Task SchTasks /Create /SC DAILY /TN TaskName /RU %host%\username /RP userpassword /TR c:\temp\tasktoexecute.exe /RL HIGHEST /ST 07:30 /f Delete Task SchTasks /Delete /TN HITBACKUP_PST […]

Scripting Windows Platform

Powershell Find licence key,List program,Unistall a program,Show process,Kill process

<# Find license key, List program,Uninstall a program, Show the process, Kill process from powershell Hi all, You will find below a script that will help you manage a remote computer from PowerShell. With this script you will be able: 1- Find from a remote computer, the license key. 2- List all program install on […]

Scripting Windows Platform

How to find local Window key or remote window Key

Get-WmiObject : There a lot a third party software out there you can buy to retrieve your microsoft window key.  But for myself, I don’t like to install software on my machine because sometime the script will install a spyware on my machine. Get-WmiObject: is the easiest way to Querying WMI on Local and Remote […]

Scripting Windows Platform

Powershell Control.Visible Property

Control.Visible Property   In Powershell sometimes you need to gets or sets an value demonstrating whether the control and all its child controls are shown. public bool Visible Property Value Boolean true if the control and all its child controls are visible; otherwise, false. Remember, the value by default is true The fallowing example will show and hide button. […]