Skip to content

Instantly share code, notes, and snippets.

View mrpwnd's full-sized avatar
:shipit:

PANDA mrpwnd

:shipit:
View GitHub Profile
@mrpwnd
mrpwnd / gist:1e9bf8e71c2a5a686025
Created October 9, 2015 14:36 — forked from crizCraig/gist:2816295
Download images from Google Image search using Python
import json
import os
import time
import requests
from PIL import Image
from StringIO import StringIO
from requests.exceptions import ConnectionError
def go(query, path):
"""Download full size images from Google image search.
@mrpwnd
mrpwnd / script.py
Created October 2, 2015 04:40 — forked from bodokaiser/script.py
Apache > 2.2.22 remote denial of service exploit.
# The idea is to do a HEAD request on a large file on an apache server with multiple byte ranges in multiple connections.
# The server then will have to read this large file from all the given byte ranges without returning any content
# (as it is a HEAD) request. If we do this about > 500 times in parallel the memory will collapse with
# the apache process crashing down.
import sys
import socket
header = ''