based on https://linuxhint.com/automatically_send_text_message_android_python
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 requests | |
from bs4 import BeautifulSoup | |
import matplotlib.pyplot as plt | |
def getPoint(event_id, topN=50): | |
headers = { "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"} | |
r = requests.get(f"https://ctftime.org/event/{event_id}", headers=headers) | |
soup = BeautifulSoup(r.text, 'html.parser') | |
title = soup.find('div', class_="page-header").text.strip() | |
teams = soup.find_all('tr')[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
import argparse | |
import ipaddress | |
import re | |
import socket | |
import ssl | |
import time | |
import dns.resolver # pip install dnspython | |
import dns.reversename | |
import pandas as pd # pip install pandas | |
import requests # pip install requests |
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 requests | |
from bs4 import BeautifulSoup | |
MENA = {"Algeria", "Azerbaijan", "Bahrain", "Chad", "Djibouti", "Egypt", "Eritrea", "Georgia", | |
"Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Libya", "Mauritania", "Morocco", "Oman", | |
"Pakistan", "Palestine", "Qatar", "Saudi Arabia", "South Sudan", "Sudan", "Syria", "Tunisia", "Turkey", | |
"United Arab Emirates","Yemen"} | |
def getTeam(url): |
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 time | |
import random | |
def encrypt(txt): | |
lst = [f"{c}{i+1}" for i, c in enumerate(txt)] | |
random.shuffle(lst) | |
print(f" cipher: {' '.join(lst)}\n") | |
def decrypt(enc): |
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
{ | |
"a": [ | |
97, | |
170, | |
7491, | |
8336, | |
65345 | |
], | |
"b": [ | |
98, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 re | |
import time | |
import requests | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
# old version and not working now | |
def getCfCIDR(): | |
try: | |
r = requests.get('https://asnlookup.com/organization/cloudflare') |
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
const HARDWORDS = [ | |
'(7-4)*92', | |
'96/3+8*2', | |
'112/4*25', | |
'(48-2)/4', | |
'185*4-17', | |
'96/(2+4)', | |
'456/12-5', | |
'(7-4)*92', | |
'96/3+8*2', |
NewerOlder