Skip to content

Instantly share code, notes, and snippets.

@yasinkuyu
yasinkuyu / cloudflare_bypass.php
Last active September 30, 2025 21:53
PHP CURL function which bypasses the Cloudflare
<?php
/*
Cloudflare Bypass Class with JavaScript Challenge Solver
Advanced PHP CURL implementation to bypass Cloudflare protection
Features:
- Automatic JavaScript challenge solving
- HTTP redirect handling
- Content decompression (gzip/deflate)
@jhedev96
jhedev96 / fm.php
Last active March 15, 2024 17:50
File Manager PHP (single file)
<?php
/**
* File Manager Script
*/
// Default language ('en' and other from 'filemanager-l10n.php')
$lang = 'en';
// Auth with login/password (set true/false to enable/disable it)
$use_auth = true;
@teixeira0xfffff
teixeira0xfffff / evilTwin.php
Created June 15, 2020 23:39
Auto Visitor [decoded version]
<?php
system("clear");
echo "\e[32m
_ _ __ ___ _ _
/ \ _ _| |_ ___ \ \ / (_)___(_) |_ ___ _ __
/ _ \| | | | __/ _ \ \ \ / /| / __| | __/ _ \| '__|
/ ___ \ |_| | || (x) | \ V / | \__ \ | || (x) | |
/_/ \_\__,_|\__\___/ \_/ |_|___/_|\__\___/|_|
\e[39m(c) Evil Twin
\n";
@kicktv
kicktv / force-download-remote-file.php
Last active October 23, 2022 15:23
php force download remote file
<?php
//php force download remote file
// Remote download URL
$remoteURL = 'http://www.html-editor.tk/videos/sintel.mp4';
// Force download
header('Content-type: application/octet-stream');
header("Content-Disposition: attachment; filename=".basename($remoteURL));
ob_end_clean();
@kicktv
kicktv / get-remote-filesize.php
Last active May 25, 2020 00:09
php get remote file size
<?php
//php get remote file size
$url = "http://www.html-editor.tk/videos/sintel.mp4";
$head = array_change_key_case(get_headers($url, TRUE));
$size = $head['content-length'];
echo $size;
?>
@cabrerahector
cabrerahector / bitbucket-pipelines.yml
Last active August 21, 2024 21:38
Bitbucket Pipelines - Deploying to Server with atlassian/ftp-deploy
image: atlassian/default-image:2
pipelines:
branches:
master:
- step:
name: Deploy to Production
deployment: production
script:
@quyenpv
quyenpv / index.html
Created December 20, 2019 01:11
Material Design Responsive Menu
<div id="main">
<div class="container">
<div style="margin-top:150px;margin-bottom:30px;text-align:center;">
<img src="https://4.bp.blogspot.com/-7OHSFmygfYQ/VtLSb1xe8kI/AAAAAAAABjI/FxaRp5xW2JQ/s320/logo.png" style="width: 100px;margin-bottom:15px">
<h1>Material Design Responsive Menu</h1>
</div>
<nav>
<div class="nav-fostrap">
<ul>
@erajanraja24
erajanraja24 / Upload files from Blog or Website to Google Drive
Created April 23, 2019 16:45
Upload files from Blog/Website to Google Drive
//Google Apps Script. Need to be pasted on the code.gs file
function doGet() {
var html = HtmlService.createHtmlOutputFromFile('index');
return html.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
function uploadFiles(data)
{
<?php
//Fungsi untuk merubah format bytes
function filesize_formatted($file)
{
$bytes = $file;
if ($bytes >= 1073741824) {
return number_format($bytes / 1073741824, 2) . ' GB';
} elseif ($bytes >= 1048576) {
return number_format($bytes / 1048576, 2) . ' MB';
@remoharsono
remoharsono / request.php
Created February 10, 2019 03:00
PHP cURL - Set User Agent as Google Bot
<?php
// taken from: https://github.com/izniburak/google-bot-curl/blob/master/google-bot.php
function googleBot($url)
{
$header = array();
$header[] = 'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
$header[] = 'Cache-Control: max-age=0';
$header[] = 'Content-Type: text/html; charset=utf-8';
$header[] = 'Transfer-Encoding: chunked';