Skip to content

Instantly share code, notes, and snippets.

View cydave's full-sized avatar
😾
🐍 🦀

‏‏Dave cydave

😾
🐍 🦀
View GitHub Profile
@cydave
cydave / file.py
Created February 5, 2022 16:37 — forked from jonluca/file.py
Fast asyncio HTTP requests
import sys
import os
import json
import asyncio
import aiohttp
# Initialize connection pool
conn = aiohttp.TCPConnector(limit_per_host=100, limit=0, ttl_dns_cache=300)
PARALLEL_REQUESTS = 100
@cydave
cydave / phpdangerousfuncs.md
Created September 20, 2020 13:43 — forked from mccabe615/phpdangerousfuncs.md
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program