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 | |
import os | |
def print_progressbar(percentage): | |
columns = int(os.popen('stty size', 'r').read().split()[1]) # length of current line | |
columns -= 7 # subtract formatting [] xxx% | |
num_hashes = int(columns / 100 * percentage) | |
sys.stdout.write("\r") |
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 scapy.all import * | |
def emptyLine(): | |
print("****************************************") | |
Url = input("Enter domain name: ") | |
emptyLine() | |
dnsResponse = sr1(IP(dst="8.8.8.8") / UDP(dport=53) / DNS(rd=1, qd=DNSQR(qname=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 requests | |
import time | |
import argparse | |
from concurrent.futures import ThreadPoolExecutor | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-f", "--file", action="store", help="Enter path to domainfile") | |
parser.add_argument("-t", "--threads", action="store", help="Enter the number of threads you want to use") | |
args = parser.parse_args() |
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
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
int main(void) | |
{ | |
int sock; | |
int port = 4444; | |
struct sockaddr_in revsockaddr; |
NewerOlder