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 subprocess as sp | |
from hashlib import md5, sha1, sha384, sha224, sha512, sha256 | |
import os | |
HASHES = ['sha256', 'sha384', 'sha224', 'sha512', 'sha1', 'md5'] | |
def breakline(): | |
print('-'*80) | |
def clrscr(): |
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
--- | |
- hosts: localhost | |
become: yes | |
name: play_1 | |
tasks: | |
- name: Installing Python3.6 | |
dnf: name=python3.6 state=latest | |
- name: Downloading get-pip.py | |
shell: wget https://bootstrap.pypa.io/get-pip.py |
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 shodan import Shodan | |
import subprocess as sp | |
import requests | |
api = Shodan("iG0r3X7hjuIVWlopWTyy8DPO7eIF3wEG") | |
def clrscr(): | |
sp.call(["clear"], shell=True) | |
def breakline(): |
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 subprocess as sp | |
import socket | |
def clrscr(): | |
sp.call("clear", shell=True) | |
def get_ip(): | |
output = sp.check_output(["ip route | grep default"], shell=True) # Gets the gateway. | |
output = output.decode("utf8") |
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
#!/bin/bash | |
file=$(ls -1 | python3 -c "import os; import random; files=os.listdir(os.getenv('HOME')+'/Pictures/Wallpapers'); print(random.choice(files));") | |
XDG_RUNTIME_DIR=/run/user/$(id -u) gsettings set org.gnome.desktop.background picture-uri file:///$HOME/Pictures/Wallpapers/$file |
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 PIL import Image | |
def gen_data(data): | |
new_data = [] | |
for i in data: | |
new_data.append(format(ord(i), '08b')) | |
return new_data |
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 This is a required module if you want to use your android's webcam. | |
import cv2 | |
import numpy as np | |
import pyautogui | |
import mouse | |
from math import sqrt | |
prev_cord = None | |
sX, sY = pyautogui.size() | |
sX, sY = sX//2, sY//2 |
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, threading | |
def connect(ip, port_number, delay, output): | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
sock.settimeout(delay) | |
try: | |
sock.connect((ip, port_number)) | |
output[port_number] = True | |
except: |
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 | |
from fake_useragent import UserAgent | |
ua = UserAgent().random | |
def bing_search(string): | |
urls = [] | |
payload = { | |
'q': string |
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 mechanize | |
from bs4 import BeautifulSoup | |
name = input("Enter the name you wanna search for: ").replace(" ", "+") | |
br = mechanize.Browser() | |
br.addheaders = [("User-agent","Mozilla/5.0")] | |
resp = br.open("https://viewdns.info/reversewhois/?q={}".format(name)) | |
soup = BeautifulSoup(resp.read(), "lxml") |