Skip to content

Instantly share code, notes, and snippets.

View Ludisposed's full-sized avatar

Ludisposed Ludisposed

View GitHub Profile
import threading
from queue import Queue
from textwrap import dedent
from urllib.parse import urljoin
import os
import sys
import re
import argparse
import requests
import collections
import functools
import unittest
# import pygame
# class Scrabble:
# def __init__(self):
# self.tile_size = 40
# self.num_tiles = 15
# self.height = self.tile_size * self.num_tiles
@Ludisposed
Ludisposed / pycat.py
Last active September 24, 2021 09:54
#!/usr/bin/env python3
import argparse
import datetime
from functools import wraps
import socket
from ssl import wrap_socket, create_default_context, CERT_NONE
import sys
import subprocess
import tempfile
from queue import Queue
from random import choice, randint, seed
from collections import namedtuple
from enum import Enum
import itertools
Position = namedtuple("Position", ["y", "x"])
class Tile(Enum):
WALL = '#'
@Ludisposed
Ludisposed / FIN_scan.py
Created October 16, 2017 08:30 — forked from zypeh/FIN_scan.py
A simple snippets from [Infosec Institute]("http://resources.infosecinstitute.com/port-scanning-using-scapy/")
# !/usr/python
# The FIN scan utilizes the FIN flag inside the TCP packet,
# along with the port number to connect to on the server.
# If there is no response from the server, then the port is open.
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *