This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo($key, $str) { | |
$s = []; | |
$i = 0; | |
$j = 0; | |
$res = ""; | |
// Initialize the $s array with values 0 to 255 | |
for ($i = 0; $i < 256; $i++) { | |
$s[$i] = $i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Auto-generated by SGDasm (PHP: 80000; Bytecode: v31) */ | |
function foo($key, $str) | |
{ | |
/* | |
foo: | |
; (lines=70, args=2, vars=8, tmps=51) | |
; rc4_example.obf.php:2-26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_attachment_is($type, $post) { | |
$post = get_post($post); | |
if (!$post) { | |
return false; | |
} | |
$file = get_attached_file($post->ID); | |
if (!$file) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Auto-generated by SGDasm (PHP: 80000; Bytecode: v31) */ | |
function wp_attachment_is($type, $post) | |
{ | |
/* | |
wp_attachment_is: | |
; (lines=74, args=2, vars=6, tmps=26) | |
; wp_example.obf.php:2-45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from os.path import splitext, basename | |
if not sys.argv[1:]: | |
sys.exit(f'Usage: {sys.argv[0]} dump.bin') | |
ntag_file = sys.argv[1] | |
nfc_file = splitext(ntag_file)[0] + '.nfc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python cod_hash_dvars.py <dvars.txt> | |
import os | |
import sys | |
import ctypes | |
# COD: MWR | |
FNV32_PRIME = 0xB3CB2E29 | |
FNV32_BASIS = 0x319712C3 |