Skip to content

Instantly share code, notes, and snippets.

View mosajjal's full-sized avatar
🎯
Focusing

Ali mosajjal

🎯
Focusing
  • Spark New Zealand
  • Auckland, Aotearoa
  • 07:35 (UTC +12:00)
  • X @_n0p_
View GitHub Profile
@mosajjal
mosajjal / dnschatserver.py
Created February 22, 2020 10:16
DNS Chat server
import socket
from dnslib import RR, QTYPE, DNSRecord, DNSHeader, TXT
from time import time
DOMAIN = "REPLACE_WITH_YOUR_SUBDOMAIN"
def parse_response(data):
temp = DNSRecord.parse(data)
req = str(temp.q.qname)
subdomain = req.replace(DOMAIN, "")
@mosajjal
mosajjal / sslmate.sh
Last active February 22, 2020 10:26
CertSpotter -- Certificate Transparency Monitor by SSLMate Bash client with curl and jq
#!/usr/bin/env bash
#title :sslmate.sh
#description :This script will look for transparency logs and shows the JSON output
#author :Ali Mosajjal
#date :20200222
#version :0.1
#usage :bash sslmate.sh --domain YOURDOMA.IN --apikey APIKEY_FROM_SSLMATE --subdomains true/false
#notes :Install curl and jq to use this script.
#bash_version :5.0.16(1)-release
#!/usr/bin/env bash
LINE=$(printf '%0.s=' $(seq 1 ${COLUMNS:-$(tput cols)}))
BLD="\e[1m" #Bold
BLK="\e[5m" #Blink
YLW="\e[33m" #Yellow Text
GRN="\e[32m" #Green Text
RED="\e[31m" #Red Text
YLWBG="\e[43m" #Yellow Background
@mosajjal
mosajjal / pproxy.alpine
Created February 15, 2020 00:06
pproxy service template
#!/sbin/openrc-run
name=$RC_SVCNAME
command="/opt/pproxy/bin/pproxy"
command_args="-l http+socks4+socks5://:8080 -v"
command_user="nobody"
pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args=""
command_background="yes"
#!/bin/env python
import argparse
import base64
import hashlib
import os
import struct
import sys
from binascii import hexlify, unhexlify
@mosajjal
mosajjal / extract.py
Last active March 10, 2019 11:11
Get fresh SOCKS5 Iran proxies for Hotgram
MOVED HERE:
https://github.com/mosajjal/HotgramSOCKS

Keybase proof

I hereby claim:

  • I am mosajjal on github.
  • I am mosajjal (https://keybase.io/mosajjal) on keybase.
  • I have a public key whose fingerprint is E415 3814 4031 B126 D0D0 27E9 1031 8708 42DE F016

To claim this, I am signing this object: