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 sys | |
import time | |
while True: | |
sys.stdout.write(str(time.ctime())) | |
sys.stdout.write("\r") | |
sys.stdout.flush() | |
time.sleep(0.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 socket | |
request_text = b'GET http://ip-api.com/json/ HTTP/1.1\r\nHost: ip-api.com\r\nUser-Agent: curl/7.55.1\r\nAccept: */*\r\nConnection: close\r\n\r\n' | |
def geocode(): | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(('ip-api.com', 80)) | |
sock.sendall(request_text) | |
raw_reply = b'' | |
#print(sock.getsockname()) | |
while True: | |
more = sock.recv(2048) |
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 socket | |
import ssl | |
server,port = 'www.python.org',443 | |
request = "GET / HTTP/1.0\r\nHost: "+server+"\r\n\r\n" | |
s = socket.socket() | |
s.connect((server,port)) | |
s = ssl.create_default_context().wrap_socket(s, server_hostname=server) | |
s.send(request.encode('ascii')) | |
raw_reply=b'' | |
while True: |
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 json, requests, sys | |
def logo(): | |
print("\n\t██████╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ") | |
print("\t██╔══██╗██║██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗") | |
print("\t██║ ██║██║███████╗██║ ██║ ██║██████╔╝██║ ██║") | |
print("\t██║ ██║██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║") | |
print("\t██████╔╝██║███████║╚██████╗╚██████╔╝██║ ██║██████╔╝") | |
print("\t╚═════╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ") | |
print("\t=================+I am Ready+=======================") | |
logo() |
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 urllib.request | |
''' | |
url="https://pro.sabsongs.com/k7fh57dj648jd/bollywood/Raabta%20-%20Ik%20Vaari%20Aa.mp3" | |
name="kk" | |
''' | |
url=input("Enter Url ~$") | |
name=input("File Name ~$") | |
url1=url.split(".") | |
len=len(url1) |
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 shodan | |
api=shodan.Shodan(API_KEY_HERE) | |
results = api.search('product:"Memcached" port:11211') | |
print('Results found: {}'.format(results['total'])) | |
for n in results["matches"]: | |
print("http://"+n["ip_str"]+":"+str(n["port"])) |
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 socket,sys,os | |
host=input("host :") | |
pfrom=input("Port from :") | |
pto=input("Port to :") | |
def TCP_connect(ip, port_number): | |
TCPsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
TCPsock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
TCPsock.settimeout(0.5) | |
try: | |
TCPsock.connect((ip, port_number)) |
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 socket,signal,sys | |
import random | |
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
host="127.0.0.1" | |
port=80 | |
bytes=random._urandom(10040) | |
s.connect((host, port)) | |
send=0 | |
def signal_handler(signal, frame): | |
print('You pressed Ctrl+C!') |
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/env python | |
# encoding=utf-8 | |
# Any questions: [email protected] | |
# https://bash.ws/dnsleak | |
import os, json, subprocess | |
from random import randint | |
from platform import system as system_name | |
from subprocess import call as system_call | |
from random import randint |
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
#pip install dnspython | |
import re | |
import smtplib | |
import dns.resolver | |
fromAddress = '[email protected]' | |
regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$' | |
inputAddress = "YOUR EMAIL HERE" | |
addressToVerify = str(inputAddress) | |
match = re.match(regex, addressToVerify) | |
if match == None: |
OlderNewer