Skip to content

Instantly share code, notes, and snippets.

View m4p1e's full-sized avatar
🍁

maplgebra m4p1e

🍁
View GitHub Profile
@m4p1e
m4p1e / phpdangerousfuncs.md
Created July 15, 2023 12:50 — 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
@m4p1e
m4p1e / giveaway_bot.py
Last active February 20, 2024 04:42
A kaiheila bot for giveaway
import json
import khl
from khl import api
from khl.card import CardMessage, Card, Module, Element, Types, Struct
from time import sleep
import time
import logging
import datetime
import random
from dateutil import tz