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 cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.backends import default_backend | |
try: | |
private_key = rsa.generate_private_key( | |
public_exponent=65537, | |
key_size=int(5e3), | |
backend=default_backend() | |
) |
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
# importing the librtaries | |
import math | |
import numpy as np | |
import nltk | |
import re | |
import gensim | |
from gensim.parsing.preprocessing import remove_stopwords | |
from gensim import corpora | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
import heapq |
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
# importing the librtaries | |
import numpy as np | |
import nltk | |
import re | |
import gensim | |
from gensim.parsing.preprocessing import remove_stopwords | |
from gensim import corpora | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
import heapq | |
# text from wikipedia about Elon Musk |
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 cv2 as cv | |
import numpy as np | |
import random as rng | |
rng.seed(99999) | |
# ONLY editable variables | |
IMAGE_PATH = r'C:\Users\Sajal\Desktop\s-4.jpg' # path to image | |
THRESH_MINI = 220 # pixel value above which you want MAX VALUE | |
THRESH_MAX_VAL = 255 # pixel value above our THRESH_MIN will be converted to this value | |
MIN_SIZE = 2000 # minimum size of enclosed figures you want to use (function - noise_removal) |
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
############################################################################################################### | |
# Github Repo For Hacking Stuff --> https://github.com/r-sajal/Ethical-Hacking/ | |
############################################################################################################### | |
# Importing General Libraries | |
import argparse | |
import sys , os , os.path , platform | |
import re | |
import time |
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 itertools | |
import string | |
import time | |
def password_wordlist(start_range=8,end_range=10,file_name="brute.txt"): | |
chars = string.ascii_lowercase + string.ascii_uppercase + string.digits + '@' + '#' + '$' + '.' | |
attempts = 0 | |
f = open(file_name,'a') |
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.