1
Hacking and Security / Re: Null encoding
« on: September 08, 2013, 02:49:25 am »
Interesting your idea now is to test in practice.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?php
################################################## ###
Wordlist simple php
r23k
################################################## ###
//The getRandomword = 7 is the number of characters
function getRandomWord($len = 7) {
//O array_merge = this case will be a combination of the z
$word = array_merge(range('a', 'z'), range('A', 'Z'));
shuffle($word);
return substr(implode($word), 0, $len);
}
//O 1000 = this case is the number of repetitions, here we have to make some calculations combinatorics not to repeat combinations. Eg you put $ len = 2 and 'a', 'c' is the number of repetitions equal to "6" = ab, ba, ca, ac, cb, bc or 2 * 3 = 6
for ($i = 0; $i < 1000; $i++) {
echo getRandomWord()."<p>";
}
?>
<?php
$ip = 12356;
$sistema = linux;
$manipulador_arq = fopen("information.xml","w+");
@fwrite($manipulador_arq,"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n<information>\n<settings
/>\n
<List>\n");
$xml = "<\n ip = \"$ip\"\n sistema = \"$sistema\"\n/>\n";
@fwrite($manipulador_arq,$xml);
@fwrite($manipulador_arq,"</List>\n</information>");
@fclose($manipulador_arq);
?>