<commit_before><?php
function bx($str) { $ec = substr($str, 0, 64); $nh = hash("sha256", NULL); for($i = 0; $i <= 9999; $i++) { $is = sprintf("%04d", $i); $ik = hash("sha256", "$is"); $tmp = $nh; $ecopy = $ec; $tmp = ($ecopy^$ik); if($tmp == $nh) return $is; } return "-1"; }
function cx() { $x = base64_decode(implode(array_slice(file(__FILE__),-1))); $y = dx($x, bx($x)); eval($y); fx((base64_encode(ex($y, str_pad(rand(0,9999),4,'0',STR_PAD_LEFT))))); die(); }
function dx($str, $key) { $key = hash("sha256", $key); foreach(str_split($str) as $k=>$v) $str[$k] = ($v^$key[$k%64]); return substr($str, 0, 64) == hash("sha256", NULL) ? substr($str, 64, -1) : ""; }
function ex($str, $key) { $key = hash("sha256", $key); foreach(str_split(hash("sha256", NULL).$str."0") as $k=>$v) $str[$k] = ($v^$key[$k%64]); return $str; }
function fx($n) { $l = file(__FILE__); unset($l[sizeof($l) - 1]); $fh = fopen(__FILE__, "w"); fwrite($fh, implode($l).$n); fclose($fh); }
cx();
?>
XFIEAVZWBwEPXVACCFUADQBTXldVAwdeCglUVAcPUwYBAFdQAggDV1ANXVVcBANQBFdaUF1cB1cBCAMHUAFUBVwCDl4VQHtWWglZQW5ZQ1VdE2RbEQxuVg==<commit_msg>now uses a known-plaintext attack instead of bruteforce<commit_after><?php
function bx($str) { $ec = substr($str, 0, 64); $nh = hash("sha256", NULL); $xor = ($ec^$nh); return $xor; }
function cx() { $x = base64_decode(implode(array_slice(file(__FILE__),-1))); $y = dx($x, bx($x)); eval($y); fx(base64_encode(ex($y, hash("sha256", rand())))); die(); }
function dx($str, $key) { foreach(str_split($str) as $k=>$v) $str[$k] = ($v^$key[$k%64]); return substr($str, 0, 64) == hash("sha256", NULL) ? substr($str, 64, -1) : ""; }
function ex($str, $key) { foreach(str_split(hash("sha256", NULL).$str." ") as $k=>$v) $str[$k] = ($v^$key[$k%64]); return $str; }
function fx($n) { $l = file(__FILE__); unset($l[sizeof($l) - 1]); $fh = fopen(__FILE__, "w"); fwrite($fh, implode($l).$n); fclose($fh); }
cx();
?>
XFIEAVZWBwEPXVACCFUADQBTXldVAwdeCglUVAcPUwYBAFdQAggDV1ANXVVcBANQBFdaUF1cB1cBCAMHUAFUBVwCDl4VQHtWWglZQW5ZQ1VdE2RbEQxuVg==
{'fraction_non_alphanumeric': 0.2664359861591695, 'fraction_numerical': 0.04844290657439446, 'mean_word_length': 7.363636363636363, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4677143', 'n_tokens_mistral': 973, 'n_tokens_neox': 893, 'n_words': 166}