<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum BestPig ToolBox - [c++] Extraire Fcrt]]></title>
		<link>http://www.bestpig.fr/forum/index.php</link>
		<description><![CDATA[Les messages le plus récents de Forum BestPig ToolBox.]]></description>
		<lastBuildDate>Sun, 12 Aug 2012 11:30:49 +0000</lastBuildDate>
		<generator>FireBB</generator>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=196#p196</link>
			<description><![CDATA[Moi c'etait avec plaisir, si je peux aider <img src="http://www.bestpig.fr/forum/images/blue/bbcode/smilies/wink.png" width="15" height="15" alt="wink" />]]></description>
			<author><![CDATA[dummy@example.com (bestpig)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=196#p196</guid>
		</item>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=195#p195</link>
			<description><![CDATA[Donc j'ai vu ton post sur Xboxhacker et depuis ben j'avais compris mon erreur, et j'ai finis mon prog pour extraire le FCRT.<br />
<br />
Mais je te remercie pour ton explication pour le fcrt, et oui j'avais vu apr&egrave;s le nom fcrt_ENC.bin j'ai &eacute;t&eacute; con sur ce coup ...<br />
<br />
Enfin bref d'ici quelques jours je pourrais mettre &agrave; jour mon prog sur Gueux ^^]]></description>
			<author><![CDATA[dummy@example.com (deaphroat)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=195#p195</guid>
		</item>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=194#p194</link>
			<description><![CDATA[Je relis mon code, et je vois que j'ai oublie de te dire un petit detail <img src="http://www.bestpig.fr/forum/images/blue/bbcode/smilies/wink.png" width="15" height="15" alt="wink" />.<br />
<br />
<div class="codebox"><cite>Code C : <a onclick="code_select('s6185748173')" href="javascript:void(0)">[Séléctionner le code]</a></cite><pre id="s6185748173"><code><br />&nbsp;
offset <span style="color: #339933;">=</span> nand<span style="color: #339933;">-</span>&gt;fcrt_offset <span style="color: #339933;">*</span> <span style="color: #cc66cc;">16896</span>;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>writed &lt; nand<span style="color: #339933;">-</span>&gt;fcrt_len<span style="color: #009900;">&#41;</span>
&nbsp; <span style="color: #009900;">&#123;</span>
&nbsp; &nbsp; fwrite<span style="color: #009900;">&#40;</span>nand<span style="color: #339933;">-</span>&gt;file <span style="color: #339933;">+</span> offset, <span style="color: #cc66cc;">1</span>, 0x200, stream<span style="color: #009900;">&#41;</span>;
&nbsp; &nbsp; writed <span style="color: #339933;">+=</span> 0x200;
&nbsp; &nbsp; offset <span style="color: #339933;">+=</span> 0x210;
&nbsp; <span style="color: #009900;">&#125;</span>
&nbsp;</code></pre></div>
<br />
Je lis bloc par bloc, donc de 200 en 200, mais a la fin de chaque bloc, j'ignore 16 octets (0x10).<br />
Car a chaque fois il y a 16 octets qui sont des infos hors fcrt, c'est pour savoir si il y a des badblocs et ce genre de chose.<br />
Donc normal que tu differes a l'offset 0x200, tu doit sauter 16 octets a chaque fois <img src="http://www.bestpig.fr/forum/images/blue/bbcode/smilies/wink.png" width="15" height="15" alt="wink" />.<br />
<br />
Desole pour ce petit oublie.<br />
<br />
EDIT : Je viens de tenter d'extraire plusieurs fcrt.bin avec 360 Flash Tool et mon logiciel, a chaque fois les fcrt sont identiques.<br />
360 Flash Tool le les dechiffres donc pas, d'ailleur cela parais logique puisque il les nomment fcrt_enc.bin]]></description>
			<author><![CDATA[dummy@example.com (bestpig)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=194#p194</guid>
		</item>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=193#p193</link>
			<description><![CDATA[Je te remercie c'est bon &ccedil;a marche ^^<br />
<br />
Je sais comment trouv&eacute; le FCRT, me reste plus voir comment le d&eacute;crypt&eacute;...<br />
<br />
Par contre.  Je prend ton programme fcrt_extractor.exe<br />
<br />
Je glisse ma nand dessus, &ccedil;a me fait un fcrt.bin.<br />
<br />
J'ouvre ma nand en hexa, je me place &agrave; l'offset de d&eacute;part de mon fcrt, je copie colle dans un nouveau fichier mon fcrt, et j'obtiens pas le m&ecirc;me que le tiens, c'est normal? Ou c&rsquo;&eacute;tait juste une erreur? Il me manque la ligne de l'offset 200.<br />
<br />
Sinon ben je te remercie ^^]]></description>
			<author><![CDATA[dummy@example.com (deaphroat)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=193#p193</guid>
		</item>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=192#p192</link>
			<description><![CDATA[Bonjour,<br />
<br />
Le r&eacute;sultat du fcrt.bin est different car celui qu'extrait mon logiciel est chiffr&eacute;.<br />
Alors que 360 flash tool le dechiffre.<br />
<br />
Le .meta est necessaire si on veux injecter le fcrt.bin dans une nouvelle nand sans en connaitre la clef de chiffrage.<br />
<br />
Pour extraire a partir du pattern &quot;fcrt.bin&quot; c'est assez simple.<br />
<br />
Voici ce que l'on retrouve toujours dans la nand.<br />
[nom fichier][offset dans la nand sur 8 octets][taille du fichier sur 4 octets][meta sur 4 octets]<br />
<br />
C'est les donnees que je lis ici :<br />
<div class="codebox"><cite>Code C : <a onclick="code_select('s5334385112')" href="javascript:void(0)">[Séléctionner le code]</a></cite><pre id="s5334385112"><code><br />&nbsp;
<span style="color: #993333;">void</span>&nbsp; &nbsp; get_fcrt_info<span style="color: #009900;">&#40;</span>t_file <span style="color: #339933;">*</span>nand, <span style="color: #993333;">int</span> offset<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp; nand<span style="color: #339933;">-</span>&gt;fcrt_offset <span style="color: #339933;">=</span> read_nb<span style="color: #009900;">&#40;</span>nand<span style="color: #339933;">-</span>&gt;file, offset, <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span>;
&nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Data start block is at offset %#.4xx98AnTiSlAsHx98n&quot;</span>, nand<span style="color: #339933;">-</span>&gt;fcrt_offset<span style="color: #009900;">&#41;</span>;
&nbsp; offset <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">8</span>;
&nbsp; nand<span style="color: #339933;">-</span>&gt;fcrt_len <span style="color: #339933;">=</span> read_nb<span style="color: #009900;">&#40;</span>nand<span style="color: #339933;">-</span>&gt;file, offset, <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
&nbsp; offset <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">4</span>;
&nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Fcrt lenght is %dx98AnTiSlAsHx98n&quot;</span>, nand<span style="color: #339933;">-</span>&gt;fcrt_len<span style="color: #009900;">&#41;</span>;
&nbsp; strncpy<span style="color: #009900;">&#40;</span>nand<span style="color: #339933;">-</span>&gt;fcrt_meta, nand<span style="color: #339933;">-</span>&gt;file <span style="color: #339933;">+</span> offset, <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>;
&nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Meta is : %x %x %x %xx98AnTiSlAsHx98n&quot;</span>,
nand<span style="color: #339933;">-</span>&gt;fcrt_meta<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span>,nand<span style="color: #339933;">-</span>&gt;fcrt_meta<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>, nand<span style="color: #339933;">-</span>&gt;fcrt_meta<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span>, nand<span style="color: #339933;">-</span>&gt;fcrt_meta<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;</code></pre></div>
<br />
Une fois que l'on connait l'offset et la taille, il suffit d'un petit lseek pour ce positionner au bon endroit dans le fichier, et on lit de la bonne taille et l'on possede le fichier <img src="http://www.bestpig.fr/forum/images/blue/bbcode/smilies/wink.png" width="15" height="15" alt="wink" />.<br />
<br />
Les offsets sont donnees par rapport a des blocks de 16896 octets.<br />
Donc si ton offset est 2, l'offset reel dans le fichier sera 2 * 16896.<br />
<br />
Ceci est applicable sur une nand directement dumper, donc aucun dechiffrage a faire avant.<br />
<br />
La nand en elle meme n'est pas chiffrer, ce sont juste certaine partie qui le sont, comme le kevault ou des fichiers les CB etc.<br />
Tu peux voir ce script qui dechiffre certain fichier<br />
http://www.logic-sunrise.com/forums/files/file/4782-buildpy-14719-by-marchisio-vola-fixed/<br />
<br />
On vois bien que pour chaque fichier, ca differe un peu, mais ca reste tout le temps a peu pres la meme chose.]]></description>
			<author><![CDATA[dummy@example.com (bestpig)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=192#p192</guid>
		</item>
		<item>
			<title><![CDATA[[c++] Extraire Fcrt]]></title>
			<link>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=191#p191</link>
			<description><![CDATA[Bonjour<br />
<br />
Je sais que je pars de tr&egrave;s loin mais bon, en plus d'apprendre &agrave; programmer j'apprends comment marche les xbox360.<br />
<br />
Je voudrais extraire le fcrt des nand Corona, ceux qui suivent le xkey comprendront pourquoi ^^<br />
<br />
J'ai remarquer en &eacute;tudiant un peut le code source de fcrt-eXtractor-V0.3-by-BestPig<br />
<br />
Un fcrt extrait avec ce log est crypt&eacute;? Un fcrt extrait avec flash Tool comme proscrit par la team Xkey est diff&eacute;rent de celui de bestpig (dans flashTool on rentre la cl&eacute; Cpu pour extraire)<br />
<br />
Je code en c++ avec Qt pour avoir mon interface graphique. J'ai r&eacute;ussi en &eacute;tudiant les sources de 360 Flash Tool a impl&eacute;menter les m&eacute;thode sha1 tous ca. donc avec un keyvault + une cl&eacute; j'arrive a d&eacute;crypter un keyvault.<br />
<br />
Ma question est : j'ai pas compris comment &agrave; partir du pattern &quot;fcrt.bin&quot;, on trouve l'offset de d&eacute;part du fcrt ^^<br />
<br />
Et surtout, est ce que je dois d&eacute;crypter ma nand avant? A ce que j'ai compris je peux pas exploiter le code source de fcrt-eXtractor-V0.3-by-BestPig sauf si je prend une Nand d&eacute;j&agrave; d&eacute;crypter?<br />
<br />
Et es ce que la nand est crypt&eacute; comme un key vault? Je veux dire l'en t&ecirc;te d'une nand est lisible, il me semble avoir lu que la nand est crypt&eacute; &agrave; partir d'un certain offset? C'est ca ? Mais une fois que ca commence a &ecirc;tre crypt&eacute; c'est fait partout pareil?<br />
<br />
Merci]]></description>
			<author><![CDATA[dummy@example.com (deaphroat)]]></author>
			<pubDate>Sun, 12 Aug 2012 11:30:49 +0000</pubDate>
			<guid>http://www.bestpig.fr/forum/index.php?page=viewtopic&amp;pid=191#p191</guid>
		</item>
	</channel>
</rss>
