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
from bs4 import BeautifulSoup | |
import urllib.request | |
from PyQt5 import QtCore, QtGui, QtWidgets | |
url = 'http://en.cbar.az/other/azn-rates' | |
def get_html(url): # This function connects to web site | |
response = urllib.request.urlopen(url) | |
return response.read() |
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
from ldap3 import Server, Connection, ALL, Tls, MODIFY_REPLACE | |
import ssl | |
from PyQt5 import QtCore, QtGui, QtWidgets | |
tls_configuration = Tls(validate=ssl.CERT_REQUIRED, version=ssl.PROTOCOL_TLSv1_2) # Using TLS in connection. | |
# This function used for connection to Active Directory with provided login and password. | |
class Ui_MainWindow(object): |
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
from bs4 import BeautifulSoup | |
import urllib.request | |
from prettytable import PrettyTable | |
List_of_Weapons = [] | |
URL_Shturm = "https://wf.mail.ru/wiki/index.php/%D0%9E%D1%80%D1%83%D0%B6%D0%B8%D0%B5_%D1%88%D1%82%D1%83%D1%80%D0%BC%D0%BE%D0%B2%D0%B8%D0%BA%D0%B0" | |
URL_Medik = "https://wf.mail.ru/wiki/index.php/%D0%9E%D1%80%D1%83%D0%B6%D0%B8%D0%B5_%D0%BC%D0%B5%D0%B4%D0%B8%D0%BA%D0%B0" | |
URL_Injener = "https://wf.mail.ru/wiki/index.php/%D0%9E%D1%80%D1%83%D0%B6%D0%B8%D0%B5_%D0%B8%D0%BD%D0%B6%D0%B5%D0%BD%D0%B5%D1%80%D0%B0" | |
URL_Sniper = "https://wf.mail.ru/wiki/index.php/%D0%9E%D1%80%D1%83%D0%B6%D0%B8%D0%B5_%D1%81%D0%BD%D0%B0%D0%B9%D0%BF%D0%B5%D1%80%D0%B0" |
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 urllib3.request | |
import time, datetime | |
import smtplib | |
from email.mime.text import MIMEText | |
from colorama import Fore, init | |
init() # For colored output in CMD or PowerShell | |
def SendMail(alert): | |
# Define to/from |
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 boto3 | |
from datetime import datetime, timedelta | |
from operator import itemgetter | |
import smtplib | |
from email.mime.text import MIMEText | |
AccessKey = "Your Access Key" | |
SecretKey = "Your Secret Key" |
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 boto3 | |
from datetime import datetime, timedelta | |
Date_UTC = datetime.utcnow() # Current date and time in UTC | |
Date = datetime.now() # Current date and time | |
Delta = Date_UTC - timedelta(days=3) # Retention period for snapshots | |
snapshots_list = [] # Deleted snapshots list | |
AccessKey = "" # Access Key to Amazon AWS |
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 psutil | |
import smtplib | |
from email.mime.text import MIMEText | |
from socket import * | |
def SendMail(alert): | |
# Define to/from | |
sender = 'Your sender email' | |
recipient = 'Your recipient email' |
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 wmi | |
from socket import * | |
import smtplib | |
from email.mime.text import MIMEText | |
def SendMail(alert): | |
# Define to/from | |
sender = 'Your sender email' | |
recipient = 'Your recipient email' |
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 paramiko | |
import smtplib | |
from email.mime.text import MIMEText | |
import time, datetime | |
date = datetime.datetime.now() | |
currentDate = date.strftime("%d %B %Y %I:%M%p") | |
# Mail sender function | |
def SendMail(alert): |
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 paramiko | |
import smtplib | |
from email.mime.text import MIMEText | |
import time, datetime | |
date = datetime.datetime.now() | |
currentDate = date.strftime("%d %B %Y %I:%M%p") | |
# Mail sender function | |
def SendMail(alert): |
OlderNewer