This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1-apache | |
ENV MYSQL_HOST=localhost \ | |
MYSQL_USER=admin \ | |
MYSQL_PASS=password \ | |
MYSQL_DB=dbname | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# data: 2019-01-29 | |
# made by munsiwoo | |
echo php compile and run | |
PHP_PATH="/php/php-7.0.30" | |
if [ -f /usr/local/bin/php ]; then | |
rm -rf /usr/local/bin/php | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.parse | |
# made by munsiwoo | |
# <img src=# onerror="alert(1)"> | |
def htmlentities_encode(string, url_encoding=0) : | |
result = str() | |
for st in string : | |
result += '&#'+str(ord(st))+';' | |
if url_encoding : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests import get | |
# peng.solveme.kr - checkviaeval (web/410pt) | |
# made by munsiwoo | |
def add_length(argv) : | |
result = argv | |
e = 49 - len(argv) | |
for x in range(e) : | |
result += '/' | |
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests import get, post | |
from base64 import b64decode | |
''' | |
hitb xctf 2018 quals | |
upload (web) - directory wildcard | |
made by munsiwoo | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pagination($page, $limit, $count) { | |
echo "<style>a { text-decoration:none; color:black; }</style>"; | |
for($x = ($page-1); ($x%$limit) != 0; --$x); | |
if(($page-1) >= $limit) { | |
echo "<a href=\"?page={$x}\"><Prev</a> "; | |
} | |
$limit = (($x+$limit) > $count) ? $count : $x+$limit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zipfile, string | |
from random import choice | |
# made by munsiwoo | |
def randGenerator(size=6, chars=string.ascii_uppercase + string.digits) : | |
return ''.join(choice(chars) for x in range(size)) | |
fileName = "compress.txt" | |
packName = "./" + randGenerator() + ".zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zipfile | |
# made by munsiwoo | |
extractFile = "./archive.zip" | |
extractNum = 0 | |
while True : | |
unzip = zipfile.ZipFile(extractFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(0); | |
require("flag.php"); | |
# made by munsiwoo | |
$x = 1337; | |
$e = array(); | |
$cookies = $_COOKIE; | |
extract($cookies); | |