Skip to content

Instantly share code, notes, and snippets.

@kicktv
kicktv / fm.php
Last active March 15, 2024 17:52
File Manager PHP (single file)
<?php
/**
* source =>https://gist.github.com/jhedev96/f6aaf58fd7d937bfaa34fd31e2baf23f
* 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)
@milankragujevic
milankragujevic / proxy.php
Created July 1, 2021 13:19
PHP streaming proxy with support for Range requests (perfect for proxying video files with progressive download MP4 streaming)
<?php
error_reporting(0);
set_time_limit(0);
ob_end_clean();
$url = $_GET['url'];
if(isset($_SERVER['HTTP_RANGE'])) {
stream_context_set_default([
'http' => [
@yasinkuyu
yasinkuyu / cloudflare_bypass.php
Created November 2, 2020 11:39
PHP CURL function which bypasses the Cloudflare
<?php
/*
PHP CURL function which bypasses the Cloudflare
@yasinkuyu
*/
function cloudFlareBypass($url){
$useragent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z‡ Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";
@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 April 26, 2024 17:58
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)
{