I use this function in my .zshrc
file
fuzz-in() {
strip=$(echo $1|sed 's/:\/\///')
strip=$(echo $strip| sed 's/\\/\-/g')
strip=$(echo $strip| sed 's/\//-/g')
ffuf -u $1 -t 10 -o $strip.fuzz.txt -of md -p 1 "${@:2}" -w -
<?php | |
$url = $_GET['url']; | |
$xml = @file_get_contents($url); | |
$ret = []; | |
if ($xml) { | |
$doc = new DOMDocument(); | |
libxml_use_internal_errors(true); | |
if ($doc->loadHTML($xml)) { |
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
$ dpkg -l | grep strongswan
ii libstrongswan 5.6.2-1ubuntu2.4 amd64 strongSwan utility and crypto library
FROM arm64v8/ubuntu:16.04 | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common vim && \ | |
add-apt-repository ppa:jonathonf/python-3.6 | |
RUN apt-get update -y | |
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv && \ | |
apt-get install -y git |
# docker build -t ubuntu1604py36 | |
FROM ubuntu:18.04 | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common vim && \ | |
add-apt-repository ppa:jonathonf/python-3.6 | |
RUN apt-get update -y | |
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv && \ | |
apt-get install -y git |
<?php | |
.. | |
.. | |
$cmd = 'docker build someimage'; | |
$process = Process::fromShellCommandline($cmd); | |
$process->setTimeout(0); | |
$process->run(function ($type, $buffer) { | |
if (Process::ERR === $type) { | |
echo 'ERR > '.$buffer; |
<?php | |
$userRequest = $_GET['userRequest'] ?? null; | |
$path = 'file' . $userRequest; | |
if (file_exists($path)) { | |
require_once($path); | |
} else { | |
echo 'File does not exist'; | |
} |
<?php | |
class A { | |
/** | |
* @param $args | |
*/ | |
public function methodIsCool($args) { | |
var_dump($args); | |
} |
<?php | |
namespace App; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; | |
use Psr\Log\LoggerInterface; | |
class ExceptionListener { |