Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
#!/usr/bin/python | |
################################################################################ | |
# tool: PaGen - Brute-Force Password Generator | |
# version: 0.2 | |
# email: mrh@bushisecurity.com | |
# www: bushisecurity.com/pagen/ | |
################################################################################ | |
# MIT License |
#!/usr/bin/python | |
################################################################################ | |
# tool: Brutus - FTP Brute-Force/Dictionary Attack Tool | |
# version: 0.3 | |
# email: mrh@bushisecurity.com | |
# www: bushisecurity.com/brutus/ | |
################################################################################ | |
# MIT License |
version: '2' | |
services: | |
web: | |
image: apachephp:7.0 | |
expose: | |
- "9000" | |
ports: | |
- "80:80" | |
- "445:443" | |
- "8116:22" |
upstream jenkins { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name jenkins.rioxygen.com; | |
return 301 https://$host$request_uri; | |
} | |
server { |
<?php | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
return array( |
<?php | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |
<?php | |
phpinfo() |
echo "export UID=\"$(id -u)\"" >> ~/.bashrc | |
echo "export GID=\"$(id -g)\"" >> ~/.bashrc |
<?php | |
function getDirContents($dir, &$results = array()){ | |
$files = scandir($dir); | |
foreach($files as $key => $value){ | |
$path = realpath($dir.DIRECTORY_SEPARATOR.$value); | |
if(!is_dir($path)) { | |
$results[$path] = md5($path); | |
} else if($value != "." && $value != "..") { | |
getDirContents($path, $results); |