Skip to content

Instantly share code, notes, and snippets.

View Frago9876543210's full-sized avatar

Frago9876543210

View GitHub Profile
<?php
declare(strict_types=1);
if(!file_exists("plugins")){
echo "This script should be placed in the root of the server." . PHP_EOL;
exit;
}
curl_setopt_array($ch = curl_init("https://raw.githubusercontent.com/pmmp/PocketMine-MP/master/src/pocketmine/PocketMine.php"), [
@Frago9876543210
Frago9876543210 / Frames.php
Last active December 30, 2018 17:04
Console frames generator.
<?php
declare(strict_types=1);
interface Color{
const BOLD = "\x1b[1m";
const OBFUSCATED = "";
const ITALIC = "\x1b[3m";
const UNDERLINE = "\x1b[4m";
const STRIKETHROUGH = "\x1b[9m";
@Frago9876543210
Frago9876543210 / Query.php
Last active February 22, 2018 06:27
Minecraft query
<?php
declare(strict_types=1);
namespace query;
class Query{
public const HANDSHAKE = 9;
public const STATISTICS = 0;
@Frago9876543210
Frago9876543210 / screenshot.php
Last active February 1, 2022 16:35
screenshot from phone
<?php
declare(strict_types=1);
`adb devices -l`;
header('Content-Type: image/png');
ob_start();
passthru("adb shell screencap -p");
#!/bin/bash
git clone https://github.com/pmmp/PocketMine-MP.git --recursive
cd PocketMine-MP
wget https://jenkins.pmmp.io/job/PHP-7.2-Linux-x86_64/lastSuccessfulBuild/artifact/PHP_Linux-x86_64.tar.gz
tar -xvzf PHP_Linux-x86_64.tar.gz
rm PHP_Linux-x86_64.tar.gz
./bin/composer install
<?php
declare(strict_types=1);
require_once "vendor/autoload.php";
\pocketmine\network\mcpe\protocol\PacketPool::init();
$data = ''; //data from hex dump
@Frago9876543210
Frago9876543210 / NBTDumper.php
Last active July 31, 2018 12:12
NBT object to code
<?php
declare(strict_types=1);
namespace NS;
use pocketmine\nbt\NBTStream;
use pocketmine\nbt\NetworkLittleEndianNBTStream;
use pocketmine\nbt\tag\NamedTag;
2017-12-26 11:31:22,560 WARN MiNET.Client.MiNetClient - Connecting to: 192.168.43.1:19132
2017-12-26 11:31:22,674 DEBUG MiNET.Client.MiNetClient -
2b 00 00 00 00 00 00 00 +.......
2017-12-26 11:31:22,675 INFO MiNET.Client.MiNetClient - Initializing...
2017-12-26 11:31:22,763 INFO MiNET.Client.MiNetClient - Server open for business for TheGrey
2017-12-26 11:31:22,776 WARN MiNET.Client.MiNetClient - Client listening for connecting on: 0.0.0.0:59760
2017-12-26 11:31:22,875 INFO MiNET.Utils.Config - Trying to load config-file C:\Users\alex\Desktop\minet 1.2 dev\MiNET\src\MiNET\MiNET.Client\bin\Debug\server.alex.conf
2017-12-26 11:31:22,875 INFO MiNET.Utils.Config - Trying to load config-file C:\Users\alex\Desktop\minet 1.2 dev\MiNET\src\MiNET\MiNET.Client\bin\Debug\server.conf
2017-12-26 11:31:22,875 INFO MiNET.Utils.Config - Loading config-file C:\Users\alex\Desktop\minet 1.2 dev\MiNET\src\MiNET\MiNET.Client\bin\Debug\server.conf
2017-12-26 10:30:10,034 DEBUG MiNET.Client.MiNetClient - PlayerEquipment: Entity ID: 19, Selected Slot: 9, Slot: 0, Item ID: 0
2017-12-26 10:30:10,034 DEBUG MiNET.Client.MiNetClient - > Receive: 13 (0x0d): McpeAddEntity
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Entity ID: -4294967290
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Runtime Entity ID: 4
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Type: 2118423 - 0x205317
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Family: 83 - 0x53
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Type ID: 23 - 0x17 Horse
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - X: 781.3013
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Y: 4
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Z: 11.02353
package main
/*
#include <stdlib.h>
#include "HCNetSDK.h"
*/
import "C"
import(
"os"
"fmt"